loadtesting autoscaling fails
orenaksakal
HOBBYOP

a year ago

I'm doing a loadtest using siege cli utility and my app (nextjs) scales above 1.3vcpu and then goes down I'm on pro plan and I would expect it to scale without problem, is there a config I should enable for this?

id: eea43e56-e155-4533-974d-97fcce3211a3

Solved

9 Replies

a year ago

is this a node app?


orenaksakal
HOBBYOP

a year ago

nixpacks build nextjs yes


a year ago

node is single threaded, its not going to scale above about 1 vCPU, you will want to scale out horizontally with replicas


orenaksakal
HOBBYOP

a year ago

uh oh I was hoping there is some magic to it. Thank you Brody

is it possible to put replicas to sleep and scale on demand?


a year ago

unfortunately even Railway can't change the fact that node is single threaded


a year ago

you can put all replicas to sleep, but no we don't support auto scaling based on load, but judoscale is working on an integration with Railway! so get i touch with them if you are interested in that!


orenaksakal
HOBBYOP

a year ago

thanks again Brody! you can close this 🤝


a year ago

sounds good, happy to help!


a year ago

!s


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...