#Server overloaded -- How to Scale?

18 messages · Page 1 of 1 (latest)

lament estuary
#

Hey guys, we're running into issues with our railway server being overloaded. We keep getting 503 errors Application failed to respond. Is there a way to scale our railway server / enable autoscaling? Thanks!

plush thunderBOT
#

Project ID: 82091a0b-2976-40b9-bb0f-784a7f99567f

proud stumpBOT
#

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

lament estuary
#

82091a0b-2976-40b9-bb0f-784a7f99567f

ocean rampart
#

Autoscaling should be enabled by default 🤔

#

well it's not even an option

elfin quail
#

are you sure that it's server overloaded thing?

lament estuary
#

We're on the Pro plan

#

Hmm

#

This is a screenshot of our metrics

#

Maybe the server isn't overloaded in terms of available CPU / Memory, but it's just that our code (nodejs server) is inefficient at handling many requests at a time, so it simply fails prior to the available CPU / Memory becoming saturated?

#

Ahh seems like increasing replicas fixed it! Thanks

#

Though I'd still be curious to know why it didn't autoscale in the default settings, as having to manually manage replicas isn't super convenient haha

elfin quail
elfin quail
fluid plover
#

@elfin quail I have a question regarding this

How to determine how many replicas would be needed to scale the application