Skip to content

Commit

Permalink
add multi-region replicas (#623)
Browse files Browse the repository at this point in the history
Adds new feature-flagged feature multi-region replicas to horizontal scaling pages
  • Loading branch information
dbanys authored Dec 5, 2024
1 parent a1a0bdf commit 6ce52dd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/docs/reference/scaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ By default Railway will scale your service up to the specified vCPU and Memory l

Scale horizontally by manually increasing the number of replicas for a service in the service settings. Increasing the number of replicas on a service will create multiple instances of the service deployment.

#### Multi-region replicas
<Banner variant="info">
Multi-region replicas is currently available to Pro users behind a feature flag. To enable this feature, look for the feature flag at the bottom of the service settings panel.
</Banner>
Multi-region replicas are exactly as advertised -- horizontally scaled replicas that are located in different geographic regions.

Once the feature flag is enabled, the service settings panel will reveal an interface for assigning replicas to different regions.
<Image
src="https://res.cloudinary.com/railway/image/upload/v1733386054/multi-region-replicas_zov7rv.png"
alt="Multi-region replicas"
layout="responsive"
width={1370}
height={934}
/>

Creating, deleting, and re-assigning replicas will trigger a staged change which upon applying will trigger a redeploy.

#### Load Balancing Between Replicas

Railway will randomly distribute requests to the replicas of a service. If you need more advanced load balancing, you can use an external load balancer such as Cloudflare to distribute traffic between your services.
Expand Down

0 comments on commit 6ce52dd

Please sign in to comment.