10 months ago
Urgent!! I'm currently encountring a significant cost rising from cost estimation of $35 to $250 and in one day the cost rasied from around $7 to over $23, and the cost is rising up as I post this thread. I don't really understand Egress but all the sudden risies in the three services are becuase of Egress,
Postgres: CPU: 76.81 vCPU ($0.0356), RAM: 476.31 GB ($0.1103), Egress: 93.62 GB ($9.3622), Volume: 1576.06 GB ($0.0091), Volume Backup: 2454.12 GB ($0.0142) = $9.53
fourpets-backend: CPU: 719.19 vCPU ($0.3330), RAM: 5409.77 GB ($1.2523), Egress: 47.55 GB ($4.7545), Volume: 0.00 GB ($0.0000) = $6.34
chat-service: CPU: 79.69 vCPU ($0.0369), RAM: 692.13 GB ($0.1602), Egress: 56.63 GB ($5.6628), Volume: 0.00 GB ($0.0000) = $5.86
Note: I once or twice connected to the database from Docker on my local machine, I saw a note that connection from public network uses Egress cost but I don't know what is Egress and how its cost is calculated and I only deleted few reords from the database that's all I did, I don't know how I used 93 GB.
For the chat-service and fourpets-backend services I don't know why they're using Egress in the first palce.
Please provide immediate help if possible as the cost is still rising and I'm unable to stop these service because the project is in production
2 Replies
10 months ago
It's urgent. Anyone?
10 months ago
Hey, high costs can be due to using the public network to connect from your application to your database. This incurs egress charges (and performance penalties since you're round tripping to the edge!)
If so, you'll want to use the private network instead. Could you please check: https://docs.railway.com/overview/best-practices#use-private-networking-when-possible
Additionally, we highlight these with a little yellow exclamation - you can check for these in your service > settings > variables and see which variable has that mark and if you can switch to using the private network instead of the public one (which has a higher "egress" cost)
Status changed to Awaiting User Response Railway • 10 months ago
5 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 6 months ago