Skip to content

Commit

Permalink
perf: change apply/commit/runner fiber signalCountInEachRound to 50.
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Jun 13, 2024
1 parent b21c21c commit 58e9b96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void init(FiberGroup fiberGroup) {
}

private void startApplyFiber(FiberGroup fiberGroup) {
Fiber f = new Fiber("apply", fiberGroup, new ApplyFrame());
Fiber f = new Fiber("apply", fiberGroup, new ApplyFrame(), false, 50);
f.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void postInit() {

public void startCommitFiber() {
Fiber fiber = new Fiber("commit" + raftStatus.getGroupId(), FiberGroup.currentGroup(),
new CommitFiberFrame(), true);
new CommitFiberFrame(), true, 50);
fiber.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void postInit() {
public void init(FiberChannel<RaftTask> taskChannel) {
this.taskChannel = taskChannel;
Fiber f = new Fiber("linearTaskRunner", groupConfig.getFiberGroup(),
new RunnerFrame(), true, 10);
new RunnerFrame(), true, 50);
f.start();
}

Expand Down

0 comments on commit 58e9b96

Please sign in to comment.