Closed X-Newbie closed 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, }, }, }, }, }, };
I doubt this is related to my plugin, have you test this with something like redis insights?
Closing as no response
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?