[grid] Using a more conservative execution period for session request timeout
@@ -122,8 +122,9 @@ public LocalNewSessionQueue(
this.queue = new ConcurrentLinkedDeque<>();
this.contexts = new ConcurrentHashMap<>();
- // if retryPeriod is 0, we will schedule timeout checks every second
- long period = this.requestTimeout.isZero() ? 1000 : this.requestTimeout.toMillis();
+ // if retryPeriod is 0, we will schedule timeout checks every 15 seconds
+ // there is no need to run this more often
+ long period = retryPeriod.isZero() ? 15000 : retryPeriod.toMillis();
service.scheduleAtFixedRate(
GuardedRunnable.guard(this::timeoutSessions),
retryPeriod.toMillis(),
