Выключены параметры репликации

This commit is contained in:
2025-06-30 23:33:47 +08:00
parent 13de506761
commit ea700fc0fe

View File

@@ -416,7 +416,7 @@ dir /data
# SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB, # SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB,
# COMMAND, POST, HOST: and LATENCY. # COMMAND, POST, HOST: and LATENCY.
# #
replica-serve-stale-data yes replica-serve-stale-data no
# You can configure a replica instance to accept writes or not. Writing against # You can configure a replica instance to accept writes or not. Writing against
# a replica instance may be useful to store some ephemeral data (because data # a replica instance may be useful to store some ephemeral data (because data
@@ -432,7 +432,7 @@ replica-serve-stale-data yes
# such as CONFIG, DEBUG, and so forth. To a limited extent you can improve # such as CONFIG, DEBUG, and so forth. To a limited extent you can improve
# security of read only replicas using 'rename-command' to shadow all the # security of read only replicas using 'rename-command' to shadow all the
# administrative / dangerous commands. # administrative / dangerous commands.
replica-read-only yes replica-read-only no
# Replication SYNC strategy: disk or socket. # Replication SYNC strategy: disk or socket.
# #
@@ -505,7 +505,7 @@ repl-diskless-load disabled
# change this interval with the repl_ping_replica_period option. The default # change this interval with the repl_ping_replica_period option. The default
# value is 10 seconds. # value is 10 seconds.
# #
# repl-ping-replica-period 10 # repl-ping-replica-period 0
# The following option sets the replication timeout for: # The following option sets the replication timeout for:
# #
@@ -517,7 +517,7 @@ repl-diskless-load disabled
# specified for repl-ping-replica-period otherwise a timeout will be detected # specified for repl-ping-replica-period otherwise a timeout will be detected
# every time there is low traffic between the master and the replica. # every time there is low traffic between the master and the replica.
# #
# repl-timeout 60 # repl-timeout 0
# Disable TCP_NODELAY on the replica socket after SYNC? # Disable TCP_NODELAY on the replica socket after SYNC?
# #