R
Railway

✋|help

How to specify deployment strategy?

Ssepyke8/28/2023
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:
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
Jump to solution
Ssepyke8/28/2023
ce4b97ba-aa1e-485d-ac98-312a58494c45
Solution
Bbrody1928/28/2023
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
Ssepyke8/28/2023
Thanks!

Is it have the same guarantee as attaching dummy volume to the service?

To prevent data corruption, we prevent multiple deployments from being active and mounted to the same service. This means that there will be a small amount of downtime when re-deploying a service that has a volume attached
Bbrody1928/28/2023
yes, please read that variables description in the doc I linked
I'm curious what's your usecase?
Ssepyke8/28/2023
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
Bbrody1928/28/2023
I see
Ssepyke8/28/2023
thanks so much brody
Bbrody1928/28/2023
no problem!

Looking for more? Join the community!

Recommended Posts
I do not scroll rightWhen I access log and view it but I do not scroll right to sell full logs. Is it a bug of you?Build failed directus api templateI tried to deploy directus app using railway template (Directus api) and it failed every time. Does Network Error While sending a file.I have uploaded my telegram bot on a Railway Pro plan. The bot sends file back to users through Telego-cron jobs not running in railwayHello, so I'm using the go-cron(https://github.com/go-co-op/gocron) library for managing my cron jobpnpm not foundHi! I'm having trouble building my app, and haven't had success with any of the suggestions with othDo you guys have prepaid options?Say I pay 5$ once and I get to use those 5$ worth of resources all year round. I'd rather do that thChange Heroku to RailwayI need more info because I have a problem with Heroku with my hosted proyect there WebSocket doesnt I am getting this error on my deployment```console GET failed with status code 403 (a proxy could be disallowing the use of 'Upgrade: derp')Flask app wont work with port 0.0.0.0application not respondingmemory usage doesn't decreasememory usage of one of my python processes was instantly increased to ~2700 mb, it was my mistake, bAutomated Postgres backup onto a volume ?Since now the project I was developing for a while is almost ready for production, we need to make show can i deploy my vue projecti get this errorHosting Django backend and React frontend from the same DomainI have two services, one for my backend and one for my frontend. They currently have two separate doResponse Pending with OpenAIHi I have SAAS website running on Railway using OpenAI with Next js , the problem is the endpoint noDjango backend fails to respondWhen I click on the url for my django backend (I am using react frontend in a separate service) I geReflexHi, someone deploy reflex.dev in railway? do you have a guide?The new log explorer is great, Is it possible to show the service name in there ?Currently in the log explorer the service name is an ID and I was wondering if you plan to show the What is a good / recommended resource use for a web app? Plus question about scaling.I am deploying a few applications for a client of mine. It is a multi-tenant app made in sveltekit. How to put site on maintenance mode in railway?hello everyone how do i put a site on maintenance mode in railway or 'page can not be reached' mode Service not updating to Hobby specshey! I don't know if I'm doing something wrong but I paid for the hobby plan but my service still ha