927 questions
-1
votes
0
answers
55
views
Does AWS ElastiCache Redis Serverless support Celery as a Redis broker? Workers connect but never consume tasks [closed]
I’m attempting to use Amazon ElastiCache Serverless for Redis (Redis 7.1, cluster‑mode enabled) as the message broker for Celery 5.3+ running on Amazon ECS Fargate. Celery powers asynchronous ...
0
votes
1
answer
112
views
Java Springboot talking to Elasticache - API calls fail during ecs tasks auto-scaling
Java Springboot application talks to Aws Elasticache using Lettuce client running on ECS.
Springboot version 3.4.5
Lettuce version 6.8.1.RELEASE
Elasticache Valkey serverless using IAM authentication
...
0
votes
1
answer
28
views
AWS ElastiCache notification for key expiry in Cluster mode [closed]
I'm using AWS ElastiCache in cluster mode and enabled the notification to EX. In dev env I'm getting 1 notification for each unique key expiry but in staging getting 2 notification per key expiry any ...
1
vote
0
answers
156
views
How do I find out what's causing these valkey AWS Elasticache requests to timeout?
We have sporadic, but repeatable, timeout issues with valkey at higher loads that we haven't been able to diagnose the root cause of. We're using StackExchange.Redis on the old school .NET Framework 4....
1
vote
0
answers
38
views
Frequent RedisTimeoutException in .NET 9 running on Linux containers with Redis on AWS (v7.0.7)
I am frequently encountering RedisTimeoutException errors in my application. The application is built using .NET 9 and runs in Linux-based containers. Redis is hosted on AWS Elastic Cache with version ...
1
vote
1
answer
80
views
Java Redison tryLock vs getBucket performance
I am using global redis datastore, with two clusters Region-A and Region-B.
Each regional cluster has three redis nodes one primary and two read replicas.
I have my service deployed in two regions as ...
0
votes
1
answer
72
views
Why is my ASP.NET Core Web API not connecting to Elastic Cache Valkey
I am working on an ASP.NET Core Web API that is deployed to AWS. I am trying to integrate Elastic Cache using Valkey and working locally at the moment. This is my Program.cs:
using Amazon;
using ...
0
votes
0
answers
103
views
ERR Lua scripts without any input keys are not supported
When running the following lua script on a serverless instance of valkey on AWS I get the following error.
EVAL "return redis.call('SCAN', '0', 'MATCH', ARGV[1])" 0 "{123}:*"
ERR ...
1
vote
2
answers
722
views
Connecting to Elasticache Valkey Using IAM Role
tl;dr Working in Go, and had to write my own token signing method connect to Valkey Instance in Elasticache. Keep getting error: "WRONGPASS invalid username-password pair or user is disabled.&...
0
votes
0
answers
39
views
Lettuce: AWS Elasticache: JSON MSET behaviour
We are using Lettuce java client to connect to AWS Elasticache (Valkey engine, Serverless, version 8.0) from Java springboot application (JDK 17 & springboot version 3.2.5)
Below is the method ...
0
votes
0
answers
133
views
AWS Elasticache: LETTUCE - How to read from cache without providing a Key
We are using Lettuce java client to connect to AWS Elasticache (Valkey engine, Serverless, version 8.0) from Java springboot application (JDK 17 & springboot version 3.2.5)
We have User ...
0
votes
1
answer
165
views
Lettuce: AWS Elasticache: JSON MGET behaviour
We are using Lettuce java client to connect to AWS Elasticache (Valkey engine, Serverless, version 8.0) from Java springboot application (JDK 17 & springboot version 3.2.5)
Below is the method ...
0
votes
1
answer
235
views
JedisClusterOperationException Could not initialize cluster slots cache. When encryption mode is set to "required"
I have a spring app deployed to AWS Kubernetes, and an AWS elasticache with transit encryption mode set to required. When the java code below gets executed, it throws an exception
Java code:
...
0
votes
0
answers
539
views
What could be causing my Redis/Valkey/ElastiCache timeout error?
I'm using a Valkey ElastiCache with StackExchange.Redis on .NET. It's usually working but sometimes I'll get this message:
The message timed out in the backlog attempting to send because no connection ...
0
votes
0
answers
216
views
Why service update in 'Not-Applied' state for ElastiCache Redis cluster?
We have an ElastiCache classic with cluster mode disabled created in one of our account, there I observed a service update in 'Not-Applied' state. Due to that it shows warning in the Cache version ...
1
vote
0
answers
296
views
How do I create a correct signature for AWS Elasticache IAM authentication in C#?
I have been trying to authenticate with an Elasticache cluster using IAM authentication in .NET8 and failing with the following error:
Unhandled exception. StackExchange.Redis....
0
votes
0
answers
71
views
AWS Elasticache - PHP Memcached - Multiple Tab Log-out
Configuration
Our system has:
PHP 8.2
AWS Memcached library with OpenSSL
AWS Fargate ECS deployment
AWS Elasticache
Problem
The initial login for users appears to write and read from memcached. ...
0
votes
0
answers
152
views
How to restrict AWS ElastiCache default user with IAM authentication type
Background:
I created an ElastiCache replication group and use RBAC to control user access. Since our project has strict security requirements, I need to create an ElastiCache user and use IAM ...
0
votes
1
answer
115
views
AWS Elasticache: Lettuce client: Retry mechanism
I am using Lettuce (https://github.com/redis/lettuce) java client to read/write to AWS Elasticache. Below is the method to read from Cache by passing key.
public Object getJson(String key) {
...
2
votes
1
answer
3k
views
Is there a downtime when upgrading the AWS Elasticache cluster? [closed]
We are currently using Redis Engine 7.1 on our AWS elasticache cluster. We are looking to upgrade the cluster but we have no idea if there is any downtime involved in this? How long would the upgrade ...
-1
votes
1
answer
151
views
Using forward slash (`/`) in key of a RedisJSON object on Amazon Elasticache
We're using AWS Elasticache for Redis with engine 7.1. It has a different behaviour than our tests running on docker image: redis/redis-stack-server:7.2.0-v14.
Best shown through an example:
AWS ...
2
votes
2
answers
1k
views
How to delete keys matching pattern in AWS Elasticache Valkey
So, I have a Node.js Lambda that saves its response in an AWS Elasticache Valkey cache. All the keys follow the same format: getActivities:*. I'd like to clear all the keys matching this pattern.
I ...
0
votes
1
answer
1k
views
Java Springboot application not able to connect to AWS Elasticache Valkey Cache (Serverless)
Trying to connect to AWS Elasticache (valkey engine: serverless: version 8.0) from my Java springboot application.
JDK 17 & springboot version 3.2.5.
Using Lettuce client to connect to Valkey ...
2
votes
0
answers
2k
views
Access AWS Elasticache Valkey from Java springboot application
Created AWS Elasticache (ValKey) and trying to access it from my java(17) springboot application. Below are the few clients I came across, but not sure which is the best one?
Lettuce ("https://...
0
votes
2
answers
656
views
AWS ElastiCache in cluster mode has no Primary / Reader endpoints
I created a dev/test instance in AWS via GUI, waited for it to fully provision and set up but it does not have any endpoints
Querying it via aws elasticache describe-replication-groups only has ...
0
votes
1
answer
186
views
AWS ElastiCache SNS notifications Inactive
I configured my ElastiCache Redis replication group to send notifications to a SNS topic.
The SNS topic is encrypted with a custom KMS key.
But I'm not receiving any notification. Checking the Redis ...
1
vote
1
answer
76
views
Scanning 12M entries to fetch few records
We have few keys stored with pattern “server.overview.map:”. Now we want to get all records for the above pattern.
We are using SCAN command to do so. On production we have 12M entries and only 180 ...
0
votes
0
answers
60
views
Why is Jedis client slow to access data from Elasticache Redis
I have a java springboot application running in an Amazion ECS container. This application is reading data from Elasticache for Redis OSS using Jedis library. The Elasticache Redis replication group ...
0
votes
2
answers
647
views
Using Single-node redis cluster instead of single instance redis
Does running Redis in cluster mode on a single-node setup degrade performance or increases costs compared to a single-instance Redis?
From the docs
This means that in a Redis Cluster with N master ...
0
votes
1
answer
379
views
How to restrict AWS Serverless ElastiCache access by the default user
I am using AWS Serverless ElastiCache (Redis) with Password authentication. I have created a new user with a password and attached specific access permissions, but the default user (default) seems to ...
0
votes
3
answers
254
views
Connect redis nodejs with Elasticache aws connect fail
I had a problem connecting to aws elasticache, I found some solutions but couldn't solve the problem. Hope anyone can help.
const redis = createClient({
socket: {
host: process.env.REDIS_HOST,
...
0
votes
1
answer
197
views
PHP session handler with Elasticache encryption in transit - timeouts
I'm trying to setup Memcached (or Redis) as a PHP session handler on an EC2 instance, and have created an ElastiCache Memcached "serverless" instance which forces encryption in-transit to On....
0
votes
0
answers
261
views
AWS ElastiCache in Node.js
I am trying to implement AWS ElastiCache in AWS Lambda function. Here's my code
const { createClient } = require('redis');
const handler = async (event, context) => {
const url = "...
0
votes
2
answers
74
views
env variable not loading in properties file
I am trying to add a conditional yaml config file in a properties file but it's not able to read the env variable
hibernate.cache.redisson.config=redisson-${REDIS_MODE}.yaml
it is giving error
...
0
votes
2
answers
62
views
Enable single server and cluster mode both for ElastiCache
I am trying to conifgure redisson.yaml something like below
redis:
mode: ${REDIS_MODE:single} # Default to single mode if REDIS_MODE is not set
# Configuration for single Redis server
...
1
vote
0
answers
47
views
Why is Laravel/PHPRedis issuing extra redis commands
I have a serverless redis-based Elasticache instance. I've configured Laravel to use redis as it's session driver and configured the pointed the redis connection at my Elasticache instance. I'm ...
0
votes
0
answers
839
views
Redis Insight cannot connect to a database through SSH tunnel, while redis-cli works fine
I would like to connect to an ElastiCache cluster (running Redis) with Redis Insight from my Mac.
I am able to connect using redis-cli, but with Redis Insight I get the following error: 'The ...
1
vote
1
answer
1k
views
Unable to Create Redis OSS Cache in AWS due to VPC Subnet Issue
I'm trying to create a Redis OSS cache using Amazon ElastiCache in AWS, but I'm getting "Customer account VPC should have a minimum of 3 default subnets." I have set up my VPC with multiple ...
0
votes
1
answer
153
views
Error Code 137 while using Elasticache Redis with ECS Fargate
I am running containers on ECS Fargate and everything is working as expected but there is one issue. When I have this redis code running in my server side, the server container is failing to reach a ...
1
vote
0
answers
745
views
AWS Elasticache timeout error even with good configuration
The backend of my application is hosted with Elastic Beanstalk, everything works great. I recently decided to configure a cache by creating an ElastiCache (Redis) cluster and I have a big problem ...
1
vote
0
answers
133
views
Is it possible to create AWS Elasticache Redis cluster in highly available configuration with durable data
I need AWS Elasticache Redis cluster with durable data. Specifically all data written to Redis should be safe in case of one node failure.
For those who answer "You do not need it, Redis is for ...
0
votes
1
answer
605
views
.NET Amazon Elasticache - Redis cluster random timeout errors
Recently we introduced storing user session data on Amazon's ElastiCache through Redis Cache. I was a little worried of the speed and latency issues of this solution as before the session data was ...
3
votes
1
answer
194
views
aws Redis Connection Fails over authentication via NodeJS
I'm trying to connect aws Redis Cache via NodeJS, however, it fails with the below error. But I'm able to successfully connect via redis-cli.
Command: node app.js
node version: v16.14.0
aws redis ...
-1
votes
1
answer
378
views
How to Enable Cost-Effective Internet Access for AWS Lambda in a VPC?
I have an AWS Lambda function written in Go that needs to connect to an RDS and an ElastiCache instance, both of which are in a VPC. To achieve this, I placed the Lambda function in an allowed ...
0
votes
2
answers
2k
views
AWS ElastiCache Redis Network Limits
I am little confused when reading the docs about ElastiCache network limits. Each node type has it's own bandwidth defined in Gbps. There are two metrics counting network traffic for Redis, these ...
0
votes
0
answers
349
views
Slow connection between elasticache and ECS
I have an ECS service deployed; a docker image which does some calculation based on some data in a Elasticache cluster (redis)
But response time seems to be long, compared to the same service tested ...
0
votes
0
answers
111
views
Create elasticache cluster from snapshot
I have an Elasticache cluster and a snapshot (rdb file) on S3, the bucket and also elasticache are deployed using terraform code.
but it fails everytime with this error :
Download of snapshot arn:aws:...
0
votes
1
answer
585
views
Quarkus Redis Client is creating huge amount of connections
In my quarkus redis client, I am creating way more connections than my connection pool should allow. I am not sure why this is happening. My connection pool has maxPoolSize = 6 maxPoolWaiting = 24 but ...
0
votes
0
answers
25
views
Redis Hierarchical data storage
I have a data in below format
Country (Root Object)
State
City
Each Country, State and City has an Id assigned to it.
Country has CountryID
State has StatueID
City has CityID
API which is connected ...
0
votes
1
answer
227
views
How can I properly delete a cache key on a Ruby on Rails project using memcached on multiple nodes?
My ROR project is currently utilizing memcached (3 nodes) on AWS elasticached to circumvent reading from the database. When trying to delete the key, it seems like Rails or Memcached is often only ...