diff --git a/README.md b/README.md index 7776ccc..d64430a 100644 --- a/README.md +++ b/README.md @@ -280,9 +280,9 @@ Configure the percentage size difference between the last aof filesize and the n #####`aof_rewrite_minsize` -Configure the minimum size of the aof file to trigger size comparisons for rewriting. Default: 64mb +Configure the minimum size in mb of the aof file to trigger size comparisons for rewriting. Default: 64 -#####`redis_appedfsync` +#####`redis_appendfsync` Configure the value for when an fsync should happen. Values are either everysec, always, or no. Default: everysec diff --git a/manifests/server.pp b/manifests/server.pp index a34c632..f075b18 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -41,8 +41,8 @@ # Configure the percentage size difference between the last aof filesize # and the newest to trigger a rewrite. Default: 100 # [*aof_rewrite_minsize*] -# Configure the minimum size of the aof file to trigger size comparisons for rewriting. -# Default: 64mb +# Configure the minimum size in mb of the aof file to trigger size comparisons for rewriting. +# Default: 64 (integer) # [*redis_enabled_append_file*] # Enable custom append file. Default: false # [*redis_append_file*] @@ -82,6 +82,7 @@ $appendfsync_on_rewrite = false, $aof_rewrite_percentage = 100, $aof_rewrite_minsize = 64, + $redis_appendfsync = 'everysec', $redis_enabled_append_file = false, $redis_append_file = undef, $redis_append_enable = false, diff --git a/templates/etc/redis.conf.erb b/templates/etc/redis.conf.erb index e9b88cf..dd6dde7 100644 --- a/templates/etc/redis.conf.erb +++ b/templates/etc/redis.conf.erb @@ -330,10 +330,7 @@ appendonly <% if @redis_append_enable -%> yes <% else -%> no <% end -%> # # If unsure, use "everysec". -# appendfsync always - -appendfsync <%= @redis_appedfsync %> -# appendfsync no +appendfsync <%= @redis_appendfsync %> # When the AOF fsync policy is set to always or everysec, and a background # saving process (a background save or AOF log background rewriting) is