Skip to main content

Module optimizer

Module optimizer 

Source
Expand description

Pool-size optimization routines. Pool-size optimization routines.

This module evaluates the configured candidate range and chooses the smallest pool size that satisfies both:

  • max_acceptable_rho
  • target_wait_p99_ms

If no candidate satisfies both constraints, the optimizer falls back to max_pool_size and emits advisory warnings in crate::optimizer::OptimalResult.

Structs§

OptimalResult
Optimization output for the selected pool size.

Functions§

find_optimal
Finds the smallest pool size that satisfies target constraints.