Problem with multi region
gaidly
PROOP

a year ago

I'm generating a railway.json file with the following format:

{

"$schema": "https://railway.com/railway.schema.json",

"build": {

"builder": "DOCKERFILE",

"dockerfilePath": "Dockerfile"

},

"deploy": {

"region": "europe-west4-drams3a",

"runtime": "V2",

"numReplicas": 1,

"sleepApplication": false,

"multiRegionConfig": {

"europe-west4-drams3a": {

"numReplicas": 1

}

},

"restartPolicyType": "ON_FAILURE",

"restartPolicyMaxRetries": 10

}

}

but for some reason at Railway it always add us-west1 replica on it. resulting in:

{

"$schema": "https://railway.com/railway.schema.json",

"build": {

"builder": "DOCKERFILE",

"dockerfilePath": "Dockerfile"

},

"deploy": {

"region": "europe-west4-drams3a",

"runtime": "V2",

"numReplicas": 1,

"sleepApplication": false,

"multiRegionConfig": {

"us-west1": {

"numReplicas": 1

},

"europe-west4-drams3a": {

"numReplicas": 1

}

},

"restartPolicyType": "ON_FAILURE",

"restartPolicyMaxRetries": 10

}

}

and it shows to me two replicas indeed in the UI.

1. I tried to remove the region and numReplicas from the root of "deploy" (I saw in a thread is being deprecated). And Railway just add "us-west1" in it with numReplicas set to 1.

  1. If i add "euro-west4" into region and set numReplicas to 1, it fallbacks for some reason to "us-west1".

Solved

2 Replies

gaidly
PROOP

a year ago

I fixed forcing multiRegionConfig to null, which avoids the placeholder for the us-west1. I want to use multiRegionConfig in the future, but right now seems not working correctly on my account (if i remove the region, and numReplicas from the deploy root, it fails).


chandrika
EMPLOYEE

a year ago

Hi there, nice that you have a workaround. Could you send over a short set of steps to reproduce this and the screenshots of the replicas like you mentioned you are seeing that forces the us-west region? Would like to see if we can repro this on our end


Status changed to Awaiting User Response Railway 12 months ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...