Skip to content

Commit

Permalink
Merge branch 'main' into thesuhas/incorrect_lsn_neon_endpoint_list
Browse files Browse the repository at this point in the history
  • Loading branch information
thesuhas authored Feb 21, 2025
2 parents a1953a1 + 5e3c234 commit 7671090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage_controller/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6821,7 +6821,7 @@ impl Service {
// with the frequency of background calls, this acts as an implicit rate limit that runs a small
// trickle of optimizations in the background, rather than executing a large number in parallel
// when a change occurs.
const MAX_OPTIMIZATIONS_EXEC_PER_PASS: usize = 2;
const MAX_OPTIMIZATIONS_EXEC_PER_PASS: usize = 16;

// Synchronous prepare: scan shards for possible scheduling optimizations
let candidate_work = self.optimize_all_plan();
Expand Down Expand Up @@ -6872,7 +6872,7 @@ impl Service {
// How many candidate optimizations we will generate, before evaluating them for readniess: setting
// this higher than the execution limit gives us a chance to execute some work even if the first
// few optimizations we find are not ready.
const MAX_OPTIMIZATIONS_PLAN_PER_PASS: usize = 8;
const MAX_OPTIMIZATIONS_PLAN_PER_PASS: usize = 64;

let mut work = Vec::new();
let mut locked = self.inner.write().unwrap();
Expand Down

0 comments on commit 7671090

Please sign in to comment.