Pricing question ,egress

ras7le
HOBBY

3 months ago

I don't understand how this billing window is generated. I have two projects on Railway:

1) A database, which is where this large charge seems to be coming from. There are actually two databases inside: one for testing and one for production.

2) The app itself.

Where did these high charges come from? Could it really be that my small project requires such overpayments? Is my website currently down just because I didn't pay the extra charges that go beyond the $5 limit?

Solved

1 Replies

ras7le
HOBBY

3 months ago

8fb058fd-fc8e-4ef7-a707-729c4dc368c2


ras7le
HOBBY

3 months ago

What is that jump after 1 deployment?

1380842510968029200


ras7le
HOBBY

3 months ago

from 9 to 32 gbs.


3 months ago

Please click on "View Cost by Service", this will show you the egress from each service.


ras7le
HOBBY

3 months ago

I mean I undestand it that it comes from DB

1380845595601928200


ras7le
HOBBY

3 months ago

but what did i do unusual to make it 3$ instantly after 1 deploy


3 months ago

This is usually because you are querying the database using the public url.


ras7le
HOBBY

3 months ago


ras7le
HOBBY

3 months ago

i use ngrok free for tests
and i use aside domain for production


ras7le
HOBBY

3 months ago


ras7le
HOBBY

3 months ago

What do you suggest? Stop using ngrok for tests?


ras7le
HOBBY

3 months ago

and i dont understand what do i do now, since my app is not working anymore. How can i pay those extra money?


3 months ago

Sorry, I am not sure what ngrok free is, but egress is going to occur if it is querying your database outside of Railway.


3 months ago

Please show a screenshot of the project's dashboard and your workspace's usage page.


ras7le
HOBBY

3 months ago

Is that enough?

1380851197145256000
1380851197459562500
1380851197698642000


ras7le
HOBBY

3 months ago

so it means that using domain vtotal.xyz would be pricy for me?


ras7le
HOBBY

3 months ago

1380851629007437800


3 months ago

So, there is private and public networking. Egress is public networking, when your data is being sent out of Railway. This also applies when you query your database via public networking, even if they are both hosted on Railway.


3 months ago

May I ask you why your frontend is in a separate project than your backend?


ras7le
HOBBY

3 months ago

no absolutely not, everything is inside of railway


ras7le
HOBBY

3 months ago

both DB and app


ras7le
HOBBY

3 months ago

there is telegram bot tho inside of it


ras7le
HOBBY

3 months ago

im building an app inside of telegram which can be used with PC domain too


3 months ago

You mean, that your frontend is a dashboard for your Telegram bot, right?


ras7le
HOBBY

3 months ago

Both telegram bot and web site. I can't start the app so i could make screenshots for you 😄


ras7le
HOBBY

3 months ago

something like that, you see the webapp in telegram

1380854997641597000


3 months ago

Sure. However, I would try to look how you query the database, as this is where the egress of 34GB is coming from in the first place.


ras7le
HOBBY

3 months ago

1380855072283427000


3 months ago

Can you please elaborate on what's not working here?


ras7le
HOBBY

3 months ago

That is old screenshots, whenever im trying to run the app i receive:

INFO:config:DATABASEURL loaded successfully. INFO:config:DATABASEURL: postgresql+psycopg2://postgres:PASSWORD@switchback.proxy.rlwy.net:16856/railway
INFO:config:FOOTBALLAPIKEY loaded successfully. First 4 chars: 5553…
INFO:config:Config: SQLALCHEMYDATABASEURI is set to: postgresql+psycopg2://postgres:PASSWORD@switchback.proxy.rlwy.net:16856/railway
Traceback (most recent call last):
File "C:\Users\Rastle\V-Total2.0[app.py](app.py)", line 10, in
from services import getbackgroundtaskservice File "C:\Users\Rastle\V-Total2.0\services_init.py", line 37, in BackgroundTaskService = getbackgroundtaskservice() File "C:\Users\Rastle\V-Total2.0\services_init.py", line 28, in getbackgroundtaskservice from .backgroundtasks import BackgroundTaskService
File "C:\Users\Rastle\V-Total2.0\services\background_tasks.py", line 48
logger.info("BackgroundTaskService initialized successfully.")
IndentationError: unexpected indent


3 months ago

This is a code error


ras7le
HOBBY

3 months ago

I mean right now i got deploy on vtotal.xyz


ras7le
HOBBY

3 months ago

however, whenever im trying to use domain there is logs inside of project that shows us that im trying to access the main page

BUT

[2025-06-07 10:29:20 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:88)

[2025-06-07 10:29:22 +0000] [1] [WARNING] Worker with pid 88 was terminated due to signal 9

[2025-06-07 10:29:22 +0000] [102] [INFO] Booting worker with pid: 102


ras7le
HOBBY

3 months ago

1380856276262850600


ras7le
HOBBY

3 months ago

the funniest part that telegram bot response on commands, not in webapp tho.


3 months ago

Are we talking about https://www.vtotal.xyz/?


3 months ago

I can access the frontend from my end


ras7le
HOBBY

3 months ago

hmmm how


ras7le
HOBBY

3 months ago

same issue for me lol

1380857732504092700


ras7le
HOBBY

3 months ago

hold on, is the problem inside of auth process or what, holy crap.

Alright, thank you. What would you suggest to reduce the amount of egress$?


3 months ago

Avoid querying your database using the public url unless you have to, since that's where your 34GB of egress comes from. Stop using ngrok for testing your database if it is the reason for the high egress usage.


ras7le
HOBBY

3 months ago

ngrok is just proxy to pass local id into website 😦


3 months ago

Can you elaborate on why you can't achieve this within Railway and instead have to use an external service to query your database?


ras7le
HOBBY

3 months ago

telegram does not allow you to use local domains


ras7le
HOBBY

3 months ago

thats why u need to have proxy to have an opportunity to open the webapp


3 months ago

Please elaborate on the local domain part.


ras7le
HOBBY

3 months ago

Do you the webapp thing in telegram? WHenever Im trying to deploy everything on 172.168.0.1 telegram does not allow you to use webapp and auth inside of it


ras7le
HOBBY

3 months ago

I also use football api to fulfill data in DB, is that a problem too?


ras7le
HOBBY

3 months ago

The thing is that i got users to predict score for football matches. Whenever matches end API being called to fulfill the score.


3 months ago

Well, you have to expose your web app somehow, no one from the outside world can visit something that only exists within your local network. You can host your web app on Railway and let Railway expose it to the public.


ras7le
HOBBY

3 months ago

what about api thing?


3 months ago

Egress will occur when calling an external API, however, the ingress, the data that is being sent to your service from the API is free.


notajumma
PRO

3 months ago

Can I ask related about pricing question? now I subscribe Pro plan, then my Current usage $ 1.05 and Estimated usage $ 14.68, if my bill is $30 then next payment I need to pay $30 ($30(bill) - $20(cover by PRO plan) + $20(Monthly price for PRO plan) = $30 final price for pay next month. I am correct? Then what benefits if using PRO plan then Hobby plan?


3 months ago

Please open your own help thread. This question is unrelated to yours


3 months ago

!s


Status changed to Solved uxuz 3 months ago


Pricing question ,egress - Railway Help Station