VictoriaMetrics/app/vmalert/config
Roman Khavronenko 4cdffb04a4
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 20:14:30 +01:00
..
testdata vmalert-537: allow name duplication for rules within one group. (#559) 2020-06-15 20:15:47 +01:00
config.go vmalert: update groups on config reload only if changes detected (#759) 2020-09-11 20:14:30 +01:00
config_test.go vmalert: update groups on config reload only if changes detected (#759) 2020-09-11 20:14:30 +01:00