From 83a478925953bdb8837d839c356e57613659fa46 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 15 Nov 2021 11:27:14 +0100 Subject: [PATCH] fix: increase packets to avoid comm timeouts See https://www.percona.com/blog/2016/05/16/mysql-got-an-error-reading-communication-packet-errors/. For ruangrupa infra. --- abra.sh | 2 +- my-tune.cnf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index 663d4d1..650b31b 100644 --- a/abra.sh +++ b/abra.sh @@ -1,6 +1,6 @@ export FPM_TUNE_VERSION=v4 export NGINX_CONF_VERSION=v2 -export MY_CNF_VERSION=v3 +export MY_CNF_VERSION=v4 NC_APP_DIR="app:/var/www/html" diff --git a/my-tune.cnf b/my-tune.cnf index 935f14f..843dfd1 100644 --- a/my-tune.cnf +++ b/my-tune.cnf @@ -12,7 +12,7 @@ join_buffer_size = 256K key_buffer_size = 16M innodb_log_file_size = 256M long_query_time = 1 -max_allowed_packet = 64M +max_allowed_packet = 256M max_connections = 100 max_heap_table_size = 64M max_user_connections = 0