9 months ago
Hello, I am new to railway. It seems that for one of my services the numReplicas property in railway.json is ignored.
I can change it from the dashboard but when trying to set this from the config is just ignored. This is my config:
```
{
"$schema": "https://railway.com/railway.schema.json",
"build": {
"builder": "RAILPACK"
},
"deploy": {
"startCommand": "php artisan queue:work",
"numReplicas": 3,
"limitOverride": {
"containers": {
"cpu": 1,
"memoryBytes": 3000000000
}
},
"restartPolicyMaxRetries": 10,
"restartPolicyType": "ALWAYS"
}
}
```
3 Replies
9 months ago
Hello,numReplicas has been deprecated for quite some time now, please use multiRegionConfig -
https://docs.railway.com/reference/config-as-code#multi-region-configuration
Best,
Brody
Status changed to Awaiting User Response Railway • 9 months ago
brody
Hello,numReplicas has been deprecated for quite some time now, please use multiRegionConfig -https://docs.railway.com/reference/config-as-code#multi-region-configurationBest,Brody
9 months ago
Thank you Brody, one questions though; in the dashboard I see this worker (and everything else) is running on "US East (Virginia USA) [METAL]". However If I go to https://docs.railway.com/reference/regions
I see:
- US East Virginia, USAus-east4
- US East Metal North Carolina, USAus-east4-eqdc4a
So, I am not entirely sure which one should I set in my config. As there is no "US East Virginia" and "METAL" in the regions list.
Thank you very much for your quick response
Status changed to Awaiting Railway Response Railway • 9 months ago
9 months ago
You are correct, you should use: US East Metal North Carolina, USA us-east4-eqdc4a
Status changed to Awaiting User Response Railway • 9 months ago
Status changed to Solved sarahkb125 • 9 months ago