killme2008 / xmemcached

High performance, easy to use multithreaded memcached client in java.

Home Page:http://fnil.net/xmemcached

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support multiple Clusters in AWS

Ramonrune opened this issue · 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!