strapi-community / strapi-plugin-redis

Plugin used to centralize management of Redis connections in Strapi
MIT License
41 stars 5 forks source link

Sentinel + Haproxy #24

Closed X-Newbie closed 1 month ago

X-Newbie commented 1 month ago

Hi,

I have 1 sentinel ip, 1 haproxy master ip, 1 haproxy replica ip. I have tried specifying the sentinel ip address. I tried haproxy master + haproxy replica. I tried specifying haproxy master + haproxy replica + sentinel, but none of the options could work. I always get error(All sentinels are unreachable. Retrying from scratch after 10ms. Last error: Connection is closed.) I was using Redis Standalone before and everything worked. Can you help me how to configure caching to work?

X-Newbie commented 1 month ago

Example of my config: module.exports = { redis: { config: { connections: { default: { connection: { sentinels: [ { host: 'localhost', port: 26379 }, // sentinel ], name: 'rendomName', }, settings: { debug: false, }, }, }, }, }, };

module.exports = { redis: { config: { connections: { default: { connection: { sentinels: [ { host: 'localhost', port: 6700 }, // haproxy { host: 'localhost', port: 6701 }, // haproxy ], name: 'rendomName', }, settings: { debug: false, }, }, }, }, }, };

module.exports = { redis: { config: { connections: { default: { connection: { sentinels: [ { host: 'localhost', port: 6700 }, // haproxy { host: 'localhost', port: 6701 }, // haproxy { host: 'localhost', port: 26379 }, // sentinel ], name: 'rendomName', }, settings: { debug: false, }, }, }, }, }, };

derrickmehaffy commented 1 month ago

I doubt this is related to my plugin, have you test this with something like redis insights?

derrickmehaffy commented 1 month ago

Closing as no response