Adding Tunning Options

This commit is contained in:
2018-04-11 17:00:18 +02:00
parent edafc9a45e
commit 8b9bb4e7d7
5 changed files with 109 additions and 0 deletions

View File

@ -15,6 +15,8 @@ wsrep_cluster_address="gcomm://%%nodeIP%slurp
%end for
"
# Tunning
wsrep_provider_options="gcache.size=%%dbClusterGcacheSizeMb"
# Galera Synchronization Configuration
wsrep_sst_method=%%dbSSTMethod

26
tmpl/tunning.cnf Normal file
View File

@ -0,0 +1,26 @@
[mysqld]
innodb_file_per_table=1
skip-name-resolve
innodb_buffer_pool_size=%%getMemoryPercentage(%%getVar('dbInnoDBBufferPoolPercentage', 10))
max_connections=%%dbMaxConnections
thread_cache_size=%%dbThreadCacheSize
%if %%dbCacheQueryEnable == 'oui'
query_cache_type = 1
query_cache_limit = %%dbQueryCacheLimit
query_cache_min_res_unit = %%dbQueryCacheMinResUint
query_cache_size = %%dbQueryCacheSize
%end if
tmp_table_size = %%dbTmpTableSize
max_heap_table_size = %%dbTmpTableSize
%if %%dbEnableSlowQueryLogs == "oui"
slow-query-log = 1
slow-query-log-file = %%dbSlowQueryLogFile
long_query_time = %%dbSlowQueryLogTime
%end if
wait_timeout = %%dbWaitTimeout