-
Notifications
You must be signed in to change notification settings - Fork 957
Open
Description
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
-
Reduced memory load on primary nodes through:
- Moving COB tracking to replica side
- Decreased chance of COB overruns
-
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
- Original dual-channel replication PR implementation - Dual channel replication #60
zuiderkwast, lgcardonanet and hpatro
Metadata
Metadata
Assignees
Labels
No labels