Выключена репликация keydb

This commit is contained in:
2025-07-19 15:53:59 +08:00
parent 28f93bd9a6
commit 24a5f988a3
3 changed files with 4 additions and 5 deletions

View File

@@ -23,10 +23,9 @@ services:
user: ${KEYDB_UID}:${KEYDB_GID} user: ${KEYDB_UID}:${KEYDB_GID}
entrypoint: ["sh", "/entrypoint.sh"] entrypoint: ["sh", "/entrypoint.sh"]
volumes: volumes:
- ./docker/keydb/keydb.conf:/etc/keydb/keydb.conf
- ./docker/keydb/entrypoint.sh:/entrypoint.sh - ./docker/keydb/entrypoint.sh:/entrypoint.sh
- ./docker/keydb/keydb.conf:/etc/keydb/keydb.conf
- ./docker/keydb/data/:/data:rw - ./docker/keydb/data/:/data:rw
- ./log/keydb:/var/log/keydb/:rw
ports: ports:
- ${KEYDB_PORT:-6379}:6379 - ${KEYDB_PORT:-6379}:6379

View File

@@ -526,7 +526,7 @@ replicaof no one
# UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB, COMMAND, POST, # UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB, COMMAND, POST,
# HOST and LATENCY. # HOST and LATENCY.
# #
replica-serve-stale-data no replica-serve-stale-data yes
# Active Replicas will allow read only data access while loading remote RDBs # Active Replicas will allow read only data access while loading remote RDBs
# provided they are permitted to serve stale data. As an option you may also # provided they are permitted to serve stale data. As an option you may also
@@ -556,7 +556,7 @@ replica-serve-stale-data no
# 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.
# #
@@ -2060,7 +2060,7 @@ server-threads 2
# Uncomment the option below to enable Active Active support. Note that # Uncomment the option below to enable Active Active support. Note that
# replicas will still sync in the normal way and incorrect ordering when # replicas will still sync in the normal way and incorrect ordering when
# bringing up replicas can result in data loss (the first master will win). # bringing up replicas can result in data loss (the first master will win).
# active-replica yes active-replica no
# KeyDB will attempt to balance clients across threads evenly; However, replica clients # KeyDB will attempt to balance clients across threads evenly; However, replica clients
# are usually much more expensive than a normal client, and so KeyDB will try to assign # are usually much more expensive than a normal client, and so KeyDB will try to assign

View File