From 2fad823e5ff2366310b9eda6a06272f2930814ec Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Tue, 11 Nov 2025 14:53:44 +0100 Subject: [PATCH] Performance: Increase database buffer pools for Nextcloud and Zabbix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Nextcloud MariaDB: 128MB → 4GB buffer pool - Zabbix MariaDB: 128MB → 3GB buffer pool - Added innodb-log-file-size=512M for better write performance - Added max-connections=200 for better concurrency - Created performance.cnf for Zabbix with additional optimizations Expected improvement: 3-6x faster database queries Impact: Better responsiveness for Nextcloud and Zabbix web UI --- compose_files/nextcloud.yml | 1 + compose_files/zabbix.yml | 2 +- compose_files/zabbix/docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compose_files/nextcloud.yml b/compose_files/nextcloud.yml index 14ff016..2d568f3 100755 --- a/compose_files/nextcloud.yml +++ b/compose_files/nextcloud.yml @@ -15,6 +15,7 @@ services: #options: #loki-url: "http://localhost:3100/loki/api/v1/push" image: mariadb:10.5 + command: --innodb-buffer-pool-size=4G --innodb-log-file-size=512M --max-connections=200 volumes: - /home/icke/mariadb-nextcloud/db:/var/lib/mysql - /etc/localtime:/etc/localtime:ro diff --git a/compose_files/zabbix.yml b/compose_files/zabbix.yml index 599b605..5eb8715 100755 --- a/compose_files/zabbix.yml +++ b/compose_files/zabbix.yml @@ -103,7 +103,7 @@ services: - MYSQL_PASSWORD=eccmts42* volumes: - /home/icke/mysql-zabbix/var:/var/lib/mysql - - /home/icke/mysql-zabbix/custom.cnf:/etc/mysql/conf.d/custom.cnf + - /home/icke/mysql-zabbix/performance.cnf:/etc/mysql/conf.d/performance.cnf:ro restart: unless-stopped networks: zabbix: diff --git a/compose_files/zabbix/docker-compose.yml b/compose_files/zabbix/docker-compose.yml index c5ae5c3..f7214d8 100755 --- a/compose_files/zabbix/docker-compose.yml +++ b/compose_files/zabbix/docker-compose.yml @@ -143,7 +143,7 @@ services: # ------------------------------------------------ mysql-zabbix: image: mariadb:10.6 - command: ['mysqld', '--collation_server=utf8_bin', '--character_set_server=utf8'] + command: ['mysqld', '--collation_server=utf8_bin', '--character_set_server=utf8', '--innodb-buffer-pool-size=3G', '--innodb-log-file-size=512M', '--max-connections=200'] container_name: mysql-zabbix restart: always volumes: