calico
calico copied to clipboard
[v3.30] OpenStack: make periodic compaction loop independent of resync
Cherry-pick history
- Pick onto release-v3.30: projectcalico/calico#11306 We need to make the compaction and resync loops independent for two reasons.
-
If resync is enabled and takes a very long time (multiple hours), we don't want that to block us from regularly requesting compaction.
-
If resync is disabled, by resync_interval_secs being set to 0, we still want to request compaction periodically.
-
The help text for
etcd_compaction_period_minssays "Interval in minutes between periodic etcd compactions." So we should actually implement that! Currently the actual interval is resync_interval_secs plus however long a resync cycle takes.
Release Note
OpenStack bugfix: request etcd compaction periodically regardless of how long resync takes, or if periodic resync is disabled.