-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Optimize the write performance when host is down #5571
Optimize the write performance when host is down #5571
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #5571 +/- ##
==========================================
+ Coverage 76.96% 78.22% +1.26%
==========================================
Files 1130 1130
Lines 85345 85368 +23
==========================================
+ Hits 65686 66783 +1097
+ Misses 19659 18585 -1074 ☔ View full report in Codecov by Sentry. |
@critical27 any additional thoughts? |
The key points that make performance regression is that, when log gap become large, the building of the WAL iterator from specific logId is too slow. (In the same wal file, the target log is seek in sequential) I'm ok with this PR for now. If you are interested in the problem I said, could try to fix it. The problem is the biggest one in current implementation. It will make raft much more robust and faster in many scenarios. |
One point you need to check is that, when a node is elected as leader, should we reset all |
Actually I fixed the issue you mentioned (at least from my view) in our implementation and it almost had no peformance regression even if the log gap is very large. ^_^ |
Yes, the current implementation will call host->resume to reset paused_ as false. I think it should be fine. At the beginning, the new leader doesn't know its peer is down. It can eventually set the right status of the peer by sending HB request. |
* Optimize the write performance when host is down * fix the comments --------- Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
* fix traverse build path memory tracker (#5619) * Optimize the write performance when host is down (#5571) * Optimize the write performance when host is down * fix the comments --------- Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> * Fix too many logs print when listing sessions (#5618) * Set min_level_for_custom_filter as 0 by default to delete expired d… (#5622) Reset min_level_for_custom_filter as 0 by default to delete expired data during compaction * Revert "Revert "Change ccache to sccache"" (#5623) * Revert "Revert "Change ccache to sccache" (#5613)" This reverts commit 08a5d90. * Update pull_request.yml * Revert "Change ccache to sccache" (#5627) Revert "Revert "Revert "Change ccache to sccache"" (#5623)" This reverts commit c1b433d. * fix all path memory tracker (#5621) * fix all path memory tracker * fix error * Update pull_request.yml enable sccache debug log * Update pull_request.yml add ninja -v * Update pull_request.yml * Update pull_request.yml * Update pull_request.yml * Update pull_request.yml --------- Co-authored-by: George <58841610+Shinji-IkariG@users.noreply.github.com> Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> * Fix edge all predicate embedding when generating path (#5631) * Fix edge all predicate embedding when generate path * fmt * Enhancement/eliminate invalid filter (#5634) * Fix crash double free of expr. * Change issue id. * Elimintate invalid property filter. * support find circular (#5636) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> * fix allpath memory tracker (#5640) fix allpath memory traker * fix_delete_validate (#5645) add test case --------- Co-authored-by: jimingquan <mingquan.ji@vesoft.com> Co-authored-by: Ryan <ydlu1987@gmail.com> Co-authored-by: Songqing Zhang <zhangsongqing164@163.com> Co-authored-by: George <58841610+Shinji-IkariG@users.noreply.github.com> Co-authored-by: kyle.cao <kyle.cao@vesoft.com> Co-authored-by: shylock <33566796+Shylock-Hg@users.noreply.github.com>
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number: #5570
Description:
Optimize the write performance after some host is down.
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: