Fix minor issues for Galera params

Fix nitpicks from Ie5945d65f211b6ea074c69b080bba6b9dfad60b2

Change-Id: I5381e5c9b15e60d742b6fd00988603d408e9c5bd
Related-bug: #1475433
This commit is contained in:
Denis Egorenko 2015-08-11 13:47:35 +03:00
parent 3a3b3698aa
commit 142efcc0fd
2 changed files with 4 additions and 5 deletions

View File

@ -29,8 +29,7 @@ class galera::params {
inline_template("<%= [(${buffer_size} * 0.2 + 0).floor, 2047].min %>M")
$wait_timeout = '1800'
$myisam_sort_buffer_size = '64M'
$key_buffer_size_mb = '64'
$key_buffer_size = "${key_buffer_size_mb}M"
$key_buffer_size = '64'
$table_open_cache = '10000'
$open_files_limit = '102400'
$innodb_flush_method = 'O_DIRECT'
@ -38,8 +37,8 @@ class galera::params {
$sort_buffer_size_mb = '0.25'
$read_buffer_size_mb = '0.125'
$max_connections = inline_template(
"<%= [[((${::memorysize_mb} * 0.3 - ${key_buffer_size_mb}) /
(${sort_buffer_size_mb} + ${read_buffer_size_mb})).floor, 8192].min, 1000].max %>")
"<%= [[((${::memorysize_mb} * 0.3 - ${key_buffer_size}) /
(${sort_buffer_size_mb} + ${read_buffer_size_mb})).floor, 8192].min, 2048].max %>")
if ($::galera::use_percona) {
case $::osfamily {

View File

@ -24,7 +24,7 @@ myisam_sort_buffer_size=<%= @myisam_sort_buffer_size %>
wait_timeout=<%= @wait_timeout %>
open_files_limit=<%= @open_files_limit %>
table_open_cache=<%= @table_open_cache %>
key_buffer_size=<%= @key_buffer_size %>
key_buffer_size=<%= @key_buffer_size %>M
max_allowed_packet=256M
query_cache_size=0
query_cache_type=0