How to specify deployment strategy?
Hey, previously i'm a fly io user and I want to migrate to Railway.
Is it possible to define the deployment strategy?
My use case is that I want to make sure that previous instance is stopped before new instance got deployed.
Thanks!
Solution:Jump to solution
that can be done by setting
RAILWAY_DEPLOYMENT_OVERLAP_SECONDS
to 0
in the service variables
https://docs.railway.app/develop/variables#user-provided-configuration-variables...9 Replies
Project ID:
ce4b97ba-aa1e-485d-ac98-312a58494c45
ce4b97ba-aa1e-485d-ac98-312a58494c45
Solution
that can be done by setting
RAILWAY_DEPLOYMENT_OVERLAP_SECONDS
to 0
in the service variables
https://docs.railway.app/develop/variables#user-provided-configuration-variablesThanks!
Is it have the same guarantee as attaching dummy volume to the service?
yes, please read that variables description in the doc I linked
I'm curious what's your usecase?
yes2 i've read the description, just need to confirm 👍
I'm running a simple service that aggregrate some data (e.g. simple data counter) from postgres, this service fetch previous state of the data hence it will become invalid (the count data) if there are two services running
I see
thanks so much brody
no problem!