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?

1개 답변
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
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인