VictoriaMetrics/app
Roman Khavronenko 96db7ac52c
vmalert: speed up state restore procedure on start (#3758)
* vmalert: speed up state restore procedure on start

Alerts state restore procedure has been changed to become asynchronous.
It doesn't block groups start anymore which significantly improves vmalert's startup time.
Instead, state restore is called by each group in their goroutines after the first rules
evaluation.

While previously state restore attempt was made for all loaded alerting rules,
now it is called only for alerts which became active after the first evaluation.
This reduces the amount of API calls to the configured remote read URL.

This also means that `remoteRead.ignoreRestoreErrors` command-line flag becomes deprecated now
and will have no effect if configured.

See relevant issue https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2608

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* make lint happy

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* Apply suggestions from code review

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2023-02-03 19:46:41 -08:00
..
vmagent app/vmagent: properly return 200 response code when importing data via Prometheus PushGateway protocol 2023-01-27 14:40:26 -08:00
vmalert vmalert: speed up state restore procedure on start (#3758) 2023-02-03 19:46:41 -08:00
vmauth docs/vmauth.md: update docs after ff39a91147 2023-01-27 14:10:29 -08:00
vmbackup app/vmbackup: fix deleting snapshot after backup completion (#3735) (#3736) 2023-02-01 08:58:11 -08:00
vmbackupmanager doc: add vmbackupmanager monitoring section (#3605) 2023-01-05 16:49:59 -08:00
vmctl vendor: make vendor-update 2023-02-01 12:48:10 -08:00
vmgateway docs: update command-line descriptions after 73256fe438 2023-01-27 00:01:14 -08:00
vminsert lib/netutil: init implimentation of proxy protocol (#3687) 2023-01-26 23:25:22 -08:00
vmrestore lib/netutil: init implimentation of proxy protocol (#3687) 2023-01-26 23:25:22 -08:00
vmselect app/vmselect/vmui: make vmui-update after e4c04b6dbe 2023-02-03 19:34:20 -08:00
vmstorage lib/netutil: init implimentation of proxy protocol (#3687) 2023-01-26 23:25:22 -08:00
vmui vmui: set light theme for app mode (#3748) 2023-02-03 19:34:18 -08:00