Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make replica CLUSTER RESET flush async based on lazyfree-lazy-user-flush #1190

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

enjoy-binbin
Copy link
Member

Currently, if the replica has a lot of data, CLUSTER RESET
will block for a while and report the slowlog, and it seems
that there is no harm in making it async so external components
can be easier when monitoring it.

Currently, if the replica has a lot of data, CLUSTER RESET
will block for a while and report the slowlog, and it seems
that there is no harm in making it async so external components
can be easier when monitoring it.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.73%. Comparing base (a62d1f1) to head (a81d9ed).
Report is 8 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1190      +/-   ##
============================================
+ Coverage     70.65%   70.73%   +0.07%     
============================================
  Files           114      114              
  Lines         61799    63090    +1291     
============================================
+ Hits          43664    44625     +961     
- Misses        18135    18465     +330     
Files with missing lines Coverage Δ
src/cluster_legacy.c 86.34% <100.00%> (+0.02%) ⬆️

... and 92 files with indirect coverage changes

Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

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

This feels more like lazyfree-lazy-user-flush to me since it is the result of a user action. The lazy-free replica always seemed more random since it could happen arbitrarily.

@enjoy-binbin enjoy-binbin changed the title Make replica CLUSTER RESET flush async based on replica-lazy-flush Make replica CLUSTER RESET flush async based on lazyfree-lazy-user-flush Oct 19, 2024
Signed-off-by: Binbin <binloveplay1314@qq.com>
Copy link
Member

@PingXie PingXie left a comment

Choose a reason for hiding this comment

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

some wording recommendation

valkey.conf Outdated Show resolved Hide resolved
Co-authored-by: Ping Xie <pingxie@outlook.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

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

Shipit

@madolson madolson added the release-notes This issue should get a line item in the release notes label Oct 22, 2024
@enjoy-binbin enjoy-binbin merged commit 5d70ccd into valkey-io:unstable Oct 23, 2024
47 checks passed
@enjoy-binbin enjoy-binbin deleted the reset_flush_async branch October 23, 2024 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes This issue should get a line item in the release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants