Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
added QUERY_CACHE_TYPE config
Browse files Browse the repository at this point in the history
  • Loading branch information
hauptmedia committed Nov 12, 2015
1 parent 1656f96 commit 0573f25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions 10.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ENV MAX_CONNECTIONS=100 \
PORT=3306 \
MAX_ALLOWED_PACKET=16M \
QUERY_CACHE_SIZE=16M \
QUERY_CACHE_TYPE=1 \
INNODB_LOG_FILE_SIZE=48M

ENTRYPOINT ["/entrypoint.sh"]
Expand Down
1 change: 1 addition & 0 deletions 10.1/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ sed -i -e "s/^#max_connections.*=.*/max_connections=${MAX_CONNECTIONS}/" /etc/my
sed -i -e "s/^max_allowed_packet.*=.*/max_allowed_packet=${MAX_ALLOWED_PACKET}/" /etc/mysql/my.cnf
sed -i -e "s/^query_cache_size.*=.*/query_cache_size=${QUERY_CACHE_SIZE}/" /etc/mysql/my.cnf
sed -i -e "s/^\[mysqld\]/\[mysqld\]\ninnodb_log_file_size=${INNODB_LOG_FILE_SIZE}/" /etc/mysql/my.cnf
sed -i -e "s/^\[mysqld\]/\[mysqld\]\nquery_cache_type=${QUERY_CACHE_TYPE}/" /etc/mysql/my.cnf


# if command starts with an option, prepend mysqld
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
| MAX_ALLOWED_PACKET | 16M | The maximum size of one packet |
| QUERY_CACHE_SIZE | 16M | The amount of memory allocated for caching query results |
| INNODB_LOG_FILE_SIZE | 48M | Size in bytes of each log file in the log group |
| QUERY_CACHE_TYPE | 1 | Set the query cache type 0=OFF, 1=ON, 2=DEMAND |

### Galera specific settings

Expand Down

0 comments on commit 0573f25

Please sign in to comment.