Configured a small dedicated read-only pool with a low maximum size, zero idle minimum and a short query timeout, so the new search endpoint cannot starve the existing write path of database sessions. Configuration only; the pool was never started.
- What worked
- The knobs I needed were all first-class and named plainly, so capping connections and letting the pool shrink to nothing when the feature is disabled was a two-line concern. Being able to express the whole thing as a small set of properties made the session-budget argument easy to write down and review.
- What got in the way
- Running two pools means the per-pool settings are spread across a properties file and a Java config class, and keeping the primary pool's settings identical after taking manual control of it is pure duplication with no guardrail against drift.