VictoriaMetrics/app/vmalert/config
Roman Khavronenko 16e0bb496e vmalert: update groups on config reload only if changes detected (#759)
On config reload event `vmalert` reloads configuration for every group. While
it works for simple configurations, the more complex and heavy installations may
suffer from frequent config reloads.
The change introduces the `checksum` field for every group and is set to md5 hash
of yaml configuration. The checksum will change if on any change to group
definition like rules order or annotation change. Comparing the `checksum` field
on config reload event helps to detect if group should be updated.
The groups update is now done concurrently, so reload duration will be limited by
the slowest group now.

Partially solves #691 by improving config reload speed.
2020-09-11 23:41:12 +03:00
..
testdata vmalert-537: allow name duplication for rules within one group. (#559) 2020-06-18 18:54:35 +03:00
config_test.go vmalert: update groups on config reload only if changes detected (#759) 2020-09-11 23:41:12 +03:00
config.go vmalert: update groups on config reload only if changes detected (#759) 2020-09-11 23:41:12 +03:00