Skip to content

Conversation

@tezc
Copy link
Collaborator

@tezc tezc commented Oct 8, 2025

Overview

This PR is a joint effort with @ShooterIT . I’m just opening it on behalf of both of us.

This PR introduces Atomic Slot Migration (ASM) for Redis Cluster — a new mechanism for safely and efficiently migrating hash slots between nodes.

Redis Cluster distributes data across nodes using 16384 hash slots, each owned by a specific node. Sometimes slots need to be moved — for example, to rebalance after adding or removing nodes, or to mitigate a hot shard that’s overloaded. Before ASM, slot migration was non-atomic and client-dependent, relying on CLUSTER SETSLOT, GETKEYSINSLOT, MIGRATE commands, and client-side handling of ASK/ASKING replies. This process was complex, error-prone, slow and could leave clusters in inconsistent states after failures. Clients had to implement redirect logic, multi-key commands could fail mid-migration, and errors often resulted in orphaned keys or required manual cleanup. Several related discussions can be found in the issue list, some examples: #14300 , #4937 , #10370 , #4333 , #13122, #11312

Atomic Slot Migration (ASM) makes slot rebalancing safe, transparent, and reliable, addressing many of the limitations of the legacy migration method. Instead of moving keys one by one, ASM replicates the entire slot’s data plus live updates to the target node, then performs a single atomic handoff. Clients keep working without handling ASK/ASKING replies, multi-key operations remain consistent, failures don’t leave partial states, and replicas stay in sync. The migration process also completes significantly faster. Operators gain new commands (CLUSTER MIGRATION IMPORT, STATUS, CANCEL) for monitoring and control, while modules can hook into migration events for deeper integration.

The problems of legacy method in detail

Operators and developers ran into multiple issues with the legacy method, some of these issues in detail:

  1. Redirects and Client Complexity: While a slot was being migrated, some keys were already moved while others were not. Clients had to handle -ASK and -ASKING responses, reissuing requests to the target node. Not all client libraries implemented this correctly, leading to failed commands or subtle bugs. Even when implemented, it increased latency and broke naive pipelines.
  2. Multi-Key Operations Became Unreliable: Commands like MGET key1 key2 could fail with TRYAGAIN if part of the slot was already migrated. This made application logic unpredictable during resharding.
  3. Risk of failure: Keys were moved one-by-one (with MIGRATE command). If the source crashed, or the destination ran out of memory, the system could be left in an inconsistent state: some keys moved, others lost, slots partially migrated. Manual intervention was often needed, sometimes resulting in data loss.
  4. Replica and Failover Issues: Replicas weren’t aware of migrations in progress. If a failover occurred mid-migration, manual intervention was required to clean up or resume the process safely.
  5. Operational Overhead: Operators had to coordinate multiple commands (CLUSTER SETSLOT, MIGRATE, GETKEYSINSLOT, etc.) with little visibility into progress or errors, making rebalancing slow and error-prone.
  6. Poor performance: Key-by-key migration was inherently slow and inefficient for large slot ranges.
  7. Large keys: Large keys could fail to migrate or cause latency spikes on the destination node.

How Atomic Slot Migration Fixes This

Atomic Slot Migration (ASM) eliminates all of these issues by:

  1. Clients: Clients no longer need to handle ASK/ASKING; the migration is fully transparent.
  2. Atomic ownership transfer: The entire slot’s data (snapshot + live updates) is replicated and handed off in a single atomic step.
  3. Performance: ASM completes migrations significantly faster by streaming slot data in parallel (snapshot + incremental updates) and eliminating key-by-key operations.
  4. Consistency guarantees: Multi-key operations and pipelines continue to work reliably throughout migration.
  5. Resilience: Failures no longer leave orphaned keys or partial states; migration tasks can be retried or safely cancelled.
  6. Replica awareness: Replicas remain consistent during migration, and failovers will no longer leave partially imported keys.
  7. Operator visibility: New CLUSTER MIGRATION subcommands (IMPORT, STATUS, CANCEL) provide clear observability and management for operators.

ASM Diagram and Migration Steps

      ┌─────────────┐               ┌────────────┐     ┌───────────┐      ┌───────────┐ ┌───────┐        
      │             │               │Destination │     │Destination│      │ Source    │ │Source │        
      │  Operator   │               │   master   │     │ replica   │      │ master    │ │ Fork  │        
      │             │               │            │     │           │      │           │ │       │        
      └──────┬──────┘               └─────┬──────┘     └─────┬─────┘      └─────┬─────┘ └───┬───┘        
             │                            │                  │                  │           │            
             │                            │                  │                  │           │            
             │CLUSTER MIGRATION IMPORT    │                  │                  │           │            
             │   <start-slot> <end-slot>..│                  │                  │           │            
             ├───────────────────────────►│                  │                  │           │            
             │                            │                  │                  │           │            
             │   Reply with <task-id>     │                  │                  │           │            
             │◄───────────────────────────┤                  │                  │           │            
             │                            │                  │                  │           │            
             │                            │                  │                  │           │            
             │                            │ CLUSTER SYNCSLOTS│SYNC              │           │            
             │ CLUSTER MIGRATION STATUS   │   <task-id> <start-slot> <end-slot>.│           │            
Monitor      │   ID <task-id>             ├────────────────────────────────────►│           │            
task      ┌─►├───────────────────────────►│                  │                  │           │            
state     │  │                            │                  │                  │           │            
till      │  │      Reply status          │  Negotiation with multiple channels │           │            
completed └─ │◄───────────────────────────┤      (i.e rdbchannel repl)          │           │            
             │                            │◄───────────────────────────────────►│           │            
             │                            │                  │                  │  Fork     │            
             │                            │                  │                  ├──────────►│ ─┐         
                                          │                  │                  │           │  │         
                                          │   Slot snapshot as RESTORE commands │           │  │         
                                          │◄────────────────────────────────────────────────┤  │         
                                          │   Propagate      │                  │           │  │         
      ┌─────────────┐                     ├─────────────────►│                  │           │  │         
      │             │                     │                  │                  │           │  │ Snapshot
      │   Client    │                     │                  │                  │           │  │ delivery
      │             │                     │   Replication stream for slot range │           │  │ duration
      └──────┬──────┘                     │◄────────────────────────────────────┤           │  │         
             │                            │   Propagate      │                  │           │  │         
             │                            ├─────────────────►│                  │           │  │         
             │                            │                  │                  │           │  │         
             │    SET key value1          │                  │                  │           │  │         
             ├─────────────────────────────────────────────────────────────────►│           │  │         
             │         +OK                │                  │                  │           │ ─┘         
             │◄─────────────────────────────────────────────────────────────────┤           │            
             │                            │                  │                  │           │            
             │                            │    Drain repl stream                │ ──┐       │            
             │                            │◄────────────────────────────────────┤   │       │            
             │    SET key value2          │                  │                  │   │       │            
             ├─────────────────────────────────────────────────────────────────►│   │Write  │            
             │                            │                  │                  │   │pause  │            
             │                            │                  │                  │   │       │            
             │                            │  Publish new config via cluster bus │   │       │            
             │       +MOVED               ├────────────────────────────────────►│ ──┘       │            
             │◄─────────────────────────────────────────────────────────────────┤ ──┐       │            
             │                            │                  │                  │   │       │            
             │                            │                  │                  │   │Trim   │            
             │                            │                  │                  │ ──┘       │            
             │     SET key value2         │                  │                  │           │            
             ├───────────────────────────►│                  │                  │           │            
             │         +OK                │                  │                  │           │            
             │◄───────────────────────────┤                  │                  │           │            
             │                            │                  │                  │           │            
             │                            │                  │                  │           │            

New commands introduced

There are two new commands:

  1. A command to start, monitor and cancel the migration operation: CLUSTER MIGRATION <arg>
  2. An internal command to manage slot transfer between source and destination: CLUSTER SYNCSLOTS <arg> For more details, please refer to the New Commands section. Internal command messaging is mostly omitted in the diagram for simplicity.

Steps

  1. Slot migration begins when the operator sends CLUSTER MIGRATION IMPORT <start-slot> <end-slot> ...
    to the destination master. The process is initiated from the destination node, similar to REPLICAOF. This approach allows us to reuse the same logic and share code with the new replication mechanism (see Rdb channel replication #13732). The command can include multiple slot ranges. The destination node creates one migration task per source node, regardless of how many slot ranges are specified. Upon successfully creating the task, the destination node replies IMPORT command with the assigned task ID. The operator can then monitor progress using CLUSTER MIGRATION STATUS ID <task-id> . When the task’s state field changes to completed, the migration has finished successfully. Please see New Commands section for the output sample.

  2. After creating the migration task, the destination node will request replication of slots by using the internal command CLUSTER SYNCSLOTS.

  3. Once the source node accepts the request, the destination node establishes another separate connection(similar to rdbchannel replication) so snapshot data and incremental changes can be transmitted in parallel.

  4. Source node forks, starts delivering snapshot content (as per-key RESTORE commands) from one connection and incremental changes from the other connection. The destination master starts applying commands from the snapshot connection and accumulates incremental changes. Applied commands are also propagated to the destination replicas via replication backlog.

    Note: Only commands of related slots are delivered to the destination node. This is done by writing them to the migration client’s output buffer, which serves as the replication stream for the migration operation.

  5. Once the source node finishes delivering the snapshot and determines that the destination node has caught up (remaining repl stream to consume went under a configured limit), it pauses write traffic for the entire server. After pausing the writes, the source node forwards any remaining write commands to the destination node.

  6. Once the destination consumes all the writes, it bumps up cluster config epoch and changes the configuration. New config is published via cluster bus.

  7. When the source node receives the new configuration, it can redirect clients and it begins trimming the migrated slots, while also resuming write traffic on the server.

Internal slots synchronization state machine

asm state machine

  1. The destination node performs authentication using the cluster secret introduced in Added a shared secret over Redis cluster. #13763 , and transmits its node ID information.
  2. The destination node sends CLUSTER SYNCSLOTS SYNC <task-id> <start-slot> <end-slot> to initiate a slot synchronization request and establish the main channel. The source node responds with +RDBCHANNELSYNCSLOTS, indicating that the destination node should establish an RDB channel.
  3. The destination node then sends CLUSTER SYNCSLOTS RDBCHANNEL <task-id> to establish the RDB channel, using the same task-id as in the previous step to associate the two connections as part of the same ASM task.
    The source node replies with +SLOTSSNAPSHOT, and fork a child process to transfer slot snapshot.
  4. The destination node applies the slot snapshot data received over the RDB channel, while proxying the command stream to replicas. At the same time, the main channel continues to read and buffer incremental commands in memory.
  5. Once the source node finishes sending the slot snapshot, it notifies the destination node using the CLUSTER SYNCSLOTS SNAPSHOT-EOF command. The destination node then starts streaming the buffered commands while continuing to read and buffer incremental commands sent from the source.
  6. The destination node periodically sends CLUSTER SYNCSLOTS ACK <offset> to inform the source of the applied data offset. When the offset gap meets the threshold, the source node pauses write operations. After all buffered data has been drained, it sends CLUSTER SYNCSLOTS STREAM-EOF to the destination node to hand off slots.
  7. Finally, the destination node takes over slot ownership, updates the slot configuration and bumps the epoch, then broadcasts the updates via cluster bus. Once the source node detects the updated slot configuration, the slot migration process is complete.

Error handling

  • If the connection between the source and destination is lost (due to disconnection, output buffer overflow, OOM, or timeout), the destination node automatically restarts the migration from the beginning. The destination node will retry the operation until it is explicitly cancelled using the CLUSTER MIGRATION CANCEL command.
  • If a replica connection drops during migration, it can later resume with PSYNC, since the imported slot data is also written to the replication backlog.
  • During the write pause phase, the source node sets a timeout. If the destination node fails to drain remaining replication data and update the config during that time, the source node assumes the destination has failed and automatically resumes normal writes for the migrating slots.
  • On any error, the destination node triggers a trim operation to discard any partially imported slot data.
  • If node crashes during importing, unowned keys are deleted on start up.

Slot Snapshot Format Considerations

When the source node forks to deliver slot content, in theory, there are several possible formats for transmitting the snapshot data:

Mini RDB:A compact RDB file containing only the keys from the migrating slots. This format is efficient for transmission, but it cannot be easily forwarded to destination-side replicas.
AOF format: The source node can generate commands in AOF form (e.g., SET x y, HSET h f v) and stream them. Individual commands are easily appended to the replication stream and propagated to replicas. Large keys can also be split into multiple commands (incrementally reconstructing the value), similar to the AOF rewrite process.
RESTORE commands: Each key is serialized and sent as a RESTORE command. These can be appended directly to the destination’s replication stream, though very large keys may make serialization and transmission less efficient.

We chose the RESTORE command as default approach for the following reasons:

  • It can be easily propagated to replicas.
  • It is more efficient than AOF for most cases, and some module keys do not support the AOF format.
  • For large non-module keys that are not string, ASM automatically switches to the AOF-based key encoding as an optimization when the key’s cardinality exceeds 512. This approach allows the key to be transferred in chunks rather than as a single large payload, reducing memory pressure and improving migration efficiency. In future versions, the RESTORE command may be enhanced to handle large keys more efficiently.

Some details:

  • For RESTORE commands, normally by default Redis compresses keys. We disable compression while delivering RESTORE commands as compression comes with a performance hit. Without compression, replication is several times faster.
  • For string keys, we still prefer AOF format, e.g. SET commands as it is currently more efficient than RESTORE, especially for big keys.

Trimming the keys

When a migration completes successfully, the source node deletes the migrated keys from its local database.
Since the migrated slots may contain a large number of keys, this trimming process must be efficient and non-blocking.

In cluster mode, Redis maintains per-slot data structures for keys, expires, and subexpires. This organization makes it possible to efficiently detach all data associated with a given slot in a single step. During trimming, these slot-specific data structures are handed off to a background I/O (BIO) thread for asynchronous cleanup—similar to how FLUSHALL or FLUSHDB operate. This mechanism is referred to as background trimming, and it is the preferred and default method for ASM, ensuring that the main thread remains unblocked.

However, unlike Redis itself, some modules may not maintain per-slot data structures and therefore cannot drop related slots data in a single operation. To support these cases, Redis introduces active trimming, where key deletion occurs in the main thread instead. This is not a blocking operation, trimming runs concurrently in the main thread, periodically removing keys during the cron loop. Each deletion triggers a keyspace notification so that modules can react to individual key removals. While active trim is less efficient, it ensures backward compatibility for modules during the transition period.

Before starting the trim, Redis checks whether any module is subscribed to newly added REDISMODULE_NOTIFY_KEY_TRIMMED keyspace event. If such subscribers exist, active trimming is used; otherwise, background trimming is triggered. Going forward, modules are expected to adopt background trimming to take advantage of its performance and scalability benefits, and active trimming will be phased out once modules migrate to the new model.

Redis also prefers active trimming if there is any client that is using client tracking feature (see client-side caching). In the current client tracking protocol, when a database is flushed (e.g., via the FLUSHDB command), a null value is sent to tracking clients to indicate that they should invalidate all locally cached keys. However, there is currently no mechanism to signal that only specific slots have been flushed. Iterating over all keys in the slots to be trimmed would be a blocking operation. To avoid this, if there is any client that is using client tracking feature, Redis automatically switches to active trimming mode. In the future, the client tracking protocol can be extended to support slot-based invalidation, allowing background trimming to be used in these cases as well.

Finally, trimming may also be triggered after a migration failure. In such cases, the operation ensures that any partially imported or inconsistent slot data is cleaned up, maintaining cluster consistency and preventing stale keys from remaining in the source or destination nodes.

Note about active trim: Subsequent migrations can complete while a prior trim is still running. In that case, the new migration’s trim job is queued and will start automatically after the current trim finishes. This does not affect slot ownership or client traffic—it only serializes the background cleanup.

Replica handling

  • During importing, new keys are propagated to destination side replica. Replica will check slot ownership before replying commands like SCAN, KEYS, DBSIZE not to include these unowned keys in the reply.

    Also, when an import operation begins, the master now propagates an internal command through the replication stream, allowing replicas to recognize that an ASM operation is in progress. This is done by the internal CLUSTER SYNCSLOTS CONF ASM-TASK command in the replication stream. This enables replicas to trigger the relevant module events so that modules can adapt their behavior — for example, filtering out unowned keys from read-only requests during ASM operations. To be able to support full sync with RDB delivery scenarios, a new AUX field is also added to the RDB: cluster-asm-task. It's value is a string in the format of task_id:source_node:dest_node:operation:state:slot_ranges.

  • After a successful migration or on a failed import, master will trim the keys. In that case, master will propagate a new command to the replica: TRIMSLOTS RANGES <numranges> <start-slot> <end-slot> ... . So, the replica will start trimming once this command is received.

Propagating data outside the keyspace

When the destination node is newly added to the cluster, certain data outside the keyspace may need to be propagated first.
A common example is functions. Previously, redis-cli handled this by transferring functions when a new node was added.
With ASM, Redis now automatically dumps and sends functions to the destination node using FUNCTION RESTORE ..REPLACE command — done purely for convenience to simplify setup.

Additionally, modules may also need to propagate their own data outside the keyspace.
To support this, a new API has been introduced: RM_ClusterPropagateForSlotMigration().
See the Module Support section for implementation details.

Limitations

  1. Single migration at a time: Only one ASM migration operation is allowed at a time. This limitation simplifies the current design but can be extended in the future.

  2. Large key handling: For large keys, ASM switches to AOF encoding to deliver key data in chunks. This mechanism currently applies only to non-module keys. In the future, the RESTORE command may be extended to support chunked delivery, providing a unified solution for all key types. See Slot Snapshot Format Considerations for details.

  3. There are several cases that may cause an Atomic Slot Migration (ASM) to be aborted (can be retried afterwards):

    • FLUSHALL / FLUSHDB: These commands introduce complexity during ASM. For example, if executed on the migrating node, they must be propagated only for the migrating slots. However, when combined with active trimming, their execution may need to be deferred until it is safe to proceed, adding further complexity to the process.
    • FAILOVER: The replica cannot resume the migration process. Migration should start from the beginning.
    • Module propagates cross-slot command during ASM via RM_Replicate(): If this occurs on the migrating node, Redis cannot split the command to propagate only the relevant slots to the ASM destination. To keep the logic simple and consistent, ASM is cancelled in this case. Modules should avoid propagating cross-slot commands during migration.
    • CLIENT PAUSE: The import task cannot progress during a write pause, as doing so would violate the guarantee that no writes occur during migration. To keep things simple, the ASM task is aborted when CLIENT PAUSE is active.
    • Manual Slot Configuration Changes: If slot configuration is modified manually during ASM (for example, when legacy migration methods are mixed with ASM), the process is aborted. Note: This situation is highly unexpected — users should not combine ASM with legacy migration methods.
  4. When active trimming is enabled, a node must not re-import the same slots while trimming for those slots is still in progress. Otherwise, it can’t distinguish newly imported keys from pre-existing ones, and the trim cron might delete the incoming keys by mistake. In this state, the node rejects IMPORT operation for those slots until trimming completes. If the master has finished trimming but a replica is still trimming, master may still start the import operation for those slots. So, the replica checks whether the master is sending commands for those slots; if so, it blocks the master’s client connection until trimming finishes. This is a corner case, but we believe the behavior is reasonable for now. In the worst case, the master may drop the replica (e.g., buffer overrun), triggering a new full sync.

API Changes

New Commands

Public commands

  1. Syntax: CLUSTER MIGRATION IMPORT <start-slot> <end-slot> [<start-slot> <end-slot>]...
    Args: Slot ranges
    Reply:

    • String task ID
    • -ERR on failure (e.g. invalid slot range)

    Description: Executes on the destination master. Accepts multiple slot ranges and triggers atomic migration for the specified ranges. Returns a task ID that can be used to monitor the status of the task. In CLUSTER MIGRATION STATUS output, “state” field will be completed on a successful operation.

  2. Syntax: CLUSTER MIGRATION CANCEL [ID <id> | ALL]
    Args: Task ID or ALL
    Reply: Number of cancelled tasks

    Description: Cancels an ongoing migration task by its ID or cancels all tasks if ALL is specified. Note: Cancelling a task on the source node does not stop the migration on the destination node, which will continue retrying until it is also cancelled there.

  3. Syntax: CLUSTER MIGRATION STATUS [ID <id> | ALL]
    Args: Task ID or ALL

    • ID: If provided, returns the status of the specified migration task.
    • ALL: Lists the status of all migration tasks.

    Reply:

    • A list of migration task details (both ongoing and completed ones).
    • Empty list if the given task ID does not exist.

    Description: Displays the status of all current and completed atomic slot migration tasks. If a specific task ID is provided, it returns detailed information for that task only.

  • id: Unique task identifier; identical on both source and destination for the same task.
  • slots: Slot ranges included in the task.
  • source: Source node ID.
  • dest: Destination node ID.
  • operation: Operation type — "import" or "migrate".
  • state: Current task state; becomes "completed" when finished.
  • last_error: Last error message, if any.
  • retries: Number of migration attempts.
  • create_time: Task creation time (Unix epoch, milliseconds).
  • start_time: Start time of the latest attempt (Unix epoch, milliseconds).
  • end_time: End time of the latest attempt (Unix epoch, milliseconds).
  • write_pause_ms: Duration of the write pause on the source node (milliseconds).
    Sample output:
127.0.0.1:5001> cluster migration status all
1)  1) "id"
    2) "24cf41718b20f7f05901743dffc40bc9b15db339"
    3) "slots"
    4) "0-1000"
    5) "source"
    6) "1098d90d9ba2d1f12965442daf501ef0b6667bec"
    7) "dest"
    8) "b3b5b426e7ea6166d1548b2a26e1d5adeb1213ac"
    9) "operation"
   10) "migrate"
   11) "state"
   12) "completed"
   13) "last_error"
   14) ""
   15) "retries"
   16) "0"
   17) "create_time"
   18) "1759694528449"
   19) "start_time"
   20) "1759694528449"
   21) "end_time"
   22) "1759694528464"
   23) "write_pause_ms"
   24) "10"

Internal commands

  1. Syntax: CLUSTER SYNCSLOTS <arg> ...
    Args: Internal messaging operations
    Reply: +OK or -ERR on failure (e.g. invalid slot range)

    Description: Used for internal communication between source and destination nodes. e.g. handshaking, establishing multiple channels, triggering handoff.

  2. Syntax: TRIMSLOTS RANGES <numranges> <start-slot> <end-slot> ...
    Args: Slot ranges to trim
    Reply: +OK

    Description: Master propagates it to replica so that replica can trim unowned keys after a successful migration or on a failed import.

New configs

  • cluster-slot-migration-max-archived-tasks: To list in CLUSTER MIGRATION STATUS ALL output, Redis keeps last n migration tasks in memory. This config controls maximum number of archived ASM tasks. Default value: 32, used as a hidden config

  • cluster-slot-migration-handoff-max-lag-bytes: After the slot snapshot is completed, if the remaining replication stream size falls below this threshold, the source node pauses writes to hand off slot ownership. A higher value may trigger the handoff earlier but can lead to a longer write pause, since more data remains to be replicated. A lower value can result in a shorter write pause, but it may be harder to reach the threshold if there is a steady flow of incoming writes. Default value: 1MB

  • cluster-slot-migration-write-pause-timeout: The maximum duration (in milliseconds) that the source node pauses writes during ASM handoff. After pausing writes, if the destination node fails to take over the slots within this timeout (for example, due to a cluster configuration update failure), the source node assumes the migration has failed and resumes writes to prevent indefinite blocking. Default value: 10 seconds

  • cluster-slot-migration-sync-buffer-drain-timeout: Timeout in milliseconds for sync buffer to be drained during ASM.
    After the destination applies the accumulated buffer, the source continues sending commands for migrating slots. The destination keeps applying them, but if the gap remains above the acceptable limit (see slot-migration-handoff-max-lag-bytes), which may cause endless synchronization. A timeout check is required to handle this case.
    The timeout is calculated as the maximum of two values:

    • A configurable timeout (slot-migration-sync-buffer-drain-timeout) to avoid false positives.
    • A dynamic timeout based on the time that the destination took to apply the slot snapshot and the accumulated buffer during slot snapshot delivery. The destination should be able to drain the remaining sync buffer in less time than this. We multiply it by 2 to be more conservative.

    Default value: 60000 millliseconds, used as a hidden config

New flag in CLIENT LIST

  • the client responsible for importing slots is marked with the o flag.
  • the client responsible for migrating slots is marked with the g flag.

New INFO fields

  • mem_cluster_slot_migration_output_buffer: Memory usage of the migration client’s output buffer. Redis writes incoming changes to this buffer during the migration process.
  • mem_cluster_slot_migration_input_buffer: Memory usage of the accumulated replication stream buffer on the importing node.
  • mem_cluster_slot_migration_input_buffer_peak: Peak accumulated repl buffer size on the importing side

New CLUSTER INFO fields

  • cluster_slot_migration_active_tasks: Number of in-progress ASM tasks. Currently, it will be 1 or 0.
  • cluster_slot_migration_active_trim_running: Number of active trim jobs in progress and scheduled
  • cluster_slot_migration_active_trim_current_job_keys: Number of keys scheduled for deletion in the current trim job.
  • cluster_slot_migration_active_trim_current_job_trimmed: Number of keys already deleted in the current trim job.
  • cluster_slot_migration_stats_active_trim_started: Total number of trim jobs that have started since the process began.
  • cluster_slot_migration_stats_active_trim_completed: Total number of trim jobs completed since the process began.
  • cluster_slot_migration_stats_active_trim_cancelled: Total number of trim jobs cancelled since the process began.

Changes in RDB format

A new aux field is added to RDB: cluster-asm-task. When an import operation begins, the master now propagates an internal command through the replication stream, allowing replicas to recognize that an ASM operation is in progress. This enables replicas to trigger the relevant module events so that modules can adapt their behavior — for example, filtering out unowned keys from read-only requests during ASM operations. To be able to support RDB delivery scenarios, a new field is added to the RDB. See replica handling

Bug fix

  • Fix memory leak when processing forgetting node type message
  • Fix data race of writing reply to replica client directly when multi-threading is enabled
    We don't plan to backport these fixes into old versions, since these are very rare cases.

Keys visibility

When performing atomic slot migration, during key importing on the destination node or key trimming on the source/destination, these keys will be filtered out in the following commands:

  • KEYS
  • SCAN
  • RANDOMKEY
  • CLUSTER GETKEYSINSLOT
  • DBSIZE
  • CLUSTER COUNTKEYSINSLOT

The only command that will reflect the increasing number of keys is:

  • INFO KEYSPACE

Module Support

NOTE: Please read trimming section and see how does ASM decide about trimming method when there are modules in use.

New notification:

#define REDISMODULE_NOTIFY_KEY_TRIMMED (1<<17) 

When a key is deleted by the active trim operation, this notification will be sent to subscribed modules.
Also, ASM will automatically choose the trimming method depending on whether there are any subscribers to this new event. Please see the further details here: trimming

New struct in the API:

typedef struct RedisModuleSlotRange {
    uint16_t start;
    uint16_t end;
} RedisModuleSlotRange;

typedef struct RedisModuleSlotRangeArray {
    int32_t num_ranges;
    RedisModuleSlotRange ranges[];
} RedisModuleSlotRangeArray;

New Events

1. REDISMODULE_EVENT_CLUSTER_SLOT_MIGRATION (RedisModuleEvent_ClusterSlotMigration)

These events notify modules about different stages of Active Slot Migration (ASM) operations such as when import or migration starts, fails, or completes. Modules can use these notifications to track cluster slot movements or perform custom logic during ASM transitions.

#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_IMPORT_STARTED           0
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_IMPORT_FAILED            1
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_IMPORT_COMPLETED         2
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_MIGRATE_STARTED          3
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_MIGRATE_FAILED           4
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_MIGRATE_COMPLETED        5
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_MIGRATE_MODULE_PROPAGATE 6

Parameter to these events:

typedef struct RedisModuleClusterSlotMigrationInfo {
    uint64_t version;       /* Not used since this structure is never passed
                               from the module to the core right now. Here
                               for future compatibility. */
    char source_node_id[REDISMODULE_NODE_ID_LEN + 1];
    char destination_node_id[REDISMODULE_NODE_ID_LEN + 1];
    const char *task_id;
    RedisModuleSlotRangeArray* slots;
} RedisModuleClusterSlotMigrationInfoV1;

#define RedisModuleClusterSlotMigrationInfo RedisModuleClusterSlotMigrationInfoV1

2. REDISMODULE_EVENT_CLUSTER_SLOT_MIGRATION_TRIM (RedisModuleEvent_ClusterSlotMigrationTrim)

These events inform modules about the lifecycle of ASM key trimming operations. Modules can use them to detect when trimming starts, completes, or is performed asynchronously in the background.

#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_TRIM_STARTED     0
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_TRIM_COMPLETED   1
#define REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_TRIM_BACKGROUND  2

Parameter to these events:

typedef struct RedisModuleClusterSlotMigrationTrimInfo {
    uint64_t version;       /* Not used since this structure is never passed
                               from the module to the core right now. Here
                               for future compatibility. */
    RedisModuleSlotRangeArray* slots;
} RedisModuleClusterSlotMigrationTrimInfoV1;

#define RedisModuleClusterSlotMigrationTrimInfo RedisModuleClusterSlotMigrationTrimInfoV1

New functions

/* Returns 1 if keys in the specified slot can be accessed by this node, 0 otherwise.
 *
 * This function returns 1 in the following cases:
 * - The slot is owned by this node or by its master if this node is a replica
 * - The slot is being imported under the old slot migration approach (CLUSTER SETSLOT <slot> IMPORTING ..)
 * - Not in cluster mode (all slots are accessible)
 *
 * Returns 0 for:
 * - Invalid slot numbers (< 0 or >= 16384)
 * - Slots owned by other nodes
 */
int RM_ClusterCanAccessKeysInSlot(int slot);

/* Propagate commands along with slot migration.
 *
 * This function allows modules to add commands that will be sent to the
 * destination node before the actual slot migration begins. It should only be
 * called during the REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_MIGRATE_MODULE_PROPAGATE event.
 *
 * This function can be called multiple times within the same event to
 * replicate multiple commands. All commands will be sent before the
 * actual slot data migration begins.
 *
 * Note: This function is only available in the fork child process just before
 *       slot snapshot delivery begins.
 *
 * On success REDISMODULE_OK is returned, otherwise
 * REDISMODULE_ERR is returned and errno is set to the following values:
 *
 * * EINVAL: function arguments or format specifiers are invalid.
 * * EBADF: not called in the correct context, e.g. not called in the REDISMODULE_SUBEVENT_CLUSTER_SLOT_MIGRATION_MIGRATE_MODULE_PROPAGATE event.
 * * ENOENT: command does not exist.
 * * ENOTSUP: command is cross-slot.
 * * ERANGE: command contains keys that are not within the migrating slot range.
 */
int RM_ClusterPropagateForSlotMigration(RedisModuleCtx *ctx,
                                        const char *cmdname,
                                        const char *fmt, ...);

/* Returns the locally owned slot ranges for the node.
 *
 * An optional `ctx` can be provided to enable auto-memory management.
 * If cluster mode is disabled, the array will include all slots (0–16383).
 * If the node is a replica, the slot ranges of its master are returned.
 *
 * The returned array must be freed with RM_ClusterFreeSlotRanges().
 */                                
RedisModuleSlotRangeArray *RM_ClusterGetLocalSlotRanges(RedisModuleCtx *ctx);

/* Frees a slot range array returned by RM_ClusterGetLocalSlotRanges().
 * Pass the `ctx` pointer only if the array was created with a context. */
void RM_ClusterFreeSlotRanges(RedisModuleCtx *ctx, RedisModuleSlotRangeArray *slots);

ASM API for alternative cluster implementations

Following #12742, Redis cluster code was restructured to support alternative cluster implementations. Redis uses cluster_legacy.c implementation by default. This PR adds a generic ASM API so alternative implementations can initiate and coordinate Atomic Slot Migration (ASM) while Redis executes the data movement and emits state changes.

Documentation rests in cluster.h:

There are two new functions:

/* Called by cluster implementation to request an ASM operation. (cluster impl --> redis) */
int clusterAsmProcess(const char *task_id, int event, void *arg, char **err);

/* Called when an ASM event occurs to notify the cluster implementation. (redis --> cluster impl) */
int clusterAsmOnEvent(const char *task_id, int event, void *arg);
/* API for alternative cluster implementations to start and coordinate
 * Atomic Slot Migration (ASM).
 *
 * These two functions drive ASM for alternative cluster implementations.
 * - clusterAsmProcess(...) impl -> redis: initiates/advances/cancels ASM operations
 * - clusterAsmOnEvent(...) redis -> impl: notifies state changes
 *
 * Generic steps for an alternative implementation:
 * - On destination side, implementation calls clusterAsmProcess(ASM_EVENT_IMPORT_START)
 *   to start an import operation.
 * - Redis calls clusterAsmOnEvent() when an ASM event occurs.
 * - On the source side, Redis will call clusterAsmOnEvent(ASM_EVENT_HANDOFF_PREP)
 *   when slots are ready to be handed off and the write pause is needed.
 * - Implementation stops the traffic to the slots and calls clusterAsmProcess(ASM_EVENT_HANDOFF)
 * - On the destination side, Redis calls clusterAsmOnEvent(ASM_EVENT_TAKEOVER)
 *   when destination node is ready to take over the slot, waiting for ownership change.
 * - Cluster implementation updates the config and calls clusterAsmProcess(ASM_EVENT_DONE)
 *   to notify Redis that the slots ownership has changed.
 *
 * Sequence diagram for import:
 *   - Note: shows only the events that cluster implementation needs to react.
 *
 * ┌───────────────┐              ┌───────────────┐         ┌───────────────┐             ┌───────────────┐
 * │ Destination   │              │ Destination   │         │    Source     │             │ Source        │
 * │ Cluster impl  │              │ Master        │         │    Master     │             │ Cluster impl  │
 * └───────┬───────┘              └───────┬───────┘         └───────┬───────┘             └───────┬───────┘
 *         │                              │                         │                             │
 *         │     ASM_EVENT_IMPORT_START   │                         │                             │
 *         ├─────────────────────────────►│                         │                             │
 *         │                              │ CLUSTER SYNCSLOTS <arg> │                             │
 *         │                              ├────────────────────────►│                             │
 *         │                              │                         │                             │
 *         │                              │  SNAPSHOT(restore cmds) │                             │
 *         │                              │◄────────────────────────┤                             │
 *         │                              │  Repl stream            │                             │
 *         │                              │◄────────────────────────┤                             │
 *         │                              │                         │   ASM_EVENT_HANDOFF_PREP    │
 *         │                              │                         ├────────────────────────────►│
 *         │                              │                         │     ASM_EVENT_HANDOFF       │
 *         │                              │                         │◄────────────────────────────┤
 *         │                              │ Drain repl stream       │                             │
 *         │                              │◄────────────────────────┤                             │
 *         │     ASM_EVENT_TAKEOVER       │                         │                             │
 *         │◄─────────────────────────────┤                         │                             │
 *         │                              │                         │                             │
 *         │       ASM_EVENT_DONE         │                         │                             │
 *         ├─────────────────────────────►│                         │       ASM_EVENT_DONE        │
 *         │                              │                         │◄────────────────────────────┤
 *         │                              │                         │                             │
 */

#define ASM_EVENT_IMPORT_START      1  /* Start a new import operation (destination side) */
#define ASM_EVENT_CANCEL            2  /* Cancel an ongoing import/migrate operation (source and destination side) */
#define ASM_EVENT_HANDOFF_PREP      3  /* Slot is ready to be handed off to the destination shard (source side) */
#define ASM_EVENT_HANDOFF           4  /* Notify that the slot can be handed off (source side) */
#define ASM_EVENT_TAKEOVER          5  /* Ready to take over the slot, waiting for config change (destination side) */
#define ASM_EVENT_DONE              6  /* Notify that import/migrate is completed, config is updated (source and destination side) */

#define ASM_EVENT_IMPORT_PREP       7  /* Import is about to start, the implementation may reject by returning C_ERR */
#define ASM_EVENT_IMPORT_STARTED    8  /* Import started */
#define ASM_EVENT_IMPORT_FAILED     9  /* Import failed */
#define ASM_EVENT_IMPORT_COMPLETED  10 /* Import completed (config updated) */
#define ASM_EVENT_MIGRATE_PREP      11 /* Migrate is about to start, the implementation may reject by returning C_ERR */
#define ASM_EVENT_MIGRATE_STARTED   12 /* Migrate started */
#define ASM_EVENT_MIGRATE_FAILED    13 /* Migrate failed */
#define ASM_EVENT_MIGRATE_COMPLETED 14 /* Migrate completed (config updated) */

Co-authored-by: Yuan Wang yuan.wang@redis.com

tezc and others added 30 commits May 29, 2025 15:48
* Add cluster plugin
* Add cluster_asm.c/.h
Dummy implementation of CLUSTER MIGRATION
* the destination sends node id info to the source
* fix double replication stream
refactor to use slot range array
cluster asm api
Add basic filtered replication and write pause

Changes:

Initial implementation for filtered repl stream delivery to destination node
Initial write pause
Fixes for crashes & code refactor
TODO:

Write pause time limit
Tests
Add partial flush support to SFLUSH command
- DEBUG ASM-FAILPOINT to set fail point
- Error handler for both source and destination side & tcl tests
- Error info for task
- Destination node sends ACK in Cron
- Source node checks applied offset gap and pauses writing
- Source node sends stream-eof after slot commands stream drained in beforeSleep
refactor and fix language issues

Co-authored-by: Yuan Wang <yuan.wang@redis.com>
rename plugin API
Use task ids for ASM tasks

Co-authored-by: Yuan Wang <yuan.wang@redis.com>
* dest as replica

* add test cases

* Fix test cases

* rdb channel uses task id to authenticate

* revert syncslots-reply

* task id check

* use task id to find status
don't expire keys for importing clients
skip keys that belong migration slots when active expiration
hfe expire
randomkey command
keys command
scan command
eviction
Use basic types in cluster plugin api
- slot dict size hint
- proxy importing data stream
- flush-like command will cancel slot migration task
- switching to replica from master will cancel slot migration task
- resolve the source node when starting importing tasks
- hide rdb/main channel client in info replication
- in client list, migrating client is marked as m, importing client is marked as i
- show asm_migrating_buffer and asm_importing_buffer in info memory
- reject cluster setslot if there is an active slot migration, and cancel tasks if slot topology is changed
Some improvements and utility functions
- CLUSTER FORGET command
- CLUSTER ADDSLOTS/DELSLOTS command
- CLUSTER SETSLOTS command
- CLUSTER FAILOVER command
- CLIENT PAUSE command
- server shutdown (SHUTDOWN command or kill)
Co-authored-by: Ozan Tezcan <ozantezcan@gmail.com>
background trim
@tezc tezc added the action:run-benchmark Triggers the benchmark suite for this Pull Request label Oct 21, 2025
add cluster prefix to conf and info fields
no clusterCommonInit
@fcostaoliveira
Copy link
Collaborator

Automated performance analysis summary

This comment was automatically generated given there is performance data available.

Using platform named: x86-aws-m7i.metal-24xl for both baseline and comparison.

Using triggering environment: ci for both baseline and comparison.

In summary:

  • Detected a total of 180 stable tests between versions.
  • Detected a total of 2 improvements above the improvement water line (Comparison is Better).
    • The median improvement (Comparison is Better) was 16.3%, with values ranging from 15.0% to 17.5%.
    • Quartile distribution: P25=15.7%, P50=16.3%, P75=16.9%.

You can check a comparison in detail via the grafana link

Comparison between unstable and cluster-asm.

Time Period from 5 months ago. (environment used: oss-standalone)

By GROUP change csv:

command_group,min_change,q1_change,median_change,q3_change,max_change
hash,-5.886,-4.682,-3.353,-1.323,0.896
list,-9.784,-5.313,-3.801,0.655,7.674
string,-6.829,-3.421,-2.140,-1.272,-0.228
generic,-9.707,-1.183,0.832,3.920,17.545
bitmap,-3.975,-2.894,-1.812,-1.375,-0.937
transactions,-1.528,-1.528,-1.528,-1.528,-1.528
set,-6.109,-4.693,-2.375,-0.897,2.765
stream,-6.546,-3.279,-2.315,-1.491,4.151
sorted-set,-7.717,-4.910,-1.850,-0.712,2.092
geo,-6.375,-2.931,-1.668,-1.285,0.385
hyperloglog,-0.188,-0.188,-0.188,-0.188,-0.188
scripting,-3.405,-3.145,-2.885,-2.625,-2.365
connection,-4.847,-4.814,-4.781,-4.539,-4.296
pubsub,-2.256,-2.256,-2.256,-2.256,-2.256

By COMMAND change csv:

command,min_change,q1_change,median_change,q3_change,max_change
hgetall,-5.881,-4.522,-4.293,-2.085,0.602
hset,-5.886,-5.189,-3.405,-1.537,0.896
rpush,-0.733,-0.414,-0.094,0.226,0.546
lpush,-5.238,-5.079,-4.854,0.984,1.636
get,-5.240,-2.864,-1.816,-0.766,-0.228
set,-5.240,-2.425,-2.023,-1.035,-0.281
setx,-2.179,-1.755,-1.347,-0.896,-0.340
del,-2.179,-1.755,-1.347,-0.896,-0.340
setex,-3.373,-2.179,-1.613,-1.081,-0.340
getbit,-1.812,-1.812,-1.812,-1.812,-1.812
exists,3.364,3.364,3.364,3.364,3.364
expire,-3.405,-2.885,-2.365,-0.600,1.165
expireat,0.758,0.758,0.758,0.758,0.758
pexpire,0.907,0.907,0.907,0.907,0.907
scan,-9.707,2.262,7.645,13.702,17.545
touch,-1.049,-1.049,-1.049,-1.049,-1.049
ttl,-1.489,-1.489,-1.489,-1.489,-1.489
hexists,-1.837,-1.760,-1.682,-1.605,-1.528
hkeys,-2.085,-2.085,-2.085,-2.085,-2.085
hvals,-2.085,-2.085,-2.085,-2.085,-2.085
hget,-2.085,-1.946,-1.807,-1.667,-1.528
hincrby,-1.589,-1.589,-1.589,-1.589,-1.589
hincrbyfloat,-3.711,-3.711,-3.711,-3.711,-3.711
hmget,-1.790,-1.790,-1.790,-1.790,-1.790
multi,-1.528,-1.528,-1.528,-1.528,-1.528
exec,-1.528,-1.528,-1.528,-1.528,-1.528
hsetnx,-1.528,-1.528,-1.528,-1.528,-1.528
hdel,-1.528,-1.528,-1.528,-1.528,-1.528
lpop,-6.426,-5.894,-5.363,0.336,6.035
rpop,-6.426,-5.894,-5.363,0.336,6.035
rpoplpush,-3.979,-3.979,-3.979,-3.979,-3.979
hmset,-0.121,-0.121,-0.121,-0.121,-0.121
sadd,-5.135,-3.974,-1.616,1.677,2.647
xadd,-6.546,-4.322,-2.408,0.111,4.151
zadd,-7.717,-6.872,-2.772,-1.312,-0.659
append,-3.014,-2.887,-2.760,-2.633,-2.506
decr,-1.753,-1.753,-1.753,-1.753,-1.753
incr,-4.512,-4.512,-4.512,-4.512,-4.512
incrby,-4.050,-3.946,-3.842,-3.738,-3.634
incrbyfloat,-3.437,-3.065,-2.693,-2.321,-1.949
strlen,-0.692,-0.692,-0.692,-0.692,-0.692
mget,-1.595,-1.595,-1.595,-1.595,-1.595
setrange,-6.829,-5.791,-4.752,-3.713,-2.675
bitcount,-3.975,-3.216,-2.456,-1.697,-0.937
geopos,-6.375,-4.914,-3.452,-2.223,-0.993
geosearch,-2.029,-1.758,-1.588,-1.035,0.385
geodist,-3.070,-2.720,-2.369,-2.019,-1.668
geohash,-2.792,-2.359,-1.927,-1.494,-1.061
hscan,-4.761,-4.037,-3.795,-2.766,0.318
lrange,-9.784,-5.555,-3.913,-3.712,-2.235
llen,-3.714,-3.714,-3.714,-3.714,-3.714
lindex,-7.825,-6.782,-5.740,-1.833,2.074
linsert,6.878,7.077,7.276,7.475,7.674
lrem,6.878,7.077,7.276,7.475,7.674
lpos,-1.776,-0.514,0.749,2.011,3.274
pfadd,-0.188,-0.188,-0.188,-0.188,-0.188
smembers,-6.109,-5.746,-4.565,-1.677,-0.883
smismember,-5.981,-5.627,-5.273,-4.919,-4.565
sismember,-5.135,-3.055,-1.888,-0.369,2.765
sscan,-4.820,-4.363,-3.905,-3.140,-2.375
srem,0.075,0.075,0.075,0.075,0.075
zincrby,0.970,0.970,0.970,0.970,0.970
zrank,-7.264,-3.091,-0.640,0.838,2.092
zrem,0.489,0.489,0.489,0.489,0.489
zrevrangebyscore,-5.999,-5.763,-5.527,-5.291,-5.055
zrevrank,0.697,0.697,0.697,0.697,0.697
zrange,-5.407,-3.702,-2.327,-1.359,-0.871
zrangebyscore,-4.477,-3.734,-2.992,-2.249,-1.507
zscan,-5.164,-4.828,-4.491,-4.154,-3.817
zcard,-2.000,-2.000,-2.000,-2.000,-2.000
zrevrange,-5.453,-4.792,-4.132,-3.471,-2.810
zscore,-2.493,-2.493,-2.493,-2.493,-2.493
zrangestore,-1.352,-0.995,-0.638,-0.281,0.076
eval,-3.405,-3.405,-3.405,-3.405,-3.405
ping,-4.781,-4.093,-3.405,-2.885,-2.365
evalsha,-2.365,-2.365,-2.365,-2.365,-2.365
sdiff,-0.883,-0.883,-0.883,-0.883,-0.883
sinter,-0.910,-0.910,-0.910,-0.910,-0.910
sunion,-1.677,-1.677,-1.677,-1.677,-1.677
xread,-2.376,-2.346,-2.315,-2.284,-2.254
zunion,-0.369,-0.369,-0.369,-0.369,-0.369
zunionstore,-1.082,-1.082,-1.082,-1.082,-1.082
hello,-4.847,-4.709,-4.572,-4.434,-4.296
publish,-2.256,-2.256,-2.256,-2.256,-2.256

#### Improvements Table
Test Case Baseline /redis unstable (median obs. +- std.dev) Comparison tezc/redis cluster-asm (median obs. +- std.dev) % change (higher-better) Note
memtier_benchmark-1Mkeys-generic-scan-cursor-count-500-pipeline-10 13023 +- 1.8% (7 datapoints) 15308 17.5% Comparison is Better
memtier_benchmark-1Mkeys-generic-scan-cursor-count-5000-pipeline-10 1259 +- 1.6% (7 datapoints) 1448 15.0% Comparison is Better

Improvements test regexp names: memtier_benchmark-1Mkeys-generic-scan-cursor-count-500-pipeline-10|memtier_benchmark-1Mkeys-generic-scan-cursor-count-5000-pipeline-10

