Is it possible to change the region of an app?
I don't see an option that allows to specify the region where an app will be deployed. where are apps deployed by default?
context: I just deployed an app to Railway. it was painfully slow (like 10x slower than on Heroku), at first I thought that the server had by default calculator-level resources.
Eventually I decided to try out the Railway databases, I set up a MySQL database and migrated all my data to it. then switched the database string in the app so that it uses the newly created Railway database. Immediately the app became much faster.
My original database was on a AWS Frankfurt server. From the new connection string, it appears that Railway hosts somwhere on
us-west
, meaning that every query had to travel between continents, which led to the slowness of the app.
So is it possible to specify where the app will be deployed? as it is favorable to me to host in Europe.19 Replies
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
I see. One more question, Heroku puts some apps to sleep after 30 minutes of inactivity, and waking up from sleep takes about 30~40 seconds. does Railway also have a "sleep" mode for apps/databases? if so, what's the inactivity timer on it?
nope
you do have execution hours tho
This is quite vague:
they are not a direct measurement of the time your app has been up. They also don't measure your app's compute usage
. If it doesn't measure how long the app has been up, nor many CPU cycles it consumes, then what does it actually measure?it is:
500 / number of services across entire account * environments
so, 2 serviecs would run for 250 hours each on 1 envirnonment
I see, so 1 service and 1 environment would run for 500 hours, regardless for usage, right?
combined time of all services up
yes
but the usage cap can also kick in
you get $5 of usage
I see, now I'm thinking of switching to the developer plan, so how does the billing work? at the end of the month you get billed by your usage? can I set an alert or even shutdown the app when a certain threshold is reached? Or is it a credit system, where you have to buy credit at the beginning, and that credit get used and eventually it runs out, if so, does it automatically bill you for more credit, or does it just shutdown your app and notify you to purchase more?
Or is it a credit system, where you have to buy credit at the beginning, and that credit get used and eventually it runs out, if so, does it automatically bill you for more credit, or does it just shutdown your app and notify you to purchase more?yes
we have both systems available
sorry asking too many questions π
nws!
we're here to help
you pay at the end of the month for your usage, or you can prepay with credits which we will deduct from at the end of the month
for the credit system
does it automatically (immediately) bill you for more credit, or does it just shutdown your app and notify you to purchase more?
credits are not automatically billed
it will suspend your app
until you pay the pending amount
wait what pending amount? doesn't it just suspend the app when credit reaches 0? meaning that when you buy more credit it would just begin to use that credit? I don't get why would there be a pending amount
theres a minimum of $5 per credit purchase
so if it goes to 0 you have to buy at least $5
ah I see, thank you so much! just subscribed to the developer plan
would love to continue to experiment with your platform.
np, we're here to help if you have any further questions π