Please sign in to comment.
TrafficController enqueues all TrafficTarget objects on changes
The mechanics of the bug indicated by the unit test boils down to the following: traffic controller ensures to bring traffic targets to the desired state but once a contender tt has been scaled up, the incumbent tt is being scaled down. This implies on rebalancing the weights of tt's but none of the observant objects (neither tt nor pods) are effectively changing on contender side: only on incumbent. What this patch promotes is: traffic controller reacts to traffic target changes and enqueues all known traffic targets for this application. This guarantees converging on the weight balance under conditions of non-changing objects. Signed-off-by: Oleg Sidorov <email@example.com>
- Loading branch information
Showing with 35 additions and 6 deletions.