a year 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
a year ago
There’s an environment variable you can set to have the overlap be 0 seconds, double checking right now but iirc it’s RAILWAYDEPLOYMENTOVERLAP_SECONDS
a year ago
Yep, looks like that’s it
a year ago
set that variable to 0 in your service environment variables
a year ago
Marking this as solved!
a year ago
!s
Status changed to Solved adam • 11 months ago