Full Results table:
Test Case Baseline /redis unstable (median obs. +- std.dev) Comparison tezc/redis cluster-asm (median obs. +- std.dev) % change (higher-better) Note
memtier_benchmark-100Kkeys-hash-hgetall-50-fields-100B-values 165902 +- 1.1% (7 datapoints) 158781 -4.3% potential Baseline is Better
memtier_benchmark-100Kkeys-load-hash-20-fields-with-1B-values-pipeline-30 56333 +- 3.5% (7 datapoints) 54931 -2.5% No Change
memtier_benchmark-100Kkeys-load-hash-50-fields-with-1000B-values 28109 +- 1.4% (7 datapoints) 26661 -5.2% potential Baseline is Better
memtier_benchmark-100Kkeys-load-hash-50-fields-with-100B-values 63536 +- 2.3% (7 datapoints) 61506 -3.2% potential Baseline is Better
memtier_benchmark-100Kkeys-load-hash-50-fields-with-10B-values 56075 +- 4.6% (7 datapoints) 56496 0.8% No Change
memtier_benchmark-10Kkeys-load-hash-50-fields-with-10000B-values 4757 +- 0.9% (7 datapoints) 4508 -5.2% potential Baseline is Better
memtier_benchmark-10Kkeys-load-list-rpush-bulkload-pipeline-50 189286 +- 1.0% (7 datapoints) 190319 0.5% No Change
memtier_benchmark-10Kkeys-load-list-with-10B-values-pipeline-50 1723608 +- 1.5% (7 datapoints) 1636067 -5.1% potential Baseline is Better
memtier_benchmark-10Mkeys-load-hash-5-fields-with-100B-values 134278 +- 0.9% (7 datapoints) 127055 -5.4% potential Baseline is Better
memtier_benchmark-10Mkeys-load-hash-5-fields-with-100B-values-pipeline-10 472212 +- 1.1% (7 datapoints) 445676 -5.6% potential Baseline is Better
memtier_benchmark-10Mkeys-load-hash-5-fields-with-10B-values 151862 +- 1.3% (7 datapoints) 142924 -5.9% potential Baseline is Better
memtier_benchmark-10Mkeys-load-hash-5-fields-with-10B-values-pipeline-10 604390 +- 0.9% (7 datapoints) 576256 -4.7% potential Baseline is Better
memtier_benchmark-10Mkeys-string-get-10B-pipeline-100-nokeyprefix 3341560 +- 1.0% (7 datapoints) 3333936 +- 0.1% (2 datapoints) -0.2% No Change
memtier_benchmark-1Kkeys-hash-listpack-500-fields-update-20-fields-with-1B-to-64B-values 81246 +- 2.6% (7 datapoints) 81974 0.9% No Change
memtier_benchmark-1Mkeys-100B-expire-use-case 190728 +- 0.7% (7 datapoints) 188666 +- 3.7% (2 datapoints) -1.1% No Change
memtier_benchmark-1Mkeys-10B-expire-use-case 190353 +- 1.5% (7 datapoints) 189706 +- 3.8% (2 datapoints) -0.3% No Change
memtier_benchmark-1Mkeys-1KiB-expire-use-case 186152 +- 1.7% (7 datapoints) 183150 +- 3.0% (2 datapoints) -1.6% No Change
memtier_benchmark-1Mkeys-4KiB-expire-use-case 170774 +- 1.1% (7 datapoints) 167052 +- 4.4% (2 datapoints) -2.2% No Change
memtier_benchmark-1Mkeys-bitmap-getbit-pipeline-10 2575545 +- 0.7% (7 datapoints) 2528870 -1.8% No Change
memtier_benchmark-1Mkeys-generic-exists-pipeline-10 1506116 +- 1.0% (7 datapoints) 1556783 3.4% potential Comparison is Better
memtier_benchmark-1Mkeys-generic-expire-pipeline-10 1417171 +- 1.3% (7 datapoints) 1433676 1.2% No Change
memtier_benchmark-1Mkeys-generic-expireat-pipeline-10 1387742 +- 1.1% (7 datapoints) 1398256 0.8% No Change
memtier_benchmark-1Mkeys-generic-pexpire-pipeline-10 1400961 +- 0.7% (7 datapoints) 1413668 0.9% No Change
memtier_benchmark-1Mkeys-generic-scan-count-500-pipeline-10 23616 +- 4.2% (7 datapoints) 21324 -9.7% potential Baseline is Better
memtier_benchmark-1Mkeys-generic-scan-cursor-count-500-pipeline-10 13023 +- 1.8% (7 datapoints) 15308 17.5% Comparison is Better
memtier_benchmark-1Mkeys-generic-scan-cursor-count-5000-pipeline-10 1259 +- 1.6% (7 datapoints) 1448 15.0% Comparison is Better
memtier_benchmark-1Mkeys-generic-scan-cursor-pipeline-10 448916 +- 1.5% (7 datapoints) 492468 9.7% potential Comparison is Better
memtier_benchmark-1Mkeys-generic-scan-pipeline-10 824928 +- 3.0% (7 datapoints) 871020 5.6% potential Comparison is Better
memtier_benchmark-1Mkeys-generic-scan-type-pipeline-10 785652 +- 1.6% (7 datapoints) 794709 1.2% No Change
memtier_benchmark-1Mkeys-generic-touch-pipeline-10 1438680 +- 1.6% (7 datapoints) 1423590 -1.0% No Change
memtier_benchmark-1Mkeys-generic-ttl-pipeline-10 1433509 +- 1.7% (7 datapoints) 1412163 -1.5% No Change
memtier_benchmark-1Mkeys-hash-hexists 179823 +- 1.9% (7 datapoints) 176520 -1.8% No Change
memtier_benchmark-1Mkeys-hash-hget-hgetall-hkeys-hvals-with-100B-values 183289 +- 0.8% (7 datapoints) 179467 -2.1% No Change
memtier_benchmark-1Mkeys-hash-hgetall-50-fields-10B-values 177656 +- 1.4% (7 datapoints) 178725 0.6% No Change
memtier_benchmark-1Mkeys-hash-hincrby 196387 +- 1.1% (7 datapoints) 193266 -1.6% No Change
memtier_benchmark-1Mkeys-hash-hincrbyfloat 174662 +- 0.9% (7 datapoints) 168181 -3.7% potential Baseline is Better
memtier_benchmark-1Mkeys-hash-hmget-5-fields-with-100B-values-pipeline-10 1001864 +- 1.1% (7 datapoints) 983931 -1.8% No Change
memtier_benchmark-1Mkeys-hash-transactions-multi-exec-pipeline-20 1866820 +- 0.7% (7 datapoints) 1838294 -1.5% No Change
memtier_benchmark-1Mkeys-list-lpop-rpop-with-100B-values 181350 +- 1.2% (7 datapoints) 169697 -6.4% potential Baseline is Better
memtier_benchmark-1Mkeys-list-lpop-rpop-with-10B-values 182758 +- 1.1% (7 datapoints) 172956 -5.4% potential Baseline is Better
memtier_benchmark-1Mkeys-list-lpop-rpop-with-1KiB-values 178933 +- 1.1% (7 datapoints) 189732 6.0% potential Comparison is Better
memtier_benchmark-1Mkeys-list-rpoplpush-with-10B-values 176514 +- 1.4% (7 datapoints) 169491 -4.0% potential Baseline is Better
memtier_benchmark-1Mkeys-load-hash-5-fields-with-1000B-values 106305 +- 1.9% (7 datapoints) 105585 -0.7% No Change
memtier_benchmark-1Mkeys-load-hash-5-fields-with-1000B-values-pipeline-10 259353 +- 0.9% (7 datapoints) 250249 -3.5% potential Baseline is Better
memtier_benchmark-1Mkeys-load-hash-hmset-5-fields-with-1000B-values 105834 +- 1.6% (7 datapoints) 105706 -0.1% No Change
memtier_benchmark-1Mkeys-load-list-rpush-with-10B-values 170635 +- 0.9% (7 datapoints) 169384 -0.7% No Change
memtier_benchmark-1Mkeys-load-list-with-100B-values 159665 +- 1.3% (7 datapoints) 162276 1.6% No Change
memtier_benchmark-1Mkeys-load-list-with-10B-values 172567 +- 1.3% (7 datapoints) 163529 -5.2% potential Baseline is Better
memtier_benchmark-1Mkeys-load-list-with-10B-values-pipeline-10 913014 +- 1.0% (7 datapoints) 921994 1.0% No Change
memtier_benchmark-1Mkeys-load-list-with-1KiB-values 120302 +- 0.7% (7 datapoints) 114462 -4.9% potential Baseline is Better
memtier_benchmark-1Mkeys-load-set-intset-with-100-elements 99671 +- 0.9% (7 datapoints) 97859 -1.8% No Change
memtier_benchmark-1Mkeys-load-set-intset-with-100-elements-19-digits 55219 +- 2.1% (7 datapoints) 56680 2.6% No Change
memtier_benchmark-1Mkeys-load-set-intset-with-100-elements-19-digits-pipeline-10 77511 +- 2.0% (7 datapoints) 79070 2.0% No Change
memtier_benchmark-1Mkeys-load-set-intset-with-100-elements-pipeline-10 204485 +- 0.7% (7 datapoints) 196123 -4.1% potential Baseline is Better
memtier_benchmark-1Mkeys-load-stream-1-fields-with-100B-values 140460 +- 1.7% (7 datapoints) 135431 -3.6% potential Baseline is Better
memtier_benchmark-1Mkeys-load-stream-1-fields-with-100B-values-pipeline-10 506392 +- 2.0% (7 datapoints) 527414 4.2% potential Comparison is Better
memtier_benchmark-1Mkeys-load-stream-5-fields-with-100B-values 122060 +- 1.6% (7 datapoints) 120552 -1.2% No Change
memtier_benchmark-1Mkeys-load-stream-5-fields-with-100B-values-pipeline-10 326718 +- 2.1% (7 datapoints) 305330 -6.5% potential Baseline is Better
memtier_benchmark-1Mkeys-load-string-with-10B-values-pipeline-100-nokeyprefix 2465125 +- 1.1% (7 datapoints) 2412162 +- 0.1% (2 datapoints) -2.1% No Change
memtier_benchmark-1Mkeys-load-zset-listpack-with-100-elements-double-score 5596 +- 0.4% (7 datapoints) 5559 -0.7% No Change
memtier_benchmark-1Mkeys-load-zset-with-10-elements-double-score 130698 +- 1.1% (7 datapoints) 127076 -2.8% No Change
memtier_benchmark-1Mkeys-load-zset-with-10-elements-int-score 142671 +- 1.1% (7 datapoints) 132867 -6.9% potential Baseline is Better
memtier_benchmark-1Mkeys-string-append-1-100B 180036 +- 1.5% (7 datapoints) 175524 +- 1.8% (2 datapoints) -2.5% No Change
memtier_benchmark-1Mkeys-string-append-1-100B-pipeline-10 1028516 +- 1.2% (7 datapoints) 997514 +- 0.8% (2 datapoints) -3.0% potential Baseline is Better
memtier_benchmark-1Mkeys-string-decr 178857 +- 1.0% (7 datapoints) 175723 +- 0.8% (2 datapoints) -1.8% No Change
memtier_benchmark-1Mkeys-string-get-10B-pipeline-100-nokeyprefix 3510279 +- 2.0% (7 datapoints) 3465643 +- 0.2% (2 datapoints) -1.3% No Change
memtier_benchmark-1Mkeys-string-incr-pipeline-10 1316913 +- 0.7% (7 datapoints) 1257492 +- 0.2% (2 datapoints) -4.5% potential Baseline is Better
memtier_benchmark-1Mkeys-string-incrby 181728 +- 1.8% (7 datapoints) 174367 +- 0.3% (2 datapoints) -4.1% potential Baseline is Better
memtier_benchmark-1Mkeys-string-incrby-pipeline-10 1258841 +- 0.7% (7 datapoints) 1213092 +- 0.6% (2 datapoints) -3.6% potential Baseline is Better
memtier_benchmark-1Mkeys-string-incrbyfloat 169441 +- 0.8% (7 datapoints) 163617 +- 3.7% (2 datapoints) -3.4% potential Baseline is Better
memtier_benchmark-1Mkeys-string-incrbyfloat-pipeline-10 771713 +- 0.5% (7 datapoints) 756672 +- 1.3% (2 datapoints) -1.9% No Change
memtier_benchmark-1Mkeys-string-int-encoding-strlen-pipeline-10 1276616 +- 0.6% (7 datapoints) 1267784 +- 3.0% (2 datapoints) -0.7% No Change
memtier_benchmark-1Mkeys-string-mget-1KiB 140605 +- 1.5% (7 datapoints) 138362 +- 3.5% (2 datapoints) -1.6% No Change
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-100B 183306 +- 1.7% (7 datapoints) 173700 +- 2.0% (2 datapoints) -5.2% potential Baseline is Better
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-100B-pipeline-10 907656 +- 1.1% (7 datapoints) 905106 +- 0.9% (2 datapoints) -0.3% No Change
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-1KB 172209 +- 1.2% (7 datapoints) 165005 +- 1.1% (2 datapoints) -4.2% potential Baseline is Better
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-1KB-pipeline-10 604086 +- 1.3% (7 datapoints) 601404 +- 0.3% (2 datapoints) -0.4% No Change
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-32B 185353 +- 1.2% (7 datapoints) 180828 +- 3.8% (2 datapoints) -2.4% No Change
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-32B-pipeline-10 984618 +- 0.7% (7 datapoints) 976024 +- 1.1% (2 datapoints) -0.9% No Change
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-512B 174754 +- 1.4% (7 datapoints) 165741 +- 0.0% (2 datapoints) -5.2% potential Baseline is Better
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-512B-pipeline-10 731222 +- 0.8% (7 datapoints) 716428 +- 1.6% (2 datapoints) -2.0% No Change
memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-with-expiration-240B-400_conns 176692 +- 0.9% (7 datapoints) 173127 +- 3.5% (2 datapoints) -2.0% No Change
memtier_benchmark-1Mkeys-string-setex-100B-pipeline-10 892369 +- 0.9% (7 datapoints) 862267 +- 1.2% (2 datapoints) -3.4% potential Baseline is Better
memtier_benchmark-1Mkeys-string-setget200c-1KiB-pipeline-10 714440 +- 1.1% (7 datapoints) 684906 +- 2.1% (2 datapoints) -4.1% potential Baseline is Better
memtier_benchmark-1Mkeys-string-setrange-100B 179837 +- 1.3% (7 datapoints) 167556 +- 1.7% (2 datapoints) -6.8% potential Baseline is Better
memtier_benchmark-1Mkeys-string-setrange-100B-pipeline-10 1045700 +- 1.0% (7 datapoints) 1017732 +- 1.2% (2 datapoints) -2.7% No Change
memtier_benchmark-1key-100M-bits-bitmap-bitcount 34235 +- 7.5% (7 datapoints) 33914 -0.9% No Change
memtier_benchmark-1key-1Billion-bits-bitmap-bitcount 3579 +- 8.0% (7 datapoints) 3436 -4.0% potential Baseline is Better
memtier_benchmark-1key-geo-2-elements-geopos 173172 +- 1.0% (7 datapoints) 162133 -6.4% potential Baseline is Better
memtier_benchmark-1key-geo-2-elements-geosearch-fromlonlat-withcoord 133344 +- 0.4% (7 datapoints) 131120 -1.7% No Change
memtier_benchmark-1key-geo-60M-elements-geodist 185016 +- 1.9% (7 datapoints) 181930 -1.7% No Change
memtier_benchmark-1key-geo-60M-elements-geodist-pipeline-10 1468626 +- 0.6% (7 datapoints) 1423533 -3.1% potential Baseline is Better
memtier_benchmark-1key-geo-60M-elements-geohash 186544 +- 1.8% (7 datapoints) 184564 -1.1% No Change
memtier_benchmark-1key-geo-60M-elements-geohash-pipeline-10 1521749 +- 1.2% (7 datapoints) 1479260 -2.8% No Change
memtier_benchmark-1key-geo-60M-elements-geopos 185144 +- 2.4% (7 datapoints) 178752 -3.5% potential Baseline is Better
memtier_benchmark-1key-geo-60M-elements-geopos-pipeline-10 1518021 +- 1.6% (7 datapoints) 1502945 -1.0% No Change
memtier_benchmark-1key-geo-60M-elements-geosearch-fromlonlat 164834 +- 0.8% (7 datapoints) 161490 -2.0% No Change
memtier_benchmark-1key-geo-60M-elements-geosearch-fromlonlat-bybox 162791 +- 0.8% (7 datapoints) 160335 -1.5% No Change
memtier_benchmark-1key-geo-60M-elements-geosearch-fromlonlat-pipeline-10 920237 +- 0.9% (7 datapoints) 923784 0.4% No Change
memtier_benchmark-1key-hash-1K-fields-hgetall 17659 +- 0.7% (7 datapoints) 16621 -5.9% potential Baseline is Better
memtier_benchmark-1key-hash-1K-fields-hgetall-pipeline-10 18074 +- 0.5% (7 datapoints) 17256 -4.5% potential Baseline is Better
memtier_benchmark-1key-hash-hscan-1K-fields-100B-values-cursor-count-1000 15983 +- 1.8% (7 datapoints) 16034 0.3% No Change
memtier_benchmark-1key-hash-hscan-1K-fields-10B-values 166751 +- 1.7% (7 datapoints) 158811 -4.8% potential Baseline is Better
memtier_benchmark-1key-hash-hscan-1K-fields-10B-values-cursor-count-100 74444 +- 0.7% (7 datapoints) 71620 -3.8% potential Baseline is Better
memtier_benchmark-1key-hash-hscan-50-fields-10B-values 131015 +- 0.9% (7 datapoints) 126042 -3.8% potential Baseline is Better
memtier_benchmark-1key-list-10-elements-lrange-all-elements 180473 +- 1.2% (7 datapoints) 176439 -2.2% No Change
memtier_benchmark-1key-list-10-elements-lrange-all-elements-pipeline-10 1035510 +- 1.1% (7 datapoints) 980669 -5.3% potential Baseline is Better
memtier_benchmark-1key-list-100-elements-int-7bit-uint-lrange-all-elements-pipeline-10 314479 +- 1.3% (7 datapoints) 294421 -6.4% potential Baseline is Better
memtier_benchmark-1key-list-100-elements-int-lrange-all-elements-pipeline-10 240675 +- 0.8% (7 datapoints) 233634 -2.9% No Change
memtier_benchmark-1key-list-100-elements-llen-pipeline-10 1517091 +- 1.0% (7 datapoints) 1460743 -3.7% potential Baseline is Better
memtier_benchmark-1key-list-100-elements-lrange-all-elements 132750 +- 0.9% (7 datapoints) 127823 -3.7% potential Baseline is Better
memtier_benchmark-1key-list-100-elements-lrange-all-elements-pipeline-10 277084 +- 0.9% (7 datapoints) 266311 -3.9% potential Baseline is Better
memtier_benchmark-1key-list-10K-elements-lindex-integer 163266 +- 1.0% (7 datapoints) 150491 -7.8% potential Baseline is Better
memtier_benchmark-1key-list-10K-elements-lindex-string 144444 +- 2.8% (7 datapoints) 136154 -5.7% potential Baseline is Better
memtier_benchmark-1key-list-10K-elements-lindex-string-pipeline-10 425713 +- 6.3% (7 datapoints) 434542 2.1% No Change
memtier_benchmark-1key-list-10K-elements-linsert-lrem-integer 15201 +- 4.8% (7 datapoints) 16246 6.9% potential Comparison is Better
memtier_benchmark-1key-list-10K-elements-linsert-lrem-string 17430 +- 7.1% (7 datapoints) 18767 7.7% potential Comparison is Better
memtier_benchmark-1key-list-10K-elements-lpos-integer 14284 +- 3.3% (7 datapoints) 14031 -1.8% No Change
memtier_benchmark-1key-list-10K-elements-lpos-string 14645 +- 3.4% (7 datapoints) 15124 3.3% potential Comparison is Better
memtier_benchmark-1key-list-1K-elements-lrange-all-elements 32433 +- 2.5% (7 datapoints) 30632 -5.6% potential Baseline is Better
memtier_benchmark-1key-list-1K-elements-lrange-all-elements-pipeline-10 37865 +- 3.0% (7 datapoints) 34160 -9.8% potential Baseline is Better
memtier_benchmark-1key-list-2K-elements-quicklist-lrange-all-elements-longs 14667 +- 1.5% (7 datapoints) 14093 -3.9% potential Baseline is Better
memtier_benchmark-1key-load-hash-1K-fields-with-5B-values 8503 +- 0.6% (7 datapoints) 8443 -0.7% No Change
memtier_benchmark-1key-load-zset-with-5-elements-parsing-float-score 168512 +- 1.0% (7 datapoints) 155507 -7.7% potential Baseline is Better
memtier_benchmark-1key-load-zset-with-5-elements-parsing-hexa-score 155181 +- 1.6% (7 datapoints) 153145 -1.3% No Change
memtier_benchmark-1key-pfadd-4KB-values-pipeline-10 362771 +- 1.2% (7 datapoints) 362088 -0.2% No Change
memtier_benchmark-1key-set-10-elements-smembers 183874 +- 1.6% (7 datapoints) 173309 -5.7% potential Baseline is Better
memtier_benchmark-1key-set-10-elements-smembers-pipeline-10 1106988 +- 1.6% (7 datapoints) 1045208 -5.6% potential Baseline is Better
memtier_benchmark-1key-set-10-elements-smismember 182677 +- 1.3% (7 datapoints) 171751 -6.0% potential Baseline is Better
memtier_benchmark-1key-set-100-elements-sismember-is-a-member 179474 +- 1.9% (7 datapoints) 184437 2.8% No Change
memtier_benchmark-1key-set-100-elements-sismember-not-a-member 175793 +- 2.2% (7 datapoints) 171641 -2.4% No Change
memtier_benchmark-1key-set-100-elements-smembers 132483 +- 1.8% (7 datapoints) 127153 -4.0% potential Baseline is Better
memtier_benchmark-1key-set-100-elements-smismember 172478 +- 1.3% (7 datapoints) 164605 -4.6% potential Baseline is Better
memtier_benchmark-1key-set-100-elements-sscan 128451 +- 1.6% (7 datapoints) 125400 -2.4% No Change
memtier_benchmark-1key-set-10M-elements-sismember-50pct-chance 183436 +- 2.4% (7 datapoints) 180842 -1.4% No Change
memtier_benchmark-1key-set-10M-elements-srem-50pct-chance 183560 +- 1.2% (7 datapoints) 183698 0.1% No Change
memtier_benchmark-1key-set-1K-elements-smembers 30585 +- 0.7% (7 datapoints) 28717 -6.1% potential Baseline is Better
memtier_benchmark-1key-set-1K-elements-sscan 176881 +- 1.4% (7 datapoints) 169975 -3.9% potential Baseline is Better
memtier_benchmark-1key-set-1K-elements-sscan-cursor-count-100 105195 +- 0.5% (7 datapoints) 100124 -4.8% potential Baseline is Better
memtier_benchmark-1key-set-1M-elements-sismember-50pct-chance 182745 +- 2.0% (7 datapoints) 173361 -5.1% potential Baseline is Better
memtier_benchmark-1key-set-200K-elements-sadd-constant 183262 +- 1.9% (7 datapoints) 186132 1.6% No Change
memtier_benchmark-1key-set-2M-elements-sadd-increasing 175774 +- 1.2% (7 datapoints) 168858 -3.9% potential Baseline is Better
memtier_benchmark-1key-zincrby-1M-elements-pipeline-1 40074 +- 0.7% (7 datapoints) 40463 1.0% No Change
memtier_benchmark-1key-zrank-100K-elements-pipeline-1 41785 +- 1.0% (7 datapoints) 41074 -1.7% No Change
memtier_benchmark-1key-zrank-10M-elements-pipeline-1 39048 +- 0.5% (7 datapoints) 39212 0.4% No Change
memtier_benchmark-1key-zrank-1M-elements-pipeline-1 40543 +- 1.0% (7 datapoints) 41391 2.1% No Change
memtier_benchmark-1key-zrem-5M-elements-pipeline-1 39992 +- 1.1% (7 datapoints) 40188 0.5% No Change
memtier_benchmark-1key-zrevrangebyscore-256K-elements-pipeline-1 110417 +- 4.2% (7 datapoints) 104836 -5.1% potential Baseline is Better
memtier_benchmark-1key-zrevrangebyscore-256K-elements-pipeline-10 252066 +- 1.2% (7 datapoints) 236944 -6.0% potential Baseline is Better
memtier_benchmark-1key-zrevrank-1M-elements-pipeline-1 41199 +- 1.4% (7 datapoints) 41486 0.7% No Change
memtier_benchmark-1key-zset-10-elements-zrange-all-elements 130374 +- 0.8% (7 datapoints) 126289 -3.1% potential Baseline is Better
memtier_benchmark-1key-zset-10-elements-zrange-all-elements-long-scores 153100 +- 1.2% (7 datapoints) 144821 -5.4% potential Baseline is Better
memtier_benchmark-1key-zset-100-elements-zrange-all-elements 47702 +- 0.4% (7 datapoints) 46976 -1.5% No Change
memtier_benchmark-1key-zset-100-elements-zrangebyscore-all-elements 47752 +- 0.3% (7 datapoints) 47033 -1.5% No Change
memtier_benchmark-1key-zset-100-elements-zrangebyscore-all-elements-long-scores 92750 +- 0.6% (7 datapoints) 88597 -4.5% potential Baseline is Better
memtier_benchmark-1key-zset-100-elements-zscan 101341 +- 0.8% (7 datapoints) 96108 -5.2% potential Baseline is Better
memtier_benchmark-1key-zset-1K-elements-zrange-all-elements 9260 +- 0.1% (7 datapoints) 9179 -0.9% No Change
memtier_benchmark-1key-zset-1K-elements-zscan 117921 +- 2.8% (7 datapoints) 113420 -3.8% potential Baseline is Better
memtier_benchmark-1key-zset-1M-elements-zcard-pipeline-10 1491836 +- 0.9% (7 datapoints) 1462003 -2.0% No Change
memtier_benchmark-1key-zset-1M-elements-zrevrange-5-elements 178988 +- 1.2% (7 datapoints) 169227 -5.5% potential Baseline is Better
memtier_benchmark-1key-zset-1M-elements-zrevrange-withscores-5-elements-pipeline-10 1010645 +- 2.9% (7 datapoints) 982246 -2.8% No Change
memtier_benchmark-1key-zset-1M-elements-zscore-pipeline-10 1263156 +- 1.0% (7 datapoints) 1231665 -2.5% No Change
memtier_benchmark-1key-zset-600K-elements-zrangestore-1K-elements 4795 +- 0.8% (7 datapoints) 4798 0.1% No Change
memtier_benchmark-1key-zset-600K-elements-zrangestore-300K-elements 12 +- 1.1% (7 datapoints) 12 -1.4% No Change
memtier_benchmark-1key-zset-listpack-zrank-100-elements-pipeline-1 171646 +- 1.2% (7 datapoints) 159178 -7.3% potential Baseline is Better
memtier_benchmark-2keys-lua-eval-hset-expire 124501 +- 0.5% (7 datapoints) 120262 -3.4% potential Baseline is Better
memtier_benchmark-2keys-lua-evalsha-hset-expire 137755 +- 1.3% (7 datapoints) 134496 -2.4% No Change
memtier_benchmark-2keys-set-10-100-elements-sdiff 47345 +- 1.6% (7 datapoints) 46927 -0.9% No Change
memtier_benchmark-2keys-set-10-100-elements-sinter 116521 +- 3.4% (7 datapoints) 115460 -0.9% No Change
memtier_benchmark-2keys-set-10-100-elements-sunion 62489 +- 1.5% (7 datapoints) 61441 -1.7% No Change
memtier_benchmark-2keys-stream-5-entries-xread-all-entries 117486 +- 1.4% (7 datapoints) 114838 -2.3% No Change
memtier_benchmark-2keys-stream-5-entries-xread-all-entries-pipeline-10 252197 +- 0.9% (7 datapoints) 246205 -2.4% No Change
memtier_benchmark-2keys-zset-300-elements-skiplist-encoded-zunion 6648 +- 0.9% (7 datapoints) 6623 -0.4% No Change
memtier_benchmark-2keys-zset-300-elements-skiplist-encoded-zunionstore 7789 +- 1.2% (7 datapoints) 7705 -1.1% No Change
memtier_benchmark-3Mkeys-string-mixed-20-80-with-512B-values-400_conns 171566 +- 1.1% (7 datapoints) 167909 +- 0.1% (2 datapoints) -2.1% No Change
memtier_benchmark-3Mkeys-string-mixed-20-80-with-512B-values-pipeline-10-2000_conns 600241 +- 1.4% (7 datapoints) 585784 +- 1.1% (2 datapoints) -2.4% No Change
memtier_benchmark-3Mkeys-string-mixed-20-80-with-512B-values-pipeline-10-400_conns 588778 +- 1.1% (7 datapoints) 582955 +- 0.1% (2 datapoints) -1.0% No Change
memtier_benchmark-3Mkeys-string-mixed-20-80-with-512B-values-pipeline-10-5200_conns 580043 +- 0.5% (7 datapoints) 572668 +- 0.6% (2 datapoints) -1.3% No Change
memtier_benchmark-connection-hello 177136 +- 1.1% (7 datapoints) 168550 -4.8% potential Baseline is Better
memtier_benchmark-connection-hello-pipeline-10 903781 +- 0.4% (7 datapoints) 864953 -4.3% potential Baseline is Better
memtier_benchmark-nokeys-connection-ping-pipeline-10 1638030 +- 1.3% (7 datapoints) 1559710 -4.8% potential Baseline is Better
memtier_benchmark-nokeys-pubsub-publish-1K-channels-10B-no-subscribers 1526382 +- 0.8% (7 datapoints) 1491940 -2.3% No Change

