Hello everyone i am new here in redis. In my Master redis, i am seeing only db10 Keyspace ndb10:keys=468,expires=0,avg_ttl=0\r\n"
and in my Slave redis, i am seeing db0 and db10 Keyspace ndb0:keys=468,expires=0,avg_ttl=0\r\ndb10:keys=4,expires=0,avg_ttl=0\r\n"
Can someone confirm me, on my Master redis, is that possible that it has been set for default 10 ?
i need to fix the sync issue, because everytime my client add keys on master on db10, i am seeing increment in keys on redis slave - on db0 and not on 10
Please help me to get the solution.
Thanks in advance.
Comment From: itamarhaber
Hello @vaibhav-nclouds
Can someone confirm me, on my Master redis, is that possible that it has been set for default 10 ?
Redis' default DB is 0 and can't be changed. It is the client application that SELECTs the DB during runtime.
Replication honors the db number, so I would guess that your replica is being directly written to by some application code (to db 0).
Keep in mind that this issue tracker should be used for reporting bugs or proposing improvements to the Redis server. Questions should be directed to the community:
- /r/redis subreddit
- the mailing list
- the
redistag at StackOverflow - the irc channel #redis on freenode.
Comment From: beyondxx3
Why~ My Redis' default DB is 1 version 4.0.1