Skip to content

Better SCAN support for cluster mode enabled #2702

@carlvine500

Description

@carlvine500

This thread identified two improvements to scanning CME we would like to address:

  • Implement a new command for doing a stateful scan of multiple cluster nodes.

Suggested command:
CSCAN <cluster cursor> <node cursor> [MATCH pattern] [COUNT count] [TYPE type]

The command does an incremental scan of cluster, using moved requests to indicate when the client has finished parsing the requests on the given node. If the command is sent to the wrong node, it will automatically be redirected to the correct one. The scan will guarantee that all data at the start and end of the scan will still hit at least once.

The command will allow use cases that allow external third parties to slowly scan the entire cluster, handling cases where slots may have moved during the course of the migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    approval-neededWaiting for core team approval to be merged

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions