R
Railway16mo ago
sambhav

What is a good / recommended resource use for a web app? Plus question about scaling.

I am deploying a few applications for a client of mine. It is a multi-tenant app made in sveltekit. Right now there are no actual external users, only a couple of people testing it and what I see is the memory for the frontend (sveltekit) app is about 100Mb mark (and similar for the API which is nodeJS/express). I am on Hobby plan right now but as soon the app is complete we plan to move to PRO. The client is not clear on how the scaling will work. The PRO plan mentions that it includes horizontal scaling, but do we have to edit any settings or buy more CPUs ? OR will the scaling just automatically work ?
Solution:
- ~100mb for a node app is perfectly normal - railway has horizonal scaling but it is not yet automatic, you just define a set number of replicas in the settings https://docs.railway.app/develop/services#horizontal-scaling-with-replicas...
Jump to solution
9 Replies
Percy
Percy16mo ago
Project ID: 20f1c8cb-7c67-4474-a8e7-7f50a349d80f
sambhav
sambhavOP16mo ago
20f1c8cb-7c67-4474-a8e7-7f50a349d80f
Solution
Brody
Brody16mo ago
- ~100mb for a node app is perfectly normal - railway has horizonal scaling but it is not yet automatic, you just define a set number of replicas in the settings https://docs.railway.app/develop/services#horizontal-scaling-with-replicas
sambhav
sambhavOP16mo ago
Thanks @Brody < If the replicas is blank then does it mean it is just one ? My client is also asking when will the feature of Project Cost Limits (Coming Soon) be available? they are worried that once they go live they will get a large bill than what they plan to spend.
Brody
Brody16mo ago
- default is one replica - im sorry i dont know, but it is not as big of a deal as you may think, you get email notifications for usage
sambhav
sambhavOP16mo ago
thanks Brodi, One last thing on this topic, at what point I should consider adding more replicas ? is there a recommendation when it reaches certain resource usage ?
Brody
Brody16mo ago
usually you wanna keep resource usage bellow a max of like 70-80% per replica, once you start to hit that is when id add another replica
sambhav
sambhavOP16mo ago
thanks!
Brody
Brody16mo ago
no problem!
Want results from more Discord servers?
Add your server