R
Railwayβ€’2y ago
Issam

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
Unknown Userβ€’2y ago
Message Not Public
Sign In & Join Server To View
Issam
Issamβ€’2y ago
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?
milo
miloβ€’2y ago
nope you do have execution hours tho
Issam
Issamβ€’2y ago
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?
milo
miloβ€’2y ago
it is: 500 / number of services across entire account * environments so, 2 serviecs would run for 250 hours each on 1 envirnonment
Issam
Issamβ€’2y ago
I see, so 1 service and 1 environment would run for 500 hours, regardless for usage, right?
nebula
nebulaβ€’2y ago
combined time of all services up yes but the usage cap can also kick in you get $5 of usage
Issam
Issamβ€’2y ago
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?
milo
miloβ€’2y ago
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
nebula
nebulaβ€’2y ago
we have both systems available
Issam
Issamβ€’2y ago
sorry asking too many questions πŸ˜†
nebula
nebulaβ€’2y ago
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
Issam
Issamβ€’2y ago
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?
nebula
nebulaβ€’2y ago
credits are not automatically billed it will suspend your app until you pay the pending amount
Issam
Issamβ€’2y ago
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
nebula
nebulaβ€’2y ago
theres a minimum of $5 per credit purchase so if it goes to 0 you have to buy at least $5
Issam
Issamβ€’2y ago
ah I see, thank you so much! just subscribed to the developer plan would love to continue to experiment with your platform.
nebula
nebulaβ€’2y ago
np, we're here to help if you have any further questions πŸ˜„