diff options
| author | Daneyon Hansen <danehans@cisco.com> | 2015-06-15 23:05:31 +0000 |
|---|---|---|
| committer | Daneyon Hansen <danehans@cisco.com> | 2015-06-24 19:57:31 +0000 |
| commit | 4a4cf92eb9c00f54b6e9f916070fe82454ae86c2 (patch) | |
| tree | 5a1a989d2f0041f3393548fd2d2ba0f758aa31b3 /docker/common | |
| parent | f23a35651e7ccb7aec9bd3e83cd9783ff79b1942 (diff) | |
| download | kolla-4a4cf92eb9c00f54b6e9f916070fe82454ae86c2.tar.gz kolla-4a4cf92eb9c00f54b6e9f916070fe82454ae86c2.zip | |
Fixes MariaDB to support Heat
When spawning Heat stacks, the DB reaches the max_connections
limit. This causes MariaDB to block all traffic by source IP,
essentially blocking all services. This patch introduces the
MARIADB_MAX_CONNECTIONS parameter to make the max_connections
configurable. The default of 151 max_connections is maintained.
Closes-Bug: #1465422
Change-Id: I869aa9f117c6fa959b1c6948dfc379f30a6bc1d7
Diffstat (limited to 'docker/common')
| -rwxr-xr-x | docker/common/mariadb-app/config-mysql.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/common/mariadb-app/config-mysql.sh b/docker/common/mariadb-app/config-mysql.sh index b11939b8b..6cc6afa78 100755 --- a/docker/common/mariadb-app/config-mysql.sh +++ b/docker/common/mariadb-app/config-mysql.sh @@ -19,6 +19,7 @@ crudini --set $server_cnf mysqld default-storage-engine $DEFAULT_STORAGE_ENGINE crudini --set $server_cnf mysqld collation-server $COLLATION_SERVER crudini --set $server_cnf mysqld init-connect "'${INIT_CONNECT}'" crudini --set $server_cnf mysqld character-set-server $CHAR_SET_SERVER +crudini --set $server_cnf mysqld max_connections "$MARIADB_MAX_CONNECTIONS" if [ "${INNODB_FILE_PER_TABLE}" == "true" ] || ["${INNODB_FILE_PER_TABLE}" == "True" ] ; then crudini --set $server_cnf mysqld innodb_file_per_table 1 fi |
