mirror of https://github.com/MISP/misp-docker
Make InnoDB configurable
parent
9929290c89
commit
14ce181611
|
@ -30,6 +30,15 @@ services:
|
||||||
- "MYSQL_PASSWORD=${MYSQL_PASSWORD:-example}"
|
- "MYSQL_PASSWORD=${MYSQL_PASSWORD:-example}"
|
||||||
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-password}"
|
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-password}"
|
||||||
- "MYSQL_DATABASE=${MYSQL_DATABASE:-misp}"
|
- "MYSQL_DATABASE=${MYSQL_DATABASE:-misp}"
|
||||||
|
command: "\
|
||||||
|
--innodb-buffer-pool-size=${INNODB_BUFFER_POOL_SIZE:-2048M} \
|
||||||
|
--innodb-change-buffering=${INNODB_CHANGE_BUFFERING:-none} \
|
||||||
|
--innodb-io-capacity=${INNODB_IO_CAPACITY:-1000} \
|
||||||
|
--innodb-io-capacity-max=${INNODB_IO_CAPACITY_MAX:-2000} \
|
||||||
|
--innodb-log-file-size=${INNODB_LOG_FILE_SIZE:-600M} \
|
||||||
|
--innodb-read-io-threads=${INNODB_READ_IO_THREADS:-16} \
|
||||||
|
--innodb-stats-persistent=${INNODB_STATS_PERSISTENT:-ON} \
|
||||||
|
--innodb-write-io-threads=${INNODB_WRITE_IO_THREADS:-4}"
|
||||||
volumes:
|
volumes:
|
||||||
- mysql_data:/var/lib/mysql
|
- mysql_data:/var/lib/mysql
|
||||||
cap_add:
|
cap_add:
|
||||||
|
|
10
template.env
10
template.env
|
@ -181,3 +181,13 @@ SYNCSERVERS_1_PULL_RULES=
|
||||||
# PHP_UPLOAD_MAX_FILESIZE=50M
|
# PHP_UPLOAD_MAX_FILESIZE=50M
|
||||||
# PHP_POST_MAX_SIZE=50M
|
# PHP_POST_MAX_SIZE=50M
|
||||||
# PHP_MAX_INPUT_TIME=300
|
# PHP_MAX_INPUT_TIME=300
|
||||||
|
|
||||||
|
# MariaSQL/MySQL (InnoDB) configuration
|
||||||
|
# INNODB_BUFFER_POOL_SIZE=2048M
|
||||||
|
# INNODB_CHANGE_BUFFERING=none
|
||||||
|
# INNODB_IO_CAPACITY=1000
|
||||||
|
# INNODB_IO_CAPACITY_MAX=2000
|
||||||
|
# INNODB_LOG_FILE_SIZE=600M
|
||||||
|
# INNODB_READ_IO_THREADS=16
|
||||||
|
# INNODB_STATS_PERSISTENT=ON
|
||||||
|
# INNODB_WRITE_IO_THREADS=4
|
||||||
|
|
Loading…
Reference in New Issue