hello,
I'm using master/slave replication.
After slaveof operation, slave keys are less than master. This is always the case.
Here is the log of slave:
[16288] 16 Jun 15:40:47.811 * MASTER <-> SLAVE sync started
[16288] 16 Jun 15:40:47.812 * Non blocking connect for SYNC fired the event.
[16288] 16 Jun 15:40:47.812 * Master replied to PING, replication can continue...
[16288] 16 Jun 15:40:47.813 * Partial resynchronization not possible (no cached master)
[16288] 16 Jun 15:40:47.814 * Full resync from master: 3d532c36bf9264bc89300296208b953c792451eb:6462161514
[16288] 16 Jun 15:41:02.144 * MASTER <-> SLAVE sync: receiving 424645763 bytes from master
[16288] 16 Jun 15:41:10.962 * MASTER <-> SLAVE sync: Flushing old data
[16288] 16 Jun 15:41:10.963 * MASTER <-> SLAVE sync: Loading DB in memory
[16288] 16 Jun 15:41:35.930 * MASTER <-> SLAVE sync: Finished with success
[16288] 16 Jun 15:41:35.962 * Background append only file rewriting started by pid 16502
[16502] 16 Jun 15:42:26.851 * SYNC append only file rewrite performed
[16502] 16 Jun 15:42:26.881 * AOF rewrite: 486 MB of memory used by copy-on-write
[16288] 16 Jun 15:42:27.038 * Background AOF rewrite terminated with success
[16288] 16 Jun 15:42:27.038 * Parent diff successfully flushed to the rewritten AOF (20077 bytes)
[16288] 16 Jun 15:42:27.038 * Background AOF rewrite finished successfully
Here is the ` info replication`:
# Replication
role:master
connected_slaves:1
slave0:ip=10.178.89.159,port=6380,state=online,offset=
6474032863,lag=0
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_histlen:1048576
Here is the `info replication` of slave:
# Replication
role:slave
master_host:11.230.138.182
master_port:6380
master_link_status:up
master_last_io_seconds_ago:0
master_sync_in_progress:0
slave_priority:100
slave_read_only:1
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0