directus icon indicating copy to clipboard operation
directus copied to clipboard

Directus does not work with twemproxy

Open bernardcosta opened this issue 3 years ago • 1 comments

Describe the Improvement

I am using twemproxy (which is a redis proxy) to be able to horizontally scale my caching architecture. The problem is that when I point CACHE_REDIS to the twemproxy server, directus returns this error:

[cache] MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.
MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.
   at Socket.<anonymous> (/directus/node_modules/ioredis/built/redis/event_handler.js:175:37)
   at Object.onceWrapper (node:events:628:26)
   at Socket.emit (node:events:513:28)
   at TCP.<anonymous> (node:net:757:14)

I am using directus version 9.18.1 so my first question is, has this been solved in more recent versions? If not is is possible to fix?

bernardcosta avatar Nov 27 '23 16:11 bernardcosta

9.18.1 came out over a year ago and a lot has changed since. There's a non-zero chance it'll behave very differently on the latest version 👍🏻

Closing this for now as v9 is deprecated and no longer supported

rijkvanzanten avatar Nov 27 '23 19:11 rijkvanzanten