当我尝试使用dyno客户端连接到dynomite群集时,使池脱机异常
已尝试增加每个主机的最大连接数,但运气并不好。我正在运行带有3个机架的6节点群集。而且我要求支持35K ops / sec。最初,当我继续增加负载时,它会抛出pooloffline异常,因此工作正常
dynoClusterClient = new DynoJedisClient.Builder()
.withApplicationName(clientMetrics)
.withDynomiteClusterName(clusterMetrics)
.withCPConfig(new ArchaiusConnectionPoolConfiguration(clientMetrics)
.withTokenSupplier(TokenMapSupplierHelper.toTokenMapSupplier(nodes))
.setMaxConnsPerHost(maxConnectionsMetrics)
.setConnectTimeout(maxTimeOutMetrics)
.setRetryPolicyFactory(new RetryNTimes.RetryFactory(retryCountMetrics,true))
.setMaxTimeoutWhenExhausted(maxTimeOutExhaustedMetrics)
)
.withHostSupplier(TokenMapSupplierHelper.toHostSupplier(nodes))
.build();