Hi,
I am getting an error ( Code 11: Failed to connect to host(s): 172.xx.x.xx 3000 Error Code 11: java.net.SocketTimeoutException: connect timed out
) while trying to connect with Aerospike Cluster in Remote Server using Java Client. But I’m able to connect to the cluster’s AMC console. Is there any config issue?
My Java Client Config:-
ClientPolicy clientPolicy = new ClientPolicy();
clientPolicy.failIfNotConnected = true;
clientPolicy.readPolicyDefault.timeout = 1000;
clientPolicy.readPolicyDefault.maxRetries = 3;
clientPolicy.writePolicyDefault.timeout = 1000;
clientPolicy.writePolicyDefault.maxRetries = 3;
return new AerospikeClient(clientPolicy, host, port);