-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
add shared raft timer, default false #414
Conversation
acb10ff
to
875b09d
Compare
ff75887
to
ffe9b30
Compare
OS version (e.g. uname -a): Darwin ali-83454.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
|
private static final String GLOBAL_VOTE_TIMER_WORKERS = "jraft.timer.global_vote_timer_workers"; | ||
private static final String GLOBAL_STEP_DOWN_TIMER_WORKERS = "jraft.timer.global_step_down_timer_workers"; | ||
private static final String GLOBAL_SNAPSHOT_TIMER_WORKERS = "jraft.timer.global_snapshot_timer_workers"; | ||
private static final String GLOBAL_SCHEDULER_WORKERS = "jraft.timer.global_scheduler_workers"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个配置需要补充到文档
5b179a0
to
ef76cf5
Compare
jraft-core/src/main/java/com/alipay/sofa/jraft/util/LogScheduledThreadPoolExecutor.java
Show resolved
Hide resolved
jraft-core/src/main/java/com/alipay/sofa/jraft/util/MetricScheduledThreadPoolExecutor.java
Show resolved
Hide resolved
|
恩,已添加 sharedTimerPool 选项 |
* add shared raft timer, default false * more robust * add shared scheduler * clear necessary code * minor change * fix unit test * add channel init low/high write buf water mark for bolt impl * minor fix * minor fix for CR
Motivation:
Add shared raft timer based on ScheduledThreadPoolExecutor
Modification:
NodeOptions
Result:
Fixes #412