R
Railway12mo ago
vek

Railway Usage

I’m currently on the free plan and I seem to be burning through the usage and my site isn’t even at peak usage. I was planning on buying pro but I am still concerned about that fact thst I will burn through my usage rate too quickly. Do you guys have any advice on how to lessen my usage right or make it go down slower without affecting performance (I am using cloudflsre csn and the primary things that are being used are CPU and Egress
28 Replies
Percy
Percy12mo ago
Project ID: N/A
Brody
Brody12mo ago
what kind of app are you running?
vek
vek12mo ago
i am running a nodejs and ejs site (project id is: c99e278b-59e9-493e-9bf7-377402ff11f1 and url is https://colorhub.art)
Brody
Brody12mo ago
whats your current memeory usage look like?
vek
vek12mo ago
i think i have not used any of my memory
Brody
Brody12mo ago
everything uses memory
vek
vek12mo ago
actually very little
Brody
Brody12mo ago
where are your costs coming from then?
vek
vek12mo ago
like over 3 times less then the cpu and agress cpu and egress
Brody
Brody12mo ago
whats your avg cpu usage?
vek
vek12mo ago
CPU 901.02 minutely vCPU $0.000463 / vCPU / Minute $0.4171 Egress 3.15 total GB $0.10 / GB $0.3148
Brody
Brody12mo ago
how long have you been running this site for?
vek
vek12mo ago
only like 3 days but its very low usage as i shut it down for a bit so this is not a reliable estimate
Brody
Brody12mo ago
when did you sign up on the trial plan?
vek
vek12mo ago
i believe november 7th (i created my acc then) and i hosted it on railway as soon as i joined
Brody
Brody12mo ago
and how much credit do you have left?
vek
vek12mo ago
4.16 dollars at this current rate i believe the pro plan may be suitable but as the site gets more traffic i dont believe it will be enough and i dont want to spend more money if possible
Brody
Brody12mo ago
thats less than a dollar for 3 days, for a node app, i dont see any issues with that do you have a client base?
vek
vek12mo ago
but wont my usage rates go up a ton as i get more traffic as my traffic right now is extremely minimal no im 14 lol i jus run it off my own money
Brody
Brody12mo ago
of course, but unless you have written extremely inefficient code, i would not say that your usage would "go up a ton" just get the hobby plan, you dont need the pro plan
vek
vek12mo ago
isnt usage rate determined by the amount of hours spent on the site or smthing or the features used so logically wouldnt the usage rates increase proportionelty the more ppl use the site?
Brody
Brody12mo ago
railway charges for resource usage, not visitors or anything like that, but still resource usage would of course increase with more users, generally i wouldn’t say its proportal by any means
vek
vek12mo ago
do you have any advice on things that could decrease my egress and cpu usage? like in general
Brody
Brody12mo ago
do you have any advice on things that could decrease cpu usage?
it may seem like a lame answer, write efficient code
do you have any advice on things that could decrease my egress usage?
theres not a whole lot you can do about egress, but to eliminate egress costs on your database service, make sure you connect to it using the private url (if you even are using a database)
vek
vek12mo ago
alr - for cpu what r things i should avoid doing though
Brody
Brody12mo ago
ive outlined some things for you to look into, but unfortunately theres not much more i can help you with, these threads are more for help with railway but this thread is starting to get a bit off topic
vek
vek12mo ago
alr ty for ur help
Brody
Brody12mo ago
have a nice day / night
Want results from more Discord servers?
Add your server