VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin c04505e585 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 20:03:22 +02:00
..
discovery 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 20:03:22 +02:00
discoveryutils lib/promscrape: explicitly stop and cleanup service discovery routines when new config is read from -promscrape.config 2021-03-01 14:15:16 +02:00
testdata lib/promscrape: extract common auth code to lib/promauth 2020-04-13 12:59:22 +03:00
client.go lib/promscrape: add vm_promscrape_scrape_retries_total, vm_promscrape_discovery_retries_total and vm_promscrape_discovery_requests_total metrics 2021-02-01 20:06:16 +02:00
config_test.go lib/promscrape: make cluster membership calculations consistent across 32-bit and 64-bit architectures 2021-03-05 09:06:08 +02:00
config.go lib/promscrape: make cluster membership calculations consistent across 32-bit and 64-bit architectures 2021-03-05 09:06:08 +02:00
scraper.go lib/promscrape: explicitly stop and cleanup service discovery routines when new config is read from -promscrape.config 2021-03-01 14:15:16 +02:00
scrapework_test.go lib/promrelabel: add more optimizations for relabeling for common cases 2021-02-22 16:36:54 +02:00
scrapework_timing_test.go lib/promscrape: remove ID field from ScrapeWork struct. Use a pointer to ScrapeWork as a key in targetStatusMap 2020-12-17 14:31:55 +02:00
scrapework.go lib/promscrape: add ability to spread scrape targets among multiple vmagent instances 2021-02-28 18:40:42 +02:00
statconn.go lib/promscrape: code prettifying for 8dd03ecf19 2020-12-24 10:57:20 +02:00
targets_response.qtpl lib/promscrape: add bootstrap styles to /targets html page 2020-12-15 12:38:29 +02:00
targets_response.qtpl.go lib/promscrape: add bootstrap styles to /targets html page 2020-12-15 12:38:29 +02:00
targetstatus.go lib/promscrape: properly show scrape duration on /targets page 2021-01-11 21:15:50 +02:00