amazon-elasticache

SpringBoot Elasticache JedisMovedDataException: MOVED

不羁的心 提交于 2019-12-23 09:33:52
问题 Trying to use SpringBoot with SpringData with Elasticache: application.properties: spring.redis.host=XXXX-dev.XXXX.clusXXXcfg.XXX.cache.amazonaws.com spring.redis.port=6379 CacheConfiguration: @Configuration @PropertySource("classpath:application.properties") public class CacheConfiguration { @Value("${spring.redis.host}") private String redisHostName; @Bean public RedisTemplate<String, Company> redisTemplate() { RedisTemplate<String, Company> template = new RedisTemplate(); template

Connecting to ElastiCache (Outside VPC) instance from a EC2 inside VPC

可紊 提交于 2019-12-23 03:54:25
问题 We have large number of applications that uses one ElasticCache instance (Redis) which is located outside the VPC (a classic instance). Some Applications are located with in VPCs and Some are outside VPC (Classic instances). How can we connect all applications to the cache ? We have no issue connecting applications outside VPC to the cache as the cache is also located outside VPC There is a smaller number of applications inside VPCs that cannot connect to the cache. Thanks. 回答1: Its is not

Amazon Elasticache Redis cluster - Can't get Endpoint

别来无恙 提交于 2019-12-21 22:02:24
问题 I need to get the endpoint for a Redis cluster in Amazon Elasticache. The following code works for a Memcached cluster, but not for a Redis: import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.profile.ProfileCredentialsProvider; import com.amazonaws.regions.Regions; import com.amazonaws.services.elasticache.AmazonElastiCacheClient; import com.amazonaws.services.elasticache.model.DescribeCacheClustersRequest; import com.amazonaws.services.elasticache.model

Is it possible to stop nodes in AWS ElastiCache cluster

这一生的挚爱 提交于 2019-12-21 12:03:39
问题 I have an AWS account which is used for development. Because the developers are in one timezone, we switch off the resources after hours to conserve usage. Is it possible to temporarily switch off nodes in elasticache cluster? all i found in cli reference was 'delete cluster': http://docs.aws.amazon.com/cli/latest/reference/elasticache/index.html 回答1: At this time there is not a way to STOP and EMR cluster in the same sense you can with EC2 instances. The EMR cluster uses instance-store

How to connect to ElastiCache cluster using node.js

ぃ、小莉子 提交于 2019-12-21 07:22:27
问题 We know that ElastiCache is not recommended to be accessed outside Amazon instances, so we're trying below stuff inside Amazon EC2 instances only. We've got a ElastiCache Redis Cluster with 9 nodes. When we try to connect to it using normal redis implementation, it throws some Moved errors Have tried the retry strategy method as per @Miller. Have also tried RedisCluster with unstable and stable (poor man) implementations. None of these implementations are working. Any suggestions please? 回答1:

How to connect to ElastiCache cluster using node.js

强颜欢笑 提交于 2019-12-21 07:21:48
问题 We know that ElastiCache is not recommended to be accessed outside Amazon instances, so we're trying below stuff inside Amazon EC2 instances only. We've got a ElastiCache Redis Cluster with 9 nodes. When we try to connect to it using normal redis implementation, it throws some Moved errors Have tried the retry strategy method as per @Miller. Have also tried RedisCluster with unstable and stable (poor man) implementations. None of these implementations are working. Any suggestions please? 回答1:

Has Anyone Gotten Hibernate to Use Elasticache as its 2nd Level Cache?

不问归期 提交于 2019-12-21 04:44:08
问题 I found some threads saying this was doable, but did not find specific instructions or config information. I want to do this from Beanstalk as well: the app should get deployed to beanstalk with a config that points hibernate to the elasticache instance(s). 回答1: Yes, we were able to configure hibernate with 2nd level cache.. Not with beanstalk though.. This code should help you with it. <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show

Finding AWS ElastiCache endpoints with Java

跟風遠走 提交于 2019-12-19 02:59:09
问题 I'm trying to programmatically get a list of ElastiCache endpoints from my Java app using the latest Java AWS SDK. Things don't seem to be working - I can find a valid CacheCluster, but then when I list its nodes, it's empty. Here's my code: CacheCluster cc = it.next(); System.out.println("Cache node type: " + cc.getCacheNodeType()); System.out.println("Number cache nodes: " + cc.getNumCacheNodes()); List<CacheNode> listCache = cc.getCacheNodes(); System.out.println("List size: " + listCache

Can I use Amazon Elasticache on Heroku?

血红的双手。 提交于 2019-12-18 20:48:14
问题 I am currently using Heroku's Memcached in a Rails 3 app and would like to move over to Elasticache because the pricing is much more favorable. Is this possible? Is the configuration relatively straightforward? Is there anything that I should be aware of as regards the performance? 回答1: Note: While this does work, @btucker pointed out that it allows any Heroku-hosted app to access your ElastiCache cluster. I do not recommend using this solution. Yes you can. The setup is similar to the guide

Access ElasticCache - Jedis and spring

限于喜欢 提交于 2019-12-13 07:39:22
问题 We are just starting on AWS and have requirement to use AWS ElasticCache with Redis-jedis with Spring. Spring-data-redis 1.8.8.RELEASE aws-java-sdk 1.11.228 Spring 4.2.9.RELEASE jedis 2.9.0 I was able to connect and cache data to local redis with below code. I have tried making code changes as https://github.com/fishercoder1534/AmazonElastiCacheExample/tree/master/src/main/java , but not been successful. Would really appreciate some guidance and help with some sample code. AWS ElasticCache is