Skip to content

Conversation

@enjoy-binbin
Copy link
Member

After introducing the dual channel replication in #60, we decided in #915
not to add a new configuration item to limit the replica's local replication
buffer, just use "client-output-buffer-limit replica hard" to limit it.

We need to document this behavior and mention that once the limit is reached,
all future data will accumulate in the primary side.

…imited by COB

After introducing the dual channel replication in valkey-io#60, we decided in valkey-io#915
not to add a new configuration item to limit the replica's local replication
buffer, just use "client-output-buffer-limit replica hard" to limit it.

We need to document this behavior and mention that once the limit is reached,
all future data will accumulate in the primary side.

Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.44%. Comparing base (7fbd4cb) to head (d949cfc).
⚠️ Report is 23 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2824      +/-   ##
============================================
- Coverage     72.47%   72.44%   -0.03%     
============================================
  Files           128      128              
  Lines         70286    70300      +14     
============================================
- Hits          50937    50930       -7     
- Misses        19349    19370      +21     
Files with missing lines Coverage Δ
src/replication.c 86.05% <100.00%> (+0.03%) ⬆️

... and 16 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@JimB123 JimB123 left a comment

Choose a reason for hiding this comment

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

Looks like a good documentation and logging change.

Copy link
Contributor

@naglera naglera left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Is dual-channel replication documented in any other place than in the template config file?

I don't think the config comments is the best place to put a lot of documentation. I think we need dual channel replication docs in the doc repo in topics/replication.md.

@enjoy-binbin
Copy link
Member Author

Is dual-channel replication documented in any other place than in the template config file?

I don't think so. @naglera do we have a dual channel replication doc in the valkey-doc repo? It seems we didn't write it?

I don't think the config comments is the best place to put a lot of documentation. I think we need dual channel replication docs in the doc repo in topics/replication.md.

We can document it in two places. One is complex and detailed, and the other is simple (which can be redirected to the complex one). As far as I know, very few people actually read the documentation, and many don't even look at the valkey.conf configuration file.

@enjoy-binbin enjoy-binbin merged commit 8ea7f13 into valkey-io:unstable Nov 23, 2025
55 checks passed
@enjoy-binbin enjoy-binbin deleted the update_conf branch November 23, 2025 15:27
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 28, 2025
…mited by COB (valkey-io#2824)

After introducing the dual channel replication in valkey-io#60, we decided in valkey-io#915
not to add a new configuration item to limit the replica's local replication
buffer, just use "client-output-buffer-limit replica hard" to limit it.

We need to document this behavior and mention that once the limit is reached,
all future data will accumulate in the primary side.

Signed-off-by: Binbin <[email protected]>
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 28, 2025
…mited by COB (valkey-io#2824)

After introducing the dual channel replication in valkey-io#60, we decided in valkey-io#915
not to add a new configuration item to limit the replica's local replication
buffer, just use "client-output-buffer-limit replica hard" to limit it.

We need to document this behavior and mention that once the limit is reached,
all future data will accumulate in the primary side.

Signed-off-by: Binbin <[email protected]>
zhijun42 pushed a commit to zhijun42/valkey that referenced this pull request Nov 28, 2025
…mited by COB (valkey-io#2824)

After introducing the dual channel replication in valkey-io#60, we decided in valkey-io#915
not to add a new configuration item to limit the replica's local replication
buffer, just use "client-output-buffer-limit replica hard" to limit it.

We need to document this behavior and mention that once the limit is reached,
all future data will accumulate in the primary side.

Signed-off-by: Binbin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants