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:Jump to 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
13 Replies
Project ID:
d0871e24-36a4-404d-b632-3fd87e93a41c
d0871e24-36a4-404d-b632-3fd87e93a41c
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
if meilisearch uses a lot of ram by default and you go limiting that, wouldn't that cause a lot of instabilitys?
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.
you wouldnt be able to do docker-in-docker on railway
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
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
Understood, thanks for weighing in on this, much appreciated
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?
That would be great if possible
will do
@bagelsfortuesday - here is a screenshot for you!