Is it possible to set resource limits at the service level?

For example I want to host Meilisearch on Railway but by default it uses a lot of RAM and I understand that is due to the nature of the underlying storage technique. Is it possible to limit the RAM a service has access to from the Railway side.
Solution:
You can't currently do that, sorry, but there's a feedback request open you can upvote: https://railway.canny.io/feature-requests/p/project-limits-dollar-cpu-memory-etc
Project Limits (Dollar, CPU, Memory, etc) | Feature Requests | Railway
Ability to set set limits for projects and ideally services/environments
Jump to solution
13 Replies
Percy
Percy17mo ago
Project ID: d0871e24-36a4-404d-b632-3fd87e93a41c
BagelsForTuesday
BagelsForTuesdayOP17mo ago
d0871e24-36a4-404d-b632-3fd87e93a41c
Solution
root
root17mo ago
You can't currently do that, sorry, but there's a feedback request open you can upvote: https://railway.canny.io/feature-requests/p/project-limits-dollar-cpu-memory-etc
Project Limits (Dollar, CPU, Memory, etc) | Feature Requests | Railway
Ability to set set limits for projects and ideally services/environments
Brody
Brody17mo ago
if meilisearch uses a lot of ram by default and you go limiting that, wouldn't that cause a lot of instabilitys?
BagelsForTuesday
BagelsForTuesdayOP17mo ago
This is for a dev service, not sure on the performance implications but its something I would be curious to audit. Currently thinking of trying the Docker-in-Docker approach which isn't ideal but will see.
Brody
Brody17mo ago
you wouldnt be able to do docker-in-docker on railway
BagelsForTuesday
BagelsForTuesdayOP17mo ago
Would you be able to elaborate on why? The main motivation behind trying to limit RAM usage is to have more predictable pricing etc, wouldn't want the search service hugging GBs of RAM indefinitely
Brody
Brody17mo ago
images are not ran with the correct permissions in order to allow you to run a docker image inside another docker image limiting ram to a service that needs it is not a good idea, im sure there are other search services that use less ram
BagelsForTuesday
BagelsForTuesdayOP17mo ago
Understood, thanks for weighing in on this, much appreciated
Brody
Brody17mo ago
i know that railway runs a melisearch instance on railway, i wish i could tell you what the metrics for that look like i could ask and report back if that would interest you?
BagelsForTuesday
BagelsForTuesdayOP17mo ago
That would be great if possible
Brody
Brody17mo ago
will do @bagelsfortuesday - here is a screenshot for you!
Brody
Brody17mo ago
Want results from more Discord servers?
Add your server