Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c1d10e8b
Commit
c1d10e8b
authored
Feb 04, 2015
by
antirez
Browse files
No-sync: some info in the example redis.conf comments.
parent
ede98af9
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.conf
View file @
c1d10e8b
...
@@ -300,6 +300,38 @@ repl-diskless-sync-delay 5
...
@@ -300,6 +300,38 @@ repl-diskless-sync-delay 5
#
#
# repl-ping-slave-period 10
# repl-ping-slave-period 10
# WARNING: This feature is experimental, just an evaluation draft.
#
# No-sync replication is a special, inconistent, mode of operation for slaves
# that is sometimes useful in caching scenarios.
#
# In this setup slaves, when connecting to masters, don't ask for the pre
# existing state of the key space, so no synchronization with the current
# master data is performed at all. However the slaves will get all the new
# stream of writes receiving the master, starting from the moment the slave
# connects.
#
# This means that:
# 1) There is no consistency between master and slaves operating in this mode.
# 2) It is possible that keys with an expire in the master will never expire
# in the slave (because the slave may miss the EXPIRE command).
# 3) Keys updated with non-idempotent commands may end with different values.
#
# However if your workload is about idempotent updates (for example using
# just the SET command), and no-sync slaves are configured in order to evict
# data on their own using maxmemory and a suitable policy, there are certain
# advantages:
#
# 1) Slaves are always available (assuming they are configured to serve stale
# data), since reconnecting with the master has no cost.
# 2) Masters don't have to persist on disk and/or stream an RDB file to the
# slaves, slaves are just accepted ASAP and put online.
#
# To enable, simply set repl-no-sync to yes. By default this feature is
# disabled.
#
# repl-no-sync no
# The following option sets the replication timeout for:
# The following option sets the replication timeout for:
#
#
# 1) Bulk transfer I/O during SYNC, from the point of view of slave.
# 1) Bulk transfer I/O during SYNC, from the point of view of slave.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment