With PyMySQL in the projects we can expect things to happen more
concurrently now. The query cache is a hinderance to concurrency, and
more connections will be required.
Change-Id: Icfb8cdbb9ed39cfd7732ad05fe740e01c767af7b
| ... | ... |
@@ -95,7 +95,10 @@ function configure_database_mysql {
|
| 95 | 95 |
sudo bash -c "source $TOP_DIR/functions && \ |
| 96 | 96 |
iniset $my_conf mysqld bind-address 0.0.0.0 && \ |
| 97 | 97 |
iniset $my_conf mysqld sql_mode STRICT_ALL_TABLES && \ |
| 98 |
- iniset $my_conf mysqld default-storage-engine InnoDB" |
|
| 98 |
+ iniset $my_conf mysqld default-storage-engine InnoDB \ |
|
| 99 |
+ iniset $my_conf mysqld max_connections 1024 \ |
|
| 100 |
+ iniset $my_conf mysqld query_cache_type OFF \ |
|
| 101 |
+ iniset $my_conf mysqld query_cache_size 0" |
|
| 99 | 102 |
|
| 100 | 103 |
|
| 101 | 104 |
if [[ "$DATABASE_QUERY_LOGGING" == "True" ]]; then |