Pricing question ,egress
ras7le
HOBBYOP

a year 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

55 Replies

ras7le
HOBBYOP

a year ago

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


ras7le
HOBBYOP

a year ago

What is that jump after 1 deployment?

1380842510968029306


ras7le
HOBBYOP

a year ago

from 9 to 32 gbs.


a year ago

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


ras7le
HOBBYOP

a year ago

I mean I undestand it that it comes from DB

1380845595601928224


ras7le
HOBBYOP

a year ago

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


a year ago

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


ras7le
HOBBYOP

a year ago

u mean modern-blah-blah.ngrok-free.app ?


ras7le
HOBBYOP

a year ago

i use ngrok free for tests

and i use aside domain for production


ras7le
HOBBYOP

a year ago

like vtotal.xyz


ras7le
HOBBYOP

a year ago

What do you suggest? Stop using ngrok for tests?


ras7le
HOBBYOP

a year ago

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


a year 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.


a year ago

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


ras7le
HOBBYOP

a year ago

Is that enough?

1380851197145256007

1380851197459562507

1380851197698641992


ras7le
HOBBYOP

a year ago

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


ras7le
HOBBYOP

a year ago

1380851629007437824


a year 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.


a year ago

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


ras7le
HOBBYOP

a year ago

no absolutely not, everything is inside of railway


ras7le
HOBBYOP

a year ago

both DB and app


ras7le
HOBBYOP

a year ago

there is telegram bot tho inside of it


ras7le
HOBBYOP

a year ago

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


a year ago

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


ras7le
HOBBYOP

a year ago

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


ras7le
HOBBYOP

a year ago

something like that, you see the webapp in telegram

1380854997641596980


a year 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
HOBBYOP

a year ago

1380855072283426948


a year ago

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


ras7le
HOBBYOP

a year ago

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

INFO:config:DATABASE_URL loaded successfully.

INFO:config:DATABASE_URL: postgresql+psycopg2://postgres:PASSWORD@switchback.proxy.rlwy.net:16856/railway

INFO:config:FOOTBALL_API_KEY loaded successfully. First 4 chars: 5553...

INFO:config:Config: SQLALCHEMY_DATABASE_URI 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", line 10, in

from services import get_background_task_service

File "C:\Users\Rastle\V-Total2.0\services_init_.py", line 37, in

BackgroundTaskService = get_background_task_service()

File "C:\Users\Rastle\V-Total2.0\services_init_.py", line 28, in get_background_task_service

from .background_tasks import BackgroundTaskService

File "C:\Users\Rastle\V-Total2.0\services\background_tasks.py", line 48

logger.info("BackgroundTaskService initialized successfully.")

IndentationError: unexpected indent


a year ago

This is a code error


ras7le
HOBBYOP

a year ago

I mean right now i got deploy on vtotal.xyz


ras7le
HOBBYOP

a year 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
HOBBYOP

a year ago

1380856276262850580


ras7le
HOBBYOP

a year ago

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


a year ago

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


a year ago

I can access the frontend from my end


ras7le
HOBBYOP

a year ago

hmmm how


ras7le
HOBBYOP

a year ago

same issue for me lol

1380857732504092712


ras7le
HOBBYOP

a year 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$?


a year 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
HOBBYOP

a year ago

ngrok is just proxy to pass local id into website 😦


a year 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
HOBBYOP

a year ago

telegram does not allow you to use local domains


ras7le
HOBBYOP

a year ago

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


a year ago

Please elaborate on the local domain part.


ras7le
HOBBYOP

a year 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
HOBBYOP

a year ago

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


ras7le
HOBBYOP

a year ago

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


a year 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
HOBBYOP

a year ago

what about api thing?


a year 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

a year 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?


a year ago

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


a year ago

!s


Status changed to Solved uxuz about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...