Skip to content
Rollouts split rollouts
andriictkn
OP

a month ago

I'm wondering if there is an easy way to intro for my service split traffic rollouts where I can slowly like by 10% can do step by step rollout. I guess I can do that manuealy wiht nginx https://github.com/nginxinc/nginx-azure-workshops/blob/main/labs/lab5/readme.md#nginxaas-split-clients-for-bluegreen-ab-canary-testing but wonderin if we can get smth on the platfrom level to manage this?

ref: this is all I found https://docs.railway.com/deployments/deployment-teardown but it is very limited

Solved

1 Reply

Railway
BOT

a month ago

Each service runs one active deployment at a time, and public traffic is spread randomly across that deployment's replicas, so there is no setting to send a percentage of traffic to a new deployment.

The way to do a gradual rollout on the platform is Feature Flags. A flag can have a Rollout % rule that serves the new behavior to a set share of users, for example 10%. Bucketing is deterministic, so each user stays in or out as you widen it, and you can raise the percentage without redeploying. You can manage flags from the project's Settings → Feature Flags, the railway flag CLI, or the TypeScript SDK.

If you need to split traffic between two separately deployed versions of a service, a proxy like the nginx setup you linked, running as its own service in front of both, is the way to do it.


Status changed to Awaiting User Response Railway • about 1 month ago


Status changed to Solved andriictkn • about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...