VictoriaMetrics/lib/promscrape/discovery/kubernetes
Aliaksandr Valialkin ab4f090c63 lib/promscrape/discovery/kubernetes: reduce memory usage further when big number of scrape jobs are configured for the same kubernetes_sd_config role
Serialize reloading per-role objects, so they don't occupy too much memory when objects for many scrape jobs are simultaneously refreshed.
Do not reload per-role objects if they were already refreshed by concurrent goroutines. This should reduce load on Kubernetes API server
when big number of scrape jobs are configured for the same Kubernetes role.

This is a follow-up for 17b87725ed

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1113
2021-03-07 19:51:03 +02:00
..
api.go lib/promscrape/discovery/kubernetes: move apiWatcher code to a separate file 2021-03-05 12:36:05 +02:00
api_watcher.go lib/promscrape/discovery/kubernetes: reduce memory usage further when big number of scrape jobs are configured for the same kubernetes_sd_config role 2021-03-07 19:51:03 +02:00
api_watcher_test.go lib/promscrape/discovery/kubernetes: move apiWatcher code to a separate file 2021-03-05 12:36:05 +02:00
common_types.go lib/promscrape: cleanup after 9b2246c29b 2021-02-26 16:54:05 +02:00
endpoints.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
endpoints_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
endpointslices.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
endpointslices_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
ingress.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
ingress_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
kubernetes.go lib/promscrape/discovery/kubernetes: cache ScrapeWork objects as soon as the corresponding k8s objects are changed 2021-03-02 16:42:55 +02:00
node.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
node_test.go lib/promscrape/discovery/kubernetes: compare sorted sets of labels in tests 2021-02-28 14:10:19 +02:00
pod.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
pod_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
service.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
service_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00