16243:M 22 May 2021 00:56:23.056 * Replica 192.168.172.131:6381 asks for synchronization 16243:M 22 May 2021 00:56:23.056 * Full resync requested by replica 192.168.172.131:6381 16243:M 22 May 2021 00:56:23.056 * Replication backlog created, my new replication IDs are 'b643fa0d90a895b29c82b71446167e6b60d52283' and '0000000000000000000000000000000000000000' 16243:M 22 May 2021 00:56:23.056 * Starting BGSAVE for SYNC with target: disk 16243:M 22 May 2021 00:56:23.056 * Background saving started by pid 16254 16254:C 22 May 2021 00:56:23.058 * DB saved on disk 16254:C 22 May 2021 00:56:23.059 * RDB: 0 MB of memory used by copy-on-write 16243:M 22 May 2021 00:56:23.095 * Background saving terminated with success 16243:M 22 May 2021 00:56:23.097 * Synchronization with replica 192.168.172.131:6381 succeeded
192.168.172.131 6381 服务器的日志为:
1 2 3 4 5 6 7 8 9 10
16249:S 22 May 2021 00:56:23.054 * Master replied to PING, replication can continue... 16249:S 22 May 2021 00:56:23.055 * Partial resynchronization not possible (no cached master) 16249:S 22 May 2021 00:56:23.057 * Full resync from master: b643fa0d90a895b29c82b71446167e6b60d52283:0 16249:S 22 May 2021 00:56:23.096 * MASTER <-> REPLICA sync: receiving 680 bytes from master to disk 16249:S 22 May 2021 00:56:23.096 * MASTER <-> REPLICA sync: Flushing old data 16249:S 22 May 2021 00:56:23.097 * MASTER <-> REPLICA sync: Loading DB in memory 16249:S 22 May 2021 00:56:23.097 * Loading RDB produced by version 6.0.6 16249:S 22 May 2021 00:56:23.097 * RDB age 0 seconds 16249:S 22 May 2021 00:56:23.097 * RDB memory usage when created 1.83 Mb 16249:S 22 May 2021 00:56:23.097 * MASTER <-> REPLICA sync: Finished with success
16392:X 22 May 2021 01:13:36.020 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 16392:X 22 May 2021 01:13:36.020 # Sentinel ID is 8fd93d8d9547434177903ba11cb5ae0bf603f358 16392:X 22 May 2021 01:13:36.020 # +monitor master mymaster 192.168.172.131 6380 quorum 2 16392:X 22 May 2021 01:13:36.022 * +slave slave 192.168.172.131:6381 192.168.172.131 6381 @ mymaster 192.168.172.131 6380 16392:X 22 May 2021 01:13:36.024 * +slave slave 192.168.172.131:6382 192.168.172.131 6382 @ mymaster 192.168.172.131 6380