lundi 27 juillet 2015

Configuring Redis with ElastiCache and ElasticBeanstalk on AWS

I have a Tomcat + Redis app running on Elastic Beanstalk. In my code, I create a Redis client using

pool = new JedisPool(new JedisPoolConfig(), "localhost");

Of course, in production, I can't use "localhost" I've read through Customizing the Beanstalk Environment and about getting autodiscovery to work with your code, but that seems to only apply to Memcached.

Has anyone gotten a Redis ElastiCache cluster configured with Beanstalk. Where do you get the DNS address to use instead of "localhost"?




Aucun commentaire:

Enregistrer un commentaire