From fdeb93f4dc2f8f85b1118d8db91de93d8a9d1f17 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Mon, 29 Dec 2025 17:54:24 +0100 Subject: [PATCH] update template name && add buffer_pool_instances into template --- tasks/configure.yml | 4 ++-- templates/my.cnf.j2 | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 3d0c650..17f9cfb 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -2,7 +2,7 @@ - name: percona | configure Percona Server template: src: my.cnf.j2 - dest: /etc/mysql/conf.d/01-ansible.cnf + dest: /etc/mysql/conf.d/01-override.cnf mode: '0644' notify: Restart Percona Server @@ -28,4 +28,4 @@ plugin_auth_string: "{{ percona_root_password }}" salt: "{{ percona_caching_sha2_password_salt }}" login_unix_socket: /var/run/mysqld/mysqld.sock - ignore_errors: true # In case password is already set and socket auth is disabled \ No newline at end of file + ignore_errors: true # In case password is already set and socket auth is disabled diff --git a/templates/my.cnf.j2 b/templates/my.cnf.j2 index 6c7654a..bfebe48 100644 --- a/templates/my.cnf.j2 +++ b/templates/my.cnf.j2 @@ -26,6 +26,7 @@ table_definition_cache = {{ percona_table_definition_cache }} # InnoDB settings innodb_buffer_pool_size = {{ percona_innodb_buffer_pool_size }} +innodb_buffer_pool_instances = {{ percona_innodb_buffer_pool_instances }} innodb_log_file_size = {{ percona_innodb_log_file_size }} innodb_log_buffer_size = {{ percona_innodb_log_buffer_size }} innodb_flush_log_at_trx_commit = {{ percona_innodb_flush_log_at_trx_commit }} @@ -65,4 +66,4 @@ performance_schema = {{ percona_performance_schema }} sql_mode = {{ percona_sql_mode }} # Authentication -mysql_native_password = ON \ No newline at end of file +mysql_native_password = ON