2 years ago
Hi - bit of a weird question admittedly...
I understand that in most instances, when a new deployment of something like an API server is pushed out there will be a period of time where both the old and new versions are running concurrently to avoid downtime. Is there a way to invert this - to ensure AT MOST 1 instance of a service is live at any time (and thus during rollovers it would temporarily drop down to 0)?
7 Replies
2 years ago
There’s an environment variable you can set to have the overlap be 0 seconds, double checking right now but iirc it’s RAILWAY_DEPLOYMENT_OVERLAP_SECONDS
2 years ago
Yep, looks like that’s it
2 years ago
set that variable to 0 in your service environment variables
2 years ago
Marking this as solved!
2 years ago
!s
Status changed to Solved adam • over 1 year ago