Browse Source

[toolset] Mysql use the same kernel optimization (#8076)

than PosgreSQL
Joan Miquel 2 years ago
parent
commit
3e4e1258bd

+ 2 - 0
toolset/databases/mysql/60-database-shm.conf

@@ -0,0 +1,2 @@
+kernel.shmmax=2147483648
+kernel.shmall=2097152

+ 2 - 0
toolset/databases/mysql/mysql.dockerfile

@@ -7,3 +7,5 @@ ENV MYSQL_DATABASE=hello_world
 
 COPY my.cnf /etc/mysql/
 COPY create.sql /docker-entrypoint-initdb.d/
+
+COPY 60-database-shm.conf /etc/sysctl.d/60-database-shm.conf