aboutsummaryrefslogtreecommitdiff
path: root/tests/templates
diff options
context:
space:
mode:
authorMichal Arbet <michal.arbet@ultimum.io>2025-06-02 18:45:12 +0200
committerMichal Arbet <michal.arbet@ultimum.io>2025-06-02 18:45:12 +0200
commit901442967597445901e04e7ced7cc78dfa39cb1a (patch)
tree45d00d0eea58b760b1256630704b091dee603b1f /tests/templates
parent172d701e0a24d2026e1ad2d54777b14814dc983c (diff)
downloadkolla-ansible-901442967597445901e04e7ced7cc78dfa39cb1a.tar.gz
kolla-ansible-901442967597445901e04e7ced7cc78dfa39cb1a.zip
[CI] Override MariaDB memory usage for CI
Our CI environment runs all services (including qemu, libvirt, etc.) on a single node with only 8 GB RAM. The default MariaDB configuration is too memory-heavy for such constrained resources. This change introduces a mariadb-overrides.j2 file that limits key memory-consuming options: - max_connections = 300 (instead of 10000) - innodb_buffer_pool_size = 1024M - tmp_table_size / max_heap_table_size = 32M These limits help avoid OOM kills during testing and prevent unnecessary RAM consumption. This change is CI-specific and does not impact kolla-ansible user deployments. Change-Id: I9a59b2f7c5dafdfeb147eb93d89039e98988049f
Diffstat (limited to 'tests/templates')
-rw-r--r--tests/templates/mariadb-overrides.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/templates/mariadb-overrides.j2 b/tests/templates/mariadb-overrides.j2
new file mode 100644
index 000000000..e87de7108
--- /dev/null
+++ b/tests/templates/mariadb-overrides.j2
@@ -0,0 +1,5 @@
+[mysqld]
+max_connections = 300
+innodb_buffer_pool_size = 1024M
+max_heap_table_size = 32M
+tmp_table_size = 32M