You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ,
I am using redis-sentinel with three sentinel server and 8 slave with one master.
Setup
8 machine each has redis 2.8.14 , out of these 3 machine having sentinel. They are monitoring a single master at machine 1.
Here is the piece of code i am using to get connected to a slaveClient
var endpoints = [
{host: 'host1', port: 26739},
{host:'host2',port:26739},
{host:'host3',port:26739}
];
var opts = {}; // Standard node_redis client options
var masterName = 'mymaster';
var redisClient = sentinel.createClient(endpoints, masterName, opts);
var slaveClient = sentinel.createClient(endpoints, masterName, {role: 'slave'});
slaveClient.on("connect", function () {
console.log("hey")
console.log(redisClient.server_info)
});
slaveClient.on("error", function (err) {
console.log("err",err )
});
Most of the time it prints the "hey" and server_info but few times it neither print the "hey" nor server_info infact the entire node process hangs without printing any error.
Is there any thing i am doing wrong ?
The text was updated successfully, but these errors were encountered:
Hi ,
I am using redis-sentinel with three sentinel server and 8 slave with one master.
Setup
8 machine each has redis 2.8.14 , out of these 3 machine having sentinel. They are monitoring a single master at machine 1.
Here is the piece of code i am using to get connected to a slaveClient
Most of the time it prints the "hey" and server_info but few times it neither print the "hey" nor server_info infact the entire node process hangs without printing any error.
Is there any thing i am doing wrong ?
The text was updated successfully, but these errors were encountered: