2 years ago
By default the container uses up a minimum of 500mb of ram, I found a stack overflow post on how to reduce this initial RAM allocation.
Is there an easy way to change the config from within Railway or should I create a custom docker image?
26 Replies
2 years ago
very interesting findings, I will definitely look for a way to apply these settings to a mysql database on railway!
2 years ago
easy enough, simply append --performance_schema=0 to the start command, doing so dropped my idle memory of a freshly deployed mysql database from 490MB to 177MB
2 years ago
no problem!
2 years ago
nice Brody! wonder if we should add this to the template
I get this when i added that to my start command… i must be putting it in the wrong place
2 years ago
prob need to put it at the end
2 years ago
it might be worth it, the extra memory is used for database monitoring that i dont even think you could utilize on railway
2 years ago
this also would allow trial plan users to run the mysql databases
2 years ago
im sure there are other things, don't know if they could be tweaked via cli flags though
after deleting the other project i wasnt even using and this according to my calculations at least while idle right now it should be 3.96, Ill add making dominican sazon to the list of stuff to give / teach you 😂 , thanks again brody
2 years ago
happy to help 🙂
2 years ago
their internal system to track tasks and such
2 years ago
haha not quite


