#Need help with estimating possible service cost on Railway

56 messages · Page 1 of 1 (latest)

earnest herald
#

We made a nodejs application that sends out emails to a lot of users (like 300k - 400k) using sendgrid api. While I'm excited to keep using Railway as hosting platform for our projects, I'm very concerned how much Railway would charge us for possible network bandwidth/RAM/CPU usage.

We don't want to end up in situations like Railway charging us $10k (like crazy AWS bills 😄 ).. so if you can help us estimate the possible cost in the scenario like our application. Thanks in advance!

opaque kilnBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

hallow voidBOT
#

Project ID: 330924c6-f27a-45c6-a607-8a0bb0d88515

earnest herald
#

330924c6-f27a-45c6-a607-8a0bb0d88515

#

^ this is the service I'm referring to

untold glen
earnest herald
#

but can you let me know how to estimate that for some scale of users?

e.g. let's say we want to do with 1k users first, then how can I check the usage of bandwidth/cpu/memory?

gilded pecan
#

The estimated usage of your app is adaptive according to the usage you put through it. I would incrementally increase the amount of traffic you put through it, fake or real. Increase that every 2 days so you get an accurate representation.

#

Once you have 4 or 5 data points you'll be able to graph a decent estimation

earnest herald
#

@gilded pecan
I also have another Q; it's about general usage of internal networks between projects.

We have 2 services deployed; one is REST API, and the other is node.js script, api consumer. I believe using internal network IP of REST API would cost less bandwidth, and be faster because using the external host goes through the internet (also DNS requests) etc?

gilded pecan
#

I don't believe it would be faster, but using the internal IP eliminates network charges entirely

untold glen
#

(it is faster)

#

(dont use ips, use the internal domains)

earnest herald
#

this one?

gilded pecan
#

Yep agreed, missed that part of your question. Railway uses dynamic IPs, so you can't connect to an app through its IP. Use the private networking url

#

Yes

earnest herald
#

ok awesome

#

is it same for connecting to postgres db?

#

and redis?

gilded pecan
#

Yes

earnest herald
#

they have private URLs

#

ok awesome

gilded pecan
#

As long as the DB is on Railway, yes

earnest herald
#

yes we have everything on Railway

untold glen
#

and in the same project, and is a database v2 service (has a volume)

earnest herald
#

@untold glen btw I started Postgres db migration like 20 mins ago, and it's still going on. I just realized I should've not started this operation when the dashboard is having issues atm 😅

We have data like size of 15mb, so it shouldn't be taking that long. Would you be able to check what could be wrong?

#

cc @gilded pecan

#
3f75e955-9331-42d7-9712-eb29caa447e2

this is the uuid of the postgres plugin

untold glen
#

neither of us work for Railway, so I'll have to tag in @timber anvil

earnest herald
#

Aha okay. Thanks in advance jr for taking a look

timber anvil
#

migration just completed successfully

#

I just poked it as it was having trouble reading the logs indicating that everything migrated

untold glen
#

@earnest herald can you confirm your data is all in place on the new database?

untold glen
#

awsome, be sure to use the private url now!

earnest herald
untold glen
#

yeah there do be some issues sometimes, what is the specific error youre getting?

earnest herald
untold glen
#

and you can access it publically right?

earnest herald
earnest herald
untold glen
#

are you using variable references on your railway service? (to referance the private url?)

gilded pecan
#

Is the service inside the project? The private URL only works between services in the same project

outer carbon
#

Also, private networking isn't available during build phase

untold glen
#

woah woah 10 is overkill, 3 is sufficient

outer carbon
earnest herald
#

I just found that I have the same issue with connecting to Redis through its private URL.

default: getaddrinfo ENOTFOUND redis.railway.internal +2005ms

Error: getaddrinfo ENOTFOUND redis.railway.internal
untold glen
#

are you using ioredis?

earnest herald
earnest herald
#

and also postgres connection (through internal url) is intermittently working.

#

db connection worked from 00 - 03:05, then at 04:05 it didn't work