xmemcached icon indicating copy to clipboard operation
xmemcached copied to clipboard

Support multiple Clusters in AWS

Open Ramonrune opened this issue 6 years ago • 0 comments

Does xmemcached support multiple clusters? Here in company we have two clusters in AWS, one cluster "1a", and other "1b". Each cluster have one node, but when i try to connect with each cluster, instead of connecting with two nodes i always get connected with just one node. I'am using Java 8 with memcached 2.4.5.

List<InetSocketAddress> list = new ArrayList<>();
list.add(new InetSocketAddress("1ahost", port));
list.add(new InetSocketAddress("1bhost", port));

AWSElasticCacheClientBuilder builder = new AWSElasticCacheClientBuilder(list);
builder.setSessionLocator(new KetamaMemcachedSessionLocator());
		
AWSElasticCacheClient build = builder.build();
	
System.out.println("\n\nCluster conf");
ClusterConfigration conf = build.getConfig();
System.out.println(conf.toString());

This code is printing just 1a. If xmemcached actually don't support 2 clusters, i think it would help (if possible and if useful). Thanks for this great lib!

Ramonrune avatar Dec 05 '18 19:12 Ramonrune