WARNING: There were 59 benchmarks with NO datapoints for both baseline and comparison.

NO datapoints for both baseline and comparison:

NO DATAPOINTS test regexp names: defaults|memtier_benchmark-1Mkeys-10B-psetex-expire-use-case|memtier_benchmark-1Mkeys-10B-setex-expire-use-case|memtier_benchmark-1Mkeys-load-string-with-100B-values|memtier_benchmark-1Mkeys-load-string-with-100B-values-pipeline-10|memtier_benchmark-1Mkeys-load-string-with-10B-values|memtier_benchmark-1Mkeys-load-string-with-10B-values-pipeline-10|memtier_benchmark-1Mkeys-load-string-with-10B-values-pipeline-100|memtier_benchmark-1Mkeys-load-string-with-10B-values-pipeline-50|memtier_benchmark-1Mkeys-load-string-with-10B-values-pipeline-500|memtier_benchmark-1Mkeys-load-string-with-1KiB-values|memtier_benchmark-1Mkeys-load-string-with-1KiB-values-pipeline-10|memtier_benchmark-1Mkeys-load-string-with-20KiB-values|memtier_benchmark-1Mkeys-string-get-100B|memtier_benchmark-1Mkeys-string-get-100B-pipeline-10|memtier_benchmark-1Mkeys-string-get-10B|memtier_benchmark-1Mkeys-string-get-10B-pipeline-10|memtier_benchmark-1Mkeys-string-get-10B-pipeline-100|memtier_benchmark-1Mkeys-string-get-10B-pipeline-50|memtier_benchmark-1Mkeys-string-get-10B-pipeline-500|memtier_benchmark-1Mkeys-string-get-1KiB|memtier_benchmark-1Mkeys-string-get-1KiB-pipeline-10|memtier_benchmark-1Mkeys-string-get-32B|memtier_benchmark-1Mkeys-string-get-32B-pipeline-10|memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-100B-expire|memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-100B-expire-pipeline-10|memtier_benchmark-1Mkeys-string-set-with-ex-100B-pipeline-10|memtier_benchmark-1Mkeys-string-setget200c-1KiB-pipeline-1|memtier_benchmark-1key-zset-1M-elements-zremrangebyscore-pipeline-10|memtier_benchmark-3Mkeys-load-string-with-512B-values|memtier_benchmark-3Mkeys-load-string-with-512B-values-pipeline-10|memtier_benchmark-3Mkeys-string-get-with-1KiB-values-400_conns|memtier_benchmark-3Mkeys-string-get-with-1KiB-values-40_conns|memtier_benchmark-3Mkeys-string-get-with-1KiB-values-pipeline-10-2000_conns|memtier_benchmark-3Mkeys-string-get-with-1KiB-values-pipeline-10-400_conns|memtier_benchmark-3Mkeys-string-get-with-1KiB-values-pipeline-10-40_conns|memtier_benchmark-3Mkeys-string-mixed-50-50-with-512B-values-with-expiration-pipeline-10-400_conns|memtier_benchmark-multiple-hll-pfcount-100B-values|memtier_benchmark-multiple-hll-pfmerge-100B-values|memtier_benchmark-nokeys-pubsub-mixed-100-channels-128B-100-publishers-100-subscribers|memtier_benchmark-nokeys-pubsub-mixed-100-channels-128B-100-publishers-1000-subscribers|memtier_benchmark-nokeys-pubsub-mixed-100-channels-128B-100-publishers-5000-subscribers|memtier_benchmark-nokeys-pubsub-mixed-100-channels-128B-100-publishers-50K-subscribers-5k-conns|memtier_benchmark-nokeys-server-time-pipeline-10|memtier_benchmark-playbook-leaderboard-top-10|memtier_benchmark-playbook-leaderboard-top-100|memtier_benchmark-playbook-leaderboard-top-1000|memtier_benchmark-playbook-rate-limiting-lua-100k-sessions|memtier_benchmark-playbook-realtime-analytics-membership|memtier_benchmark-playbook-realtime-analytics-membership-pipeline-10|memtier_benchmark-playbook-session-caching-hash-100k-sessions|memtier_benchmark-playbook-session-caching-json-100k-sessions|memtier_benchmark-playbook-session-caching-string-100k-sessions|memtier_benchmark-playbook-session-storage-100k-sessions|memtier_benchmark-playbook-session-storage-1k-sessions|memtier_benchmark-stream-10M-entries-xread-count-100|memtier_benchmark-stream-10M-entries-xreadgroup-count-100|memtier_benchmark-stream-10M-entries-xreadgroup-count-100-noack|memtier_benchmark-stream-concurrent-xadd-xreadgroup-70-30

Copy link
Member

@ShooterIT ShooterIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exciting work, LGTM :)

@tezc
Copy link
Collaborator Author

tezc commented Oct 22, 2025

@ShooterIT Exciting work from you!!!! You took on the most complex parts and nailed them. It was great (and fun) working on this project together :)

@tezc
Copy link
Collaborator Author

tezc commented Oct 22, 2025

@tezc tezc merged commit 2bc4e02 into redis:unstable Oct 22, 2025
30 of 31 checks passed
@sundb sundb added this to Redis 8.4 Oct 23, 2025
@sundb sundb moved this from Todo to Done in Redis 8.4 Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action:run-benchmark Triggers the benchmark suite for this Pull Request release-notes indication that this issue needs to be mentioned in the release notes state:needs-doc-pr requires a PR to redis-doc repository

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants