forked from bookingcom/shipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <oleg.sidorov@booking.com>
- Loading branch information
1 parent
2b8f241
commit f026f16
Showing
1 changed file
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters