-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses a workqueue as a layer of indirection between: - Events coming in from the K8s ListWatcher - The handlers that update ContainerStats This is necessary for 2 reasons. 1. SharedIndexInformers do not deal well with large backlogs of events 2. ObjListWatcher.Mx is shared 😱 with the Collector.Mx. Meaning that we pause processing K8s events while preparing metrics... and similarly we pause preparing metrics when handling a K8s event. We should revisit the design of the watcher to avoid sharing both `ContainerStats` and `Mx` as this is not a great design. Signed-off-by: Dave Tucker <[email protected]>
- Loading branch information
1 parent
287496a
commit b424607
Showing
1 changed file
with
93 additions
and
38 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