Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add diskless replication and aof-use-rdb-preamble config options #199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ redis_slaveof: false
redis_slave_read_only: "yes"
redis_slave_priority: 100
redis_repl_backlog_size: false
redis_repl_diskless_sync: "no"
redis_repl_diskless_sync_delay: 5

## Logging
redis_logfile: '""'
Expand Down Expand Up @@ -95,6 +97,7 @@ redis_no_appendfsync_on_rewrite: "no"
redis_auto_aof_rewrite_percentage: "100"
redis_auto_aof_rewrite_min_size: "64mb"
redis_notify_keyspace_events: '""'
redis_aof_use_rdb_preamble: "no"

## Redis sentinel configs
# Set this to true on a host to configure it as a Sentinel
Expand Down
3 changes: 3 additions & 0 deletions templates/redis.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ min-slaves-max-lag {{ redis_min_slaves_max_lag }}
{% if redis_password -%}
masterauth {{ redis_password }}
{% endif -%}
repl-diskless-sync {{ redis_repl_diskless_sync }}
repl-diskless-sync-delay {{ redis_repl_diskless_sync_delay }}

# Security
{% if redis_password -%}
Expand Down Expand Up @@ -97,3 +99,4 @@ client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes
aof-use-rdb-preamble {{ redis_aof_use_rdb_preamble }}