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
Percy12mo ago
Project ID: d0871e24-36a4-404d-b632-3fd87e93a41c
bagelsfortuesday
bagelsfortuesday12mo ago
d0871e24-36a4-404d-b632-3fd87e93a41c
Solution
root
root12mo 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
Brody12mo ago
if meilisearch uses a lot of ram by default and you go limiting that, wouldn't that cause a lot of instabilitys?
bagelsfortuesday
bagelsfortuesday12mo 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
Brody12mo ago
you wouldnt be able to do docker-in-docker on railway
bagelsfortuesday
bagelsfortuesday12mo 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
Brody12mo 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
bagelsfortuesday12mo ago
Understood, thanks for weighing in on this, much appreciated
Brody
Brody12mo 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
bagelsfortuesday12mo ago
That would be great if possible
Brody
Brody12mo ago
will do @bagelsfortuesday - here is a screenshot for you!
Brody
Brody12mo ago
Want results from more Discord servers?
Add your server
More Posts