R
Railway

✋|help

Automatic Scaling not working

Ppedrohasf9/14/2023
Project Id: 70ab406f-186f-40f7-ac61-c1a8dcb4bbb9

I am a user on the Hobby plan, the scaling on my project was working fine, i had an expired credit card and ended up losing the subscription for a few days. My subscription is currently active again but now scaling on my project doesn't work, in the Metrics panel i can see that the Memory usage isn't going over 512MB where previously it would go above it by about 5-6x. My service deployment on this project is now constantly crashing probably due to the limited memory is my guess.
Bbrody1929/14/2023
have you done a full redeploy of the service?
Ppedrohasf9/14/2023
It's not a good option for me on my use case as this is a meilisearch deploy. Looks more like an issue on the account allowed quota on railway side
Bbrody1929/14/2023
there is no way to allocate more resources to your service without having to redeploy
you're talking about automatic scaling? railway doesn't automatically scale any resources
Ppedrohasf9/14/2023
I guess it's not really automatic scaling, it's just allocation of resources. I am on the hobby plan which means that "Your plan includes up to 8 GB of RAM, 8 vCPU, and 100 GB of Shared Disk.". But i can clearly see a cap of 512 MB of RAM on my project which is the cap of the free tier/trial tier.
Ppedrohasf9/14/2023
This doesn't make much sense to me unless i am missing something... If a trial user creates a project where he's capped to 512MB and then he needs to upgrade to get more RAM memory he would need to redeploy the entire thing? Don't think this is what happened to me
Bbrody1929/14/2023
you where bumped down to the trial resources when your payment declined, to get your deployment back up to the hobby resources you will have to redeploy
I see this same question all the time
"I've upgraded to hobby but can't use more than 512mb of ram"
the answer being, simply redeploy. railway can not allocate extra resources to a running docker image
Ppedrohasf9/14/2023
Got it, ok thanks
Bbrody1929/14/2023
same with a hobby to pro upgrade, you need to redoploy your service to get your service to use the pro resources
Ppedrohasf9/14/2023
Looks like an opportunity for improving documentation here if this really happens often because currently this info is not clear anywhere
Thanks for the answer though
Bbrody1929/14/2023
you can't add extra cpu or memory to a running deployment the same way you can't swap out your cpu or add extra memory to a running computer
and yes 100% agree the documentation for this could be so much better, but if i recall correctly they want to improve the upgrade flow making it self explanatory so there's no room for confusion in the first place
Ppedrohasf9/14/2023
Yeah this makes sense to me, it's just pretty confusing to me since i didn't have to redeploy it when i first upgraded and it all worked. Only option for this to have worked out is if i was on the hobby plan since the start which i am not 100% sure but i don't think was the case here
Ppedrohasf9/14/2023
but anyway, it's fine, thank you!
Bbrody1929/14/2023
a deployment from a code change would have also put you on the hobby resources

Looking for more? Join the community!

Recommended Posts
Cron Job Run NowHello, I created a separate service with a cron expression configured. All works well until I try tNo sure that the changes are being applied when railway up.I have a Django app that was working fine until recently. One day, after running `railway up`, I staReferenceError: FormData is not defined in ProductionHello, my codes are working fine on localhost, but when I push the codes to railway it throws this mNestJS app starts correctly but receives SIGTERM after 20 seconds (Hobby Plan)Hello ! I've managed to successfully deployed and start my NestJS app, but I receive a SIGTERM 20 sFlask App Keep Getting Called From 192.168.0.xI'm not sure if this is the right place to ask, but i noticed that my app is getting call from 192.1sslIm new to all this so bare with me. I have a .dev site and the ssl giving me some issues. I'm gettiDeploy Logs Incorrectly Highlighting Logs as ErrorI'm having this issue with a custom log formatter on python defined like this: ``` formatter = loggDeployment stuck while pushing the image and failing after ~30minsHi, I have 4 environment in a project. I'm deploying fastapi application using uvicorn, it was takinpg_restoreIs remote postgres pg_restore from a local binary dump file supposed to take super long? It took likRemove 2FAHi!  I had a string of bad luck and lost my 2FA key for my account. Then I proceeded to use my recoRegion SelectionThe database and the services I work with are in the European region so I'm experiencing some delaysExperiencing crash with no output for the reason of the crash.Hello, I'm having issues with my project that I'm working on. I'm trying to test uploading some datRailway StrapiHi. It's taken me entire day and I think I am getting close. I deployed Strapi with postgres on RailLogs down?I haven't been able to see any logs, deploy or build or observability for the past 15 minDeploy from Gitlab failsI am getting the error: error sending request for url (https://backboard.railway-develop.app/graphRailway Github ActionHey i followed the blog online and am trying to deploy my railway app under a `backend/` directory iBuild slowHi, ive pushed some updates to my sveltekit app that makes my buildtime about 4 minutes for some reaIssue Deploying Laravel PHPHello, i'm trying to deploy an already existing project made in PHP, using Laravel, and i'm trying tCustom domain not showing CNameHi! Just wanted to deploy our main app to Railway but when adding a custom domain it shows an error custom domain via googleHi! I am trying to deploy to a custom domain managed by google, and saw a bunch of posts about issue