linkerd2/controller/api/destination/watcher
Alex Leong 3902b339e7
Only process server updates on workloads affected by the server (#12017)
We the destination controller's workload watcher receives an update for any Server resource, it recomputes opaqueness for every workload.  This is because the Server update may have changed opaqueness for that workload.  However, this is very CPU intensive for the destination controller, especially during resyncs when we get Server updates for every Server resource in the cluster.

Instead, we only need to recompute opaqueness for workloads that are selected by the old version of the Server or by the new version of the Server.  If a workload is not selected by either the new or old version of the Server, then the Server update cannot have changed the workload's opaqueness.

Signed-off-by: Alex Leong <alex@buoyant.io>
2024-02-01 10:42:50 -08:00
..
cluster_store.go Fixed destination metrics warning when re-linking (#11253) 2023-08-16 15:27:31 -07:00
cluster_store_test.go Add cluster store size gauge (#11256) 2023-08-16 15:14:22 -07:00
endpoints_watcher.go Process ExternalWorkload targetRefs when updating slices (#11987) 2024-01-26 12:01:50 +00:00
endpoints_watcher_test.go Process ExternalWorkload targetRefs when updating slices (#11987) 2024-01-26 12:01:50 +00:00
k8s.go Add support for ExternalWorkloads in endpoint profiles (#11952) 2024-01-23 09:43:12 -08:00
opaque_ports_watcher.go Add informer lag histograms (#11534) 2023-11-08 14:56:20 -05:00
opaque_ports_watcher_test.go build(deps): bump sigs.k8s.io/gateway-api from 0.5.1 to 0.6.0 (#10038) 2023-01-16 09:38:09 -05:00
profile_watcher.go Add informer lag histograms (#11534) 2023-11-08 14:56:20 -05:00
profile_watcher_test.go build(deps): bump sigs.k8s.io/gateway-api from 0.5.1 to 0.6.0 (#10038) 2023-01-16 09:38:09 -05:00
prometheus.go Add support for ExternalWorkloads in endpoint profiles (#11952) 2024-01-23 09:43:12 -08:00
test_util.go Add support for remote discovery (#11224) 2023-08-11 09:31:45 -07:00
workload_watcher.go Only process server updates on workloads affected by the server (#12017) 2024-02-01 10:42:50 -08:00
workload_watcher_test.go Add support for ExternalWorkloads in endpoint profiles (#11952) 2024-01-23 09:43:12 -08:00