Skip to content

Commit

Permalink
reduce mariadb ram usage
Browse files Browse the repository at this point in the history
kolla has mariadb default to using 40% of available memory, up to a max
of 8GB. This has been causing OOM errors on chi@edge, so this drops the
ratio to 20%.
  • Loading branch information
msherman64 committed Jan 24, 2025
1 parent c29c135 commit b48b69c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kolla/node_custom_config/galera.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[mysqld]
{% set dynamic_pool_size_mb = (hostvars[inventory_hostname].ansible_facts.memtotal_mb * 0.2) | round | int %}
{% if dynamic_pool_size_mb < 8192 %}
innodb_buffer_pool_size = '{{ dynamic_pool_size_mb }}M'
{% else %}
innodb_buffer_pool_size = '8192M'
{% endif %}

0 comments on commit b48b69c

Please sign in to comment.