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
gefragt vor 4 Monaten931 Aufrufe
1 Antwort
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
beantwortet vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen