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

Run certain commands from the advanced cluster connection on multiple hosts #106

Closed
mp911de opened this issue Jul 22, 2015 · 1 comment
Closed
Labels
type: feature A new feature
Milestone

Comments

@mp911de
Copy link
Collaborator

mp911de commented Jul 22, 2015

RedisAdvancedClusterConnection still feels like redis-cli on certain commands. While key-bound commands are routed to the appropriate master, some key-less commands are executed only on the underlying node for the main cluster connection. Some commands can be executed either on masters, slaves, or both to improve the cluster feeling. Some commands imply to select, where to run, either slaves or masters to benefit from eventual consistency and performance. This will be handled in a future task.

Following commands should be executed on multiple hosts:

  • CLIENT SETNAME: all nodes
  • DBSIZE: master nodes, sum up the size from all master nodes
  • FLUSHALL: master nodes
  • FLUSHDB: master nodes
  • KEYS: master nodes
  • RANDOMKEY: run on a random master
  • SCAN: master nodes
  • SCRIPT FLUSH: all nodes
  • SCRIPT KILL: all nodes
  • SHUTDOWN: all nodes
@mp911de mp911de added the type: feature A new feature label Jul 22, 2015
@mp911de mp911de added this to the Lettuce 4.0 milestone Jul 22, 2015
@mp911de
Copy link
Collaborator Author

mp911de commented Aug 14, 2015

Omitting SCAN for now due the low benefit. Executing SCAN requires some effort in API design to also get rid the redis-cli feeling.

mp911de added a commit that referenced this issue Aug 14, 2015
… hosts #106

CLIENT SETNAME: all nodes
DBSIZE: master nodes, aggregate the size from all master nodes
FLUSHALL: master nodes
FLUSHDB: master nodes
KEYS: master nodes
RANDOMKEY: run on a random master
SCRIPT FLUSH: all nodes
SCRIPT KILL: all nodes
SHUTDOWN: all nodes
@mp911de mp911de closed this as completed Aug 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant