PoolOfflineException:[host = Host [hostname = UNKNOWN,ipAddress = UNKNOWN,port = 0,机架:

时间:2019-03-28 13:54:37

标签: java

当我尝试使用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();

0 个答案:

没有答案