Trouble with Integration Amazon ElastiCache: ERR SELECT is not allowed in cluster mode

0

Hi, I'm currently integrating Amazon ElastiCache (Redis cache) into my Laravel application using a serverless cache configuration. In Laravel, I'm using the Predis package. Everything runs smoothly on my local machine with local Redis. However, when attempting to add Amazon ElastiCache as a cache driver, I encounter the following error: SELECT failed: ERR SELECT is not allowed in cluster mode [tls://mycachename.cache.amazonaws.com:6379]. I've tried various solutions, but none seem to work. Can someone assist me in resolving this issue?

Emon
asked 3 months ago838 views
1 Answer
1

Amazon ElastiCache Serverless only supports Redis Cluster Mode Enabled (CME). When running in cluster mode, Redis doesn't support the SELECT command, which your Predis client is trying to use. This probably happens because Predis assumes Redis is running in non-clustered mode (Cluster Mode Disabled or CMD). Please see the configuration guide for Predis and try to configure Predis to use Redis in Cluster Mode - see the docs here and this StackOverflow question

AWS
maayanh
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions