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


adam
MODERATOR

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


adam
MODERATOR

a year ago

Yep, looks like that’s it


adam
MODERATOR

a year ago

set that variable to 0 in your service environment variables


tlonny
PROOP

a year ago

Thanks Adam


adam
MODERATOR

a year ago

Marking this as solved!


adam
MODERATOR

a year ago

!s


Status changed to Solved adam 11 months ago


Loading...