R
Railwayβ€’5mo ago
Dohyu

The current usage is too high.

Two days ago, due to the buggy code I updated, DB engress usage exceeded 500GB, and the bill exceeded $600. Can you give me a discount for the sudden excessive usage after January 4th? This was clearly my mistake, but the bill was too high. Please help me.
Solution:
Yes, with Brody's help I set usage limits and changed to use a private network and my egress usage went down. thank you
Jump to solution
31 Replies
Percy
Percyβ€’5mo ago
Project ID: 367ca2fd-0f4e-460e-9c8c-1469b507da1a
Brody
Brodyβ€’5mo ago
project id please
Dohyu
Dohyuβ€’5mo ago
367ca2fd-0f4e-460e-9c8c-1469b507da1a
Brody
Brodyβ€’5mo ago
500 x 0.10 = 50 not sure where the $600 number is coming from?
Dohyu
Dohyuβ€’5mo ago
No description
Dohyu
Dohyuβ€’5mo ago
No description
Brody
Brodyβ€’5mo ago
that's ~6 terabytes of egrees, wow I'll flag the team for you, but please don't get your hopes up
Dohyu
Dohyuβ€’5mo ago
sorry. But the Estimated Bill is $300
Brody
Brodyβ€’5mo ago
in the mean time, have you swapped to using the private network to communicate with your database so that there will be no database to service egress charges?
Dohyu
Dohyuβ€’5mo ago
no
Brody
Brodyβ€’5mo ago
are you going to?
Dohyu
Dohyuβ€’5mo ago
Use DATABASE_URL when sending a query to the database.
Brody
Brodyβ€’5mo ago
yeah and that's why you are seeing egrees costs, you aren't using the private url
Dohyu
Dohyuβ€’5mo ago
postgres.railway.internal oh... I didn't think about internal networking.
Brody
Brodyβ€’5mo ago
yes but there's a private url variable available for you to use in your reference the private network has no costs associated with it unlike when you use the public url
Dohyu
Dohyuβ€’5mo ago
I will change it to use private networking right away.
Duchess
Duchessβ€’5mo ago
Thread has been flagged to Railway team by @Brody.
Dohyu
Dohyuβ€’5mo ago
Should I speak to the railway team about bill that are too high?
Brody
Brodyβ€’5mo ago
as a hobby user you are only entitled to community support, but I have flagged the team for you and they will reply here keep in mind it is the weekend so they will be getting back to you on a weekday, and again, please do not get your hopes up
Dohyu
Dohyuβ€’5mo ago
thanks.
Brody
Brodyβ€’5mo ago
and you might want to look into setting a usage limit too that button
Dohyu
Dohyuβ€’5mo ago
Yes, I will
Brody
Brodyβ€’5mo ago
and as a community member, that's about all I can do for you, please wait for a reply from the team have a nice day/night!
angelo
angeloβ€’5mo ago
Hey there @Dohyu, Ray and I reviewed this case and we are going to comp your bill. Moving forward please use the https://docs.railway.app/reference/private-networking#internal-dns of a service to avoid egress costs. Question for you while I have you: were you unaware of the usage limit feature that we have? - https://docs.railway.app/reference/usage-limits
angelo
angeloβ€’5mo ago
Is this the account you are referring to?
No description
angelo
angeloβ€’5mo ago
I don't see it that high.
Solution
Dohyu
Dohyuβ€’5mo ago
Yes, with Brody's help I set usage limits and changed to use a private network and my egress usage went down. thank you
angelo
angeloβ€’5mo ago
Ty @Brody πŸ™‚ - cool to mark this as closed, and for posterity, to anyone else who might be coming to this thread, using the private network saves you money. Rationale: it is because that our provider GCP forwards these costs onto us and as such, we need to recoup that. Our move to Railway Metal helps us with this.
Ray
Rayβ€’5mo ago
!resolve
Duchess
Duchessβ€’5mo ago
@Ray has marked this thread as resolved.
Brody
Brodyβ€’5mo ago
going to leave this thread as locked since a new thread has already been opened to continue this one https://discord.com/channels/713503345364697088/1193936404594557011 but going forward threads won't be auto locked when the !resolve command is used