Skip to content

Enable dual-channel replication by default #2083

@naglera

Description

@naglera

Dual-channel replication has proven to be reliable in our current version and provides substantial improvements in full sync performance and resource utilization.

Background

The feature provides substantial improvements in full sync performance and resource utilization.

Benefits

  1. Reduced memory load on primary nodes through:

    • Moving COB tracking to replica side
    • Decreased chance of COB overruns
  2. Improved CPU efficiency on primary:

    • Dedicated connection for RDB transfer allowing direct access for child processes
    • Reduced load on primary's main process
    • Better processing of client queries during sync

Performance improvements:

  • 5-7.5% improvement in write latency during sync sessions
  • Up to 50% shorter sync times during heavy read operations
  • More then 60% reduction in memory usage for storing replication data in some cases

Proposal

Enable dual-channel replication as the default configuration in valkey 9, with the option to disable it if needed.

Impact

This change will enhance valkey's overall performance during full sync operations, without requiring additional configuration from users.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions