Adrien Aubel
Adrien Aubel

Reputation: 692

AWS Elasticache SDK doesn't work for Redis ElastiCache

I want to dynamically configure my API servers depending on the name of the "cluster".

So I'm using AmazonElastiCacheClient to discover the clusters name and need to extract the endpoint of the one that has a specific name.

The problem is that I can find it but there doesn't seem to be a way to get an endpoint.

foundCluster.getCacheNodes() returns an empty list, even if there is 1 Redis instance appearing in the AWS console, in-sync and running.

foundCluster.getConfigurationEndpoint() returns null.

Any idea?

Upvotes: 1

Views: 2212

Answers (2)

Ravindra
Ravindra

Reputation: 353

Try adding

DescribeCacheClustersRequest.setShowCacheNodeInfo(true);

Upvotes: 3

Sony Kadavan
Sony Kadavan

Reputation: 4052

I am making a guess:

AWS Elastic Cache with redis currenlty supports only single node clusers (so no auto discovery etc). I am not sure this is due this. Memcached based cluster is different.

"At this time, ElastiCache supports single-node Redis cache clusters." http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheNode.Redis.html

Upvotes: 0

Related Questions