krt: static collection eager indexes#56530
Conversation
|
/retest |
|
@howardjohn what do you think of this? don't know what was the main reason for having lazy indexes in the first place. I was thinking of using StaticCollections for bridging non-krt things with krt things but having lazy indexes has a huge cost. |
howardjohn
left a comment
There was a problem hiding this comment.
Nice! I think I was just being lazy, I suspect at the time I did the index work 'static' was really more like 'mock for tests' which it is not anymore
|
@sschepens: The following test failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
* upstream/master: (28 commits) Automator: update common-files@master in istio/istio@master (istio#56545) Automator: update proxy@master in istio/istio@master (istio#56544) Automator: update go-control-plane in istio/istio@master (istio#56543) Automator: update proxy@master in istio/istio@master (istio#56540) Automator: update ztunnel@master in istio/istio@master (istio#56532) Ambient: In ambient index, filter configs by revision (istio#56477) Automator: update istio/client-go@master dependency in istio/istio@master (istio#56539) Automator: update proxy@master in istio/istio@master (istio#56538) Automator: update common-files@master in istio/istio@master (istio#56537) optimization: allow for lazy sidecar initialization (istio#47221) static collection eager indexes (istio#56530) fix typo in flag (istio#56534) feat: enable support for proxy protocol on status port (istio#55986) remove finding of pods by IP (istio#56502) Automator: update proxy@master in istio/istio@master (istio#56528) migrate file monitor to krt (istio#55970) Automator: update istio/client-go@master dependency in istio/istio@master (istio#56525) Automator: update ztunnel@master in istio/istio@master (istio#56518) Fix crash in merging http routes (istio#56499) krt: add assertions (istio#56510) ...
Please provide a description of this PR:
Currently StaticCollection indexes do a full collection scan looking for matching objects, this works OK for small collections but is problematic for bigger ones.
This PR makes StaticCollection have eager indexes like ManyCollection does, so we update indexes on write flows and avoid full scanning on index lookup.