Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master-slave situation,the same key has different LFU via OBJECT FREQ command. #4864

Open
FNST-zhoush opened this issue Apr 23, 2018 · 1 comment

Comments

@FNST-zhoush
Copy link

This can be created easily by following steps:

  1. 'config set lfu-decay-time 0' in master and slave.(we can check LFU all the time)
  2. 'set str lfutest' and 'redis-benchmark -n 10000 get str' in master.
  3. str's LFU is 56 via 'object freq str' in master.
  4. str's LFU is 5 via 'object freq str' in slave.

i know the reason is that only write commands in master-slave replication !
but i think if failover happend, the hot keys may be evicted in new master !

@FNST-zhoush
Copy link
Author

By the way,Can I dynamically modify the key's LFU ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant