Skip to content

cp: Enforce depool threshold after read write mode is reached

Vgutierrez requested to merge enforce-read-only into main

on control plane start, cp.readWrite is set to false and it's only swapped to true after we got healthcheck results for every realserver. In that moment the control plane is able to enforce the depool threshold if needed.

This is achieved by not flagging realservers as flagged = DepoolBlocked if the control plane is on read only mode.

As a side effect, we need to double check healthcheck results for PooledYes realservers on updateMetricsState

This MR ships commits from !61 (merged)

Merge request reports