R
Railway•10mo ago
punwrapped

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
Percy
Percy•10mo ago
Project ID: 2eaf5e06-33cb-4195-a8d7-bb0c024c13ee
Adam
Adam•10mo ago
Flagging this to the team
Duchess
Duchess•10mo ago
Thread has been flagged to Railway team by @Adam.
Brody
Brody•10mo ago
in the mean time lets get some more information, what does your current usage say?
christian
christian•10mo ago
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
punwrapped
punwrapped•10mo ago
Hi Brody, current usage is around 505GB
christian
christian•10mo ago
You can check your metrics for individual services by clicking on a service on your dashboard, and then "Metrics"
punwrapped
punwrapped•10mo ago
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.
No description
punwrapped
punwrapped•10mo ago
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.
Brody
Brody•10mo ago
what does your current usage (price) say? https://railway.app/account/usage
punwrapped
punwrapped•10mo ago
No description
Brody
Brody•10mo ago
the estimated usage will very likely settle back down now that you are using the private network
punwrapped
punwrapped•10mo ago
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?
Brody
Brody•10mo ago
just a friendly reminder, please dont ping team members
punwrapped
punwrapped•10mo ago
Ugh sorry! Thanks for correcting.
Brody
Brody•10mo ago
no worries
christian
christian•10mo ago
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?
punwrapped
punwrapped•10mo ago
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 ;/
christian
christian•10mo ago
Got it. I've added $50 to your Railway credit balance. We'll look into the alert you mentioned should have triggered at $20.
punwrapped
punwrapped•10mo ago
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?
Brody
Brody•10mo ago
you can click show breakdown to see what you would be charged, but it would only give you the current number
Faraz
Faraz•10mo ago
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?
punwrapped
punwrapped•10mo ago
Yes. I took a course. They granted me the credits I didn't purchase those.
Brody
Brody•10mo ago
a railway course where they give you credits? I've never heard of such a thing
punwrapped
punwrapped•10mo ago
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.
Faraz
Faraz•10mo ago
Yes.
punwrapped
punwrapped•10mo ago
Thanks
Want results from more Discord servers?
Add your server