Is it possible to change the default config of a Mysql Container?
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?
https://stackoverflow.com/questions/10676753/reducing-memory-consumption-of-mysql-on-ubuntuaws-micro-instance
Stack Overflow
Reducing memory consumption of mysql on ubuntu@aws micro instance
I have recently started on a PoC project wherein we are developing a small web app. The initial setup is done on a micro instance from AWS. We are on rails+mysql stack.
After installing/running My...
Solution:Jump to solution
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 177MB27 Replies
Project ID:
N/A
N/A
very interesting findings, I will definitely look for a way to apply these settings to a mysql database on railway!
Solution
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@Brody Legend thanks a lot! π
no problem!
Testing this out for myself
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
prob need to put it at the end
yep, didnt crash
now i need to wait like an hour or something to see if it drops
it might be worth it, the extra memory is used for database monitoring that i dont even think you could utilize on railway
https://dev.mysql.com/doc/refman/8.0/en/performance-schema.html
good god
Brody the wizard strikes again
this also would allow trial plan users to run the mysql databases
thats so odd, i wonder what else could be turned of now lol
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
happy to help π
whats this? π€
their internal system to track tasks and such
ah I thought it was some railway feature
haha not quite