R
Railway2y ago
Kuha

How can I stop an app?

I have an app running, and it's consuming my free tier hours even when not used. Is there a way to stop or hibernate it when not being used?
32 Replies
Percy
Percy2y ago
Project ID: c17693fa-8f81-4f00-ad4d-8f231f687806
Kuha
Kuha2y ago
c17693fa-8f81-4f00-ad4d-8f231f687806
Brody
Brody2y ago
remove the deployment, 3 dots > remove
Adam
Adam2y ago
^ Can only be done manually
Kuha
Kuha2y ago
And that won't erase my DB or anything until I deploy it again?
Adam
Adam2y ago
Then push a new commit to restart your app databases are erased on every restart so no, you won’t be able to stop your app at least not without wiping your database
Kuha
Kuha2y ago
But if I only remove the App not the DB, does it wipe the DB too?
Adam
Adam2y ago
the trial plan is meant to be just that - a trial of the service if you want 24/7 runtime you’ll have to upgrade both take up hours when online no, but your hours will keep being consumed
Kuha
Kuha2y ago
Oh I see And If hours run out, it gets paused till next month, or everything gets wiped?
Adam
Adam2y ago
it’ll just be paused until the first of the month
Kuha
Kuha2y ago
That is awesome And is there a way to simulate costs? For example, let's say my app runs my 500 hours, and I only consumed X out of my 5 credits, is there a way to check beforehand how much it would cost to increase those 500 hours (roughly 20 days) to 31 days?
Adam
Adam2y ago
once your app has been online for 48 hours an accurate estimate will be available here https://railway.app/account/usage
Kuha
Kuha2y ago
Kuha
Kuha2y ago
So does this mean that it would, as of now, cost 0.32 dollars a month?
Adam
Adam2y ago
exactly
Kuha
Kuha2y ago
Holy, I can't believe no other site has something as simple and effective as this
Adam
Adam2y ago
that number does fluctuate with usage though, it’s estimated based on the current usage of your app looks like your app isn’t doing too much atm
Kuha
Kuha2y ago
I had to go crazy trying to understand pricing on other sites, gotta congratulate your team! yeah, it's kinda lightweight, only worrying part is DB wise, that spike was just the DB initialization once it was deployed
Adam
Adam2y ago
for sure! that’s one of the highlights of Railway imo
Kuha
Kuha2y ago
I'll keep testing it with the free trial to get a better estimate, but I'm loving it already, thanks a lot!
Adam
Adam2y ago
I should clarify, that estimated costs number is until end of momth not sure when you started your app, but you won’t get a full picture of how much it’ll cost until the first of the month but you can get a rough estimate by multiplying that number by 30/(number of days left +number of days it’s been active already)
Kuha
Kuha2y ago
Oh, that is a daily cost estimate? So it would actually be ~0.32$ * 31
Adam
Adam2y ago
No, it’s the estimated total cost at end of month it’ll be 0.32$ * (30/(6+# days already active))
Kuha
Kuha2y ago
So, best way to get the most accurate result would be to wait till the 1st of the month when it resets the free time, and use it until that time runs out?
Adam
Adam2y ago
If you’re looking for an absolute most accurate number, yes but you’ll have a pretty accurate estimate by the 1st
Kuha
Kuha2y ago
So that "estimate" number it gives must me multiplied by each day left in the month?
Adam
Adam2y ago
No just plug in that formula and you’ll get an accurate estimate
Kuha
Kuha2y ago
Okay, that gives roughly 4.7 $ If I understood the pricing correctly, it states that first 5$ of each month are "free"?
Kuha
Kuha2y ago
I mean, because of this
Adam
Adam2y ago
Yup, that’s how it works I would note that it really does look like your app has had no fluctuation in the CPU usage since your db was initialize so I would be cautious about saying it will cost nothing assuming someone is going to be using your app
Kuha
Kuha2y ago
Yeah, I used it all night to test it and do heavy operations on it, and it only fluctuated between 0.2 and 0.1 usage (when initialization was a 1.8 spike) But thanks anyway for the clarification! It helped a lot!
Adam
Adam2y ago
No prob, welcome to railway!
Want results from more Discord servers?
Add your server