raftstore:Fix append log entry oom#12247
Conversation
Signed-off-by: tier-cap <zhengxiaojin@pingcap.com>
Signed-off-by: tier-cap <zhengxiaojin@pingcap.com>
Signed-off-by: tier-cap <zhengxiaojin@pingcap.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
Could you open an issue and illustrate the problem this PR solved and the effect of this PR? |
src/server/service/kv.rs
Outdated
There was a problem hiding this comment.
Changed to debug based on discussion comments with @5kbpers
Compared to metrics monitoring, the log does not have any other useful information.
close tikv#11598 close tikv#11379 Signed-off-by: tier-cap <zhengxiaojin@pingcap.com>
659723e to
c255cd4
Compare
Can refer to #11598 |
src/server/service/kv.rs
Outdated
There was a problem hiding this comment.
Will this log be too verbose when memory usage is high?
There was a problem hiding this comment.
And better to add a metric for the size of rejected messages
There was a problem hiding this comment.
- Yes, we have a raft message reject metrics in handle_raft_message.
- If reject once, the leader will not send any log append to this peer until next heartbeat response received. The rate of heartbeat is 1s as default. So warning log may be not too much.
There was a problem hiding this comment.
Changed to debug based on discussion comments
close tikv#12107 Signed-off-by: tier-cap <zhengxiaojin@pingcap.com>
c255cd4 to
0c21919
Compare
|
/merge |
|
@5kbpers: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 0c21919 |
|
@tier-cap: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
close tikv#11379, close tikv#11598, close tikv#12107 when memory usage is high water, add flow control on the append log entries. disable log entry cache evict functions. Signed-off-by: tier-cap <zhengxiaojin@pingcap.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io> Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
close tikv#11379, close tikv#11598, close tikv#12107 when memory usage is high water, add flow control on the append log entries. disable log entry cache evict functions. Signed-off-by: tier-cap <zhengxiaojin@pingcap.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
What is changed and how it works?
Issue Number: Close #11598
Close #11379
Close #12107
What's Changed:
Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note