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
demandé il y a 4 mois931 vues
1 réponse
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
répondu il y a 3 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions