Ramin
How best to configure Railway services for coast to coast (us-east & us-west) load balancing?
We currently have a Railway project with an Express API service hosted on US East (Virginia, USA) region. This service also has 3 replicas.
We are thinking of spinning up a duplicate setup, but on the US West (Oregon, USA) region.
What is the best way to configure this? Is it as simple as creating a new service and pointing it to the same GH repo? But instead of selecting US East as the region, select US West? We have most of this config in a railway.json file.. so I am thinking we will probably need a railway-us-east.json and railway-us-west.json config file, right? And then I would imagine we need some new domains, ie us-east-api.service.com and us-west-api.service.com ... and finally a load balancer like Cloudflare to direct traffic accordingly based on geo. Am I missing anything?
16 replies
dashboard keeps showing 404 during normal use
I am trying to add a shared variable and every time I open up the "production" environment to add my shared ENV var, the whole dashboard displays the 404 page. I see a lot of (38) errors in the web console .. having to do with CORS policy. Not sure if related.
I also see tons of requests being constantly made to
https://backboard.railway.app/graphql/internal?q=eventBatchTrack
.. most succeed, but some fail. and as soon as I attempt to enter a new shared ENV var, I see a bunch of failed requests to that url and the 404 page shows. I'll record a Loom and attach to this ticket.11 replies
has anyone successfully deployed a node+express server using bun+pm2 on Railway?
have a bun+express server running and trying to incorporate pm2 into the mix. I am able to get it working locally, but when I try to push the changes to Railway, it does not want to play nice.
This is what I see in the Railway Deploy Logs:
The contents of my
ecosystem.config.js
My api package.json build
and start
commands:
25 replies