amazon-elasticache

Connection to Redis (ElastiCache) from ElasticBeanstalk EC2 Fails

主宰稳场 提交于 2021-01-29 04:44:32
问题 We're using ElasticBeanstalk to setup a few Node.js environments. For now, we are using Redis as our session store, which is set up in ElastiCache. When I ssh into the EC2 instance, and netcat the Redis store, I can confirm that the network allows a connection over port 6379: [ec2-user@<redacted>]$ nc -v <redacted>.usw2.cache.amazonaws.com 6379 Connection to <redacted>.usw2.cache.amazonaws.com 6379 port [tcp/*] succeeded! EC2 Security Group's Outbound Policy: 0.0.0.0/0 Redis Security Group's

Connection to Redis (ElastiCache) from ElasticBeanstalk EC2 Fails

空扰寡人 提交于 2021-01-29 04:42:02
问题 We're using ElasticBeanstalk to setup a few Node.js environments. For now, we are using Redis as our session store, which is set up in ElastiCache. When I ssh into the EC2 instance, and netcat the Redis store, I can confirm that the network allows a connection over port 6379: [ec2-user@<redacted>]$ nc -v <redacted>.usw2.cache.amazonaws.com 6379 Connection to <redacted>.usw2.cache.amazonaws.com 6379 port [tcp/*] succeeded! EC2 Security Group's Outbound Policy: 0.0.0.0/0 Redis Security Group's

Airflow CROSSSLOT Keys in request don't hash to the same slot error using AWS ElastiCache

穿精又带淫゛_ 提交于 2021-01-27 19:56:07
问题 I am running apache-airflow 1.8.1 on AWS ECS and I have an AWS ElastiCache cluster (redis 3.2.4) running 2 shards / 2 nodes with multi-AZ enabled (clustered redis engine). I've verified that airflow can access the host/port of the cluster without any problem. Here's the logs: Thu Jul 20 01:39:21 UTC 2017 - Checking for redis (endpoint: redis://xxxxxx.xxxxxx.clustercfg.usw2.cache.amazonaws.com:6379) connectivity Thu Jul 20 01:39:21 UTC 2017 - Connected to redis (endpoint: redis://xxxxxx.xxxxxx

Atomic increment with Spring Data for AWS ElastiCache (Redis)

不问归期 提交于 2020-03-25 19:16:07
问题 We have multiple instances of the same application deployed behind an ELB (Load Balancer). Whenever a certain job is done, we count some elements and then want to increment a counter's value. We use ElastiCache to hold these metrics in memory. We have set it up as a Cluster of Redis instances. I'm having trouble understanding how to properly interact with ElastiCache so that the counter never misses any increment (i.e. an atomic operation). I know INCRBY seems to be the way to go, but I'm not

What is distributed Atomic lock in caches drivers?

僤鯓⒐⒋嵵緔 提交于 2020-02-25 13:42:07
问题 I just want to know what is distributed Atomic lock means in caches drivers? 回答1: Distributed locks are well documented, in multiple sources. The atomic attribute refers to the indivisible test-and-set that should be part of the lock request. Otherwise, two contenders may test at the same time, and then both set and walk away thinking they got exclusivity on the resource. Since it is a must, you often find the term simply as distributed lock . Now, some sources: Antirez (Redis creator)

Redis - any way to trigger an event when a value is no longer being actively written to?

此生再无相见时 提交于 2020-01-25 08:55:06
问题 I have a use case where I'm streaming and processing live data into an Elasticache Redis cluster. In essence, I want to kick off an event when all events of a certain type have completed (i.e. the size of a value is no longer growing over the course of 60 seconds). For example: foo [event1] foo [event1, event2] foo [event1, event2] foo [event1, event2] -> triggers some event if this key/value is constant for 60 seconds. Is this at all possible? 回答1: I would suggest that as part of all

C++ API or Library for Amazon ElastiCache

天大地大妈咪最大 提交于 2020-01-15 07:45:18
问题 I am in the process of deploying a distributed application on Amazon Cloud. I will like to interface two separate modules together using Amazon ElastiCache (particularly ElastiCache for Redis). Data Flow: ModuleA --> ElastiCache --> ModuleB ModuleA is written in C++, while ModuleB is written in JAVA. ElastiCache has a JAVA SDK that ModuleB can use to read data (for this example) out from the cache. The challenge I am having is that, there isn't a C++ SDK for ElastiCache (which ModuleA may use

C++ API or Library for Amazon ElastiCache

梦想与她 提交于 2020-01-15 07:42:13
问题 I am in the process of deploying a distributed application on Amazon Cloud. I will like to interface two separate modules together using Amazon ElastiCache (particularly ElastiCache for Redis). Data Flow: ModuleA --> ElastiCache --> ModuleB ModuleA is written in C++, while ModuleB is written in JAVA. ElastiCache has a JAVA SDK that ModuleB can use to read data (for this example) out from the cache. The challenge I am having is that, there isn't a C++ SDK for ElastiCache (which ModuleA may use

Cannot connect Redis Cluster in Elasticache to PHP using phpredis library

三世轮回 提交于 2019-12-25 08:49:45
问题 I am able to connect to redis cluster in elasticache with ec2 instance (given in aws documentation) and be able to add and get keys, values. But when i try to connect through phpredis on same ec2 instance, I'm getting no error and also no data. Please Help me with this. There's not much info on the internet for this specific problem. I am able to connect to redis running on the same ec2 instance but not to elasticache. If i could get some example on how to except for changing the host

How to monitor Redis as a queue engine using cli similar to beanstalkd?

半腔热情 提交于 2019-12-24 00:38:46
问题 Background We used Laravel Queues on top of beanstalkd on two ec2 instances (behind a load balancer). As the system scaled we decided to use redis instead of beanstalkd, and host it on an AWS elastic cache instance (with a cluster of a master node and two replicas). With beanstalkd, I used beanstalk utilities to monitor the health of the queue; for example if the queue was getting clogged, I could easily see that by running a command like this: ./beanstalk-queue-stats.rb localhost:11300 Which