Skip to content

Commit

Permalink
node: adjust loadavg params for total conns
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Jun 13, 2023
1 parent 10b7e4a commit 361a9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1086,9 +1086,9 @@ function adjustMaxConns(n) {
let adj = stats.bp[3] || 0;
// increase in load
if (avg5 > 100) {
adj += 5;
} else if (avg1 > 100) {
adj += 3;
} else if (avg1 > 100) {
adj += 2;
} else if (avg1 > avg5) {
adj += 1;
}
Expand Down

0 comments on commit 361a9eb

Please sign in to comment.