App down for a few secs during deployment
jacruzca
HOBBYOP

2 months ago

Hey. is it expected to have my app down for a few seconds while the app is deployed?

It happens when it reaches the "Stopping Containers" step and until the deployment finishes. The app is completely down. That takes a few seconds. Then it goes back to normal.

How to avoid that?

thanks!

Solved$10 Bounty

Pinned Solution

https://docs.railway.com/reference/deployments

I’d recommend adding a healthcheck if you haven’t so Railway knows when a service is healthy. Alternatively, you can also adjust overlap time with the environment variable RAILWAY_DEPLOYMENT_DRAINING_SECONDS.

https://docs.railway.com/reference/variables

1 Replies

https://docs.railway.com/reference/deployments

I’d recommend adding a healthcheck if you haven’t so Railway knows when a service is healthy. Alternatively, you can also adjust overlap time with the environment variable RAILWAY_DEPLOYMENT_DRAINING_SECONDS.

https://docs.railway.com/reference/variables


Status changed to Solved noahd about 2 months ago


Loading...