egress cost spike
Hi, I only recently signed up for railway, I deployed a project with postgres. As per some online searches, I used the DATABASE_URL env variable. Within a few hours of real low transactions on my end, I saw a usage of 50$. I was stunned to see the same. Luckily I had a 20$ alert and found out about the public/private connection.
Despite the 20$ alert I'd set, I saw a usage of 50$. I am really tensed up. I'm unemployed and while this doesn't threaten my day to day, it is really feeling like an uncalled for blow.
My resource Id for the project id is 2eaf5e06-33cb-4195-a8d7-bb0c024c13ee
Could I please be forgiven this charge? Everything happened within a few hours and I was cautious with the alert, and reactive with the change of env variables.
27 Replies
Project ID:
2eaf5e06-33cb-4195-a8d7-bb0c024c13ee
Flagging this to the team
Thread has been flagged to Railway team by @Adam.
in the mean time lets get some more information, what does your current usage say?
Hi there, Christian here, from the Railway team 👋 You're right in that while your application and database communicates over the public internet, you're going to incur network charges. Instead, you'll want to set up and use Private Networking, so your app and DB can communicate for free https://docs.railway.app/reference/private-networking
I cannot speak to what's caused the excessive loads here, but we're talking hundreds of GBs in very short timespans
Hi Brody, current usage is around 505GB
You can check your metrics for individual services by clicking on a service on your dashboard, and then "Metrics"
Hey Christian. Thanks.
So here's a screenshot of my postgres service.
The usage stops at 3:46 almost entirely - which is when I switched to a private environment variable.
My operations were like 20 images (1 MB each) uploaded outside of the regular database operations on my app like posting a comment or editing a project/ticket.
The image uploads were the only "new" thing I was executing during that window.
what does your current usage (price) say? https://railway.app/account/usage
the estimated usage will very likely settle back down now that you are using the private network
Yes. It was 1000+ when I first saw the 50$ posted. Thank God for the alert.
Do you think this could be accommodated for this time by Railway?
just a friendly reminder, please dont ping team members
Ugh sorry! Thanks for correcting.
no worries
For Railway's network egress charges, we're passing on egress costs from our underlying providers, so we won't be able to remove this charge altogether. However, I can take 50% of the egress charges off of your next bill to split the cost. How does that sound?
Hey Christian. The Egress costs anyway wouldn't be much now that I've switched to private. It really doesn't split much costs for me.
It'd really make a significant difference if this could be reconciled. I had safety measures in place and also reacted quickly. I had a 20$ alert and saw a 50$ one. :/
This is a new change, it was an honest "transition" error within hours. I'd really appreciate some assistance.
It's the first time I'm requesting and not a big amount for Railway atleast ;/
Got it. I've added $50 to your Railway credit balance. We'll look into the alert you mentioned should have triggered at $20.
Thank you Christian. Appreciate your understanding and assistance.
A follow up question: I had prior credits too. So after the 50$ credits you added, I have a total of 88$ in credits. Just want to confirm: they won't "all" be exhausted for a 50$ bill yeah?
you can click show breakdown to see what you would be charged, but it would only give you the current number
Depending on what your final bill is, that's the amount which will be deducted from your credit balance. (After discounts etc).
Quick q while I have you here, I don't see any invoices attached to your prior credit purchases. Did an admin give you those credits or am I missing something obvious?
Yes.
I took a course. They granted me the credits
I didn't purchase those.
a railway course where they give you credits? I've never heard of such a thing
Also, to clarify:
If my credit $ > usage $, the credits will carry forward next month right?
Not a railway course.
The bootcamp is called coder foundry.
They asked for my email. I had the credits.
Yes.
Thanks