Is there a way to configure how services rollover to new deployments? (Singleton services)
tlonny
PROOP

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)?

Solved

7 Replies

tlonny
PROOP

a year ago

N/A


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


tlonny
PROOP

a year ago

Thanks Adam


a year ago

Marking this as solved!


a year ago

!s


Status changed to Solved adam 12 months ago


Loading...