BackpressureRegulator(HazelcastProperties properties, ILogger logger) { this.enabled = properties.getBoolean(BACKPRESSURE_ENABLED); this.disabled = !enabled; this.partitionCount = properties.getInteger(PARTITION_COUNT); this.syncWindow = getSyncWindow(properties); this.syncCountdown.set(syncWindow); this.maxConcurrentInvocations = getMaxConcurrentInvocations(properties); this.backoffTimeoutMs = getBackoffTimeoutMs(properties); if (enabled) { logger.info("Backpressure is enabled" + ", maxConcurrentInvocations:" + maxConcurrentInvocations + ", syncWindow: " + syncWindow); int backupTimeoutMillis = properties.getInteger(OPERATION_BACKUP_TIMEOUT_MILLIS); if (backupTimeoutMillis < MINUTES.toMillis(1)) { logger.warning( format("Back pressure is enabled, but '%s' is too small. ", OPERATION_BACKUP_TIMEOUT_MILLIS.getName())); } } else { logger.info("Backpressure is disabled"); } }
BackpressureRegulator(HazelcastProperties properties, ILogger logger) { this.enabled = properties.getBoolean(BACKPRESSURE_ENABLED); this.disabled = !enabled; this.partitionCount = properties.getInteger(PARTITION_COUNT); this.syncWindow = getSyncWindow(properties); this.syncCountdown.set(syncWindow); this.maxConcurrentInvocations = getMaxConcurrentInvocations(properties); this.backoffTimeoutMs = getBackoffTimeoutMs(properties); if (enabled) { logger.info("Backpressure is enabled" + ", maxConcurrentInvocations:" + maxConcurrentInvocations + ", syncWindow: " + syncWindow); int backupTimeoutMillis = properties.getInteger(OPERATION_BACKUP_TIMEOUT_MILLIS); if (backupTimeoutMillis < MINUTES.toMillis(1)) { logger.warning( format("Back pressure is enabled, but '%s' is too small. ", OPERATION_BACKUP_TIMEOUT_MILLIS.getName())); } } else { logger.info("Backpressure is disabled"); } }