Let the system settle before maintenance starts
@@ -43,7 +43,8 @@ public abstract class Maintainer implements Runnable {
this.ignoreCollision = ignoreCollision;
Objects.requireNonNull(startedAt);
Objects.requireNonNull(clusterHostnames);
- Duration initialDelay = staggeredDelay(interval, startedAt, HostName.getLocalhost(), clusterHostnames);
+ Duration initialDelay = staggeredDelay(interval, startedAt, HostName.getLocalhost(), clusterHostnames)
+ .plus(Duration.ofSeconds(30));
service = new ScheduledThreadPoolExecutor(1, r -> new Thread(r, name() + "-worker"));
service.scheduleAtFixedRate(this, initialDelay.toMillis(), interval.toMillis(), TimeUnit.MILLISECONDS);
jobControl.started(name(), this);
