directus
directus copied to clipboard
Directus does not work with twemproxy
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?
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