Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
add parameter redis_appendfsync
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerder committed Nov 8, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e11fb3d commit 0b8c246
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

5 changes: 3 additions & 2 deletions manifests/server.pp
Original file line number Diff line number Diff line change
@@ -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,
5 changes: 1 addition & 4 deletions templates/etc/redis.conf.erb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0b8c246

Please sign in to comment.