mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-07-28 03:22:38 +03:00
This commit adds http client load-balancing with DNS discovery. For both A and SRV records. It helps to route HTTP requests evenly for across discovered backends. Discovered IP addresses are cached locally. The main benefit of this feature is to remove intermediate vmauth as a load-balancer between vmagent (vmalert) and remote targets. Which simplifies components management and reduces operational overhead. By default, it's disable and could be used with `dns+` or `srv+` hostname suffix at url. For example, `-remoteWrite.url=http://dns+victoria-metrics:8428/api/v1/write`. Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2388