Zanzana: Add setting zanzana reconciliation interval (#96687)

Add config option under RBAC for zanzana reconciliation interval
This commit is contained in:
Karl Persson
2024-11-21 09:20:29 +01:00
committed by GitHub
parent 0cb6c3d7bf
commit e995d4f682
2 changed files with 14 additions and 3 deletions
@@ -98,9 +98,8 @@ func (r *ZanzanaReconciler) Reconcile(ctx context.Context) error {
r.reconcile(ctx)
// FIXME:
// 1. We should be a bit graceful about reconciliations so we are not hammering dbs
// 2. We should be able to configure reconciliation interval
ticker := time.NewTicker(1 * time.Hour)
// We should be a bit graceful about reconciliations so we are not hammering dbs
ticker := time.NewTicker(r.cfg.RBAC.ZanzanaReconciliationInterval)
for {
select {
case <-ticker.C: