Skip to content

Commit c376226

Browse files
committed
graph: Increase the rate at which the load manager reduces the kill rate
It now takes up to 5s instead of 10s to completely resolve an overload and stop killing queries. On the way down, we take roughly two steps at once
1 parent a6fe8d8 commit c376226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph/src/data/graphql/effort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl LoadManager {
394394
if overloaded {
395395
kill_rate = (kill_rate + KILL_RATE_STEP * (1.0 - kill_rate)).min(1.0);
396396
} else {
397-
kill_rate = (kill_rate - KILL_RATE_STEP).max(0.0);
397+
kill_rate = (kill_rate - 2.0 * KILL_RATE_STEP).max(0.0);
398398
}
399399
let event = {
400400
let mut state = self.kill_state.write().unwrap();

0 commit comments

Comments
 (0)