Configure redis host?

Suppose I have two hosts, running rabbitmq as a cluster for HA.

Suppose on each of those hosts I also have the sensu-server running, and sensu-api.

Presumably those instances of server and api need to reach the same Redis host, since redis doesn’t cluster as easily. But it appears that server and api both assume that redis is running only on localhost.

Is it okay to run multiple servers and apis with independent redis instances? Or am I just catching a configuration option that’s missing?

Mojo

···

Morris Jones

Monrovia, CA

http://mojo.whiteoaks.com

(anyone please correct me if this is the wrong answer or the correct answer to the wrong question)

If you don’t specify a redis configuration on config.json it will try to connect using the defaults which usually are host=localhost, port=6379, db=0. Here’s an example of passing the configs:

···

On Tue, Feb 18, 2014 at 9:34 PM, Mojo mojo.la@gmail.com wrote:

Suppose I have two hosts, running rabbitmq as a cluster for HA.

Suppose on each of those hosts I also have the sensu-server running, and sensu-api.

Presumably those instances of server and api need to reach the same Redis host, since redis doesn’t cluster as easily. But it appears that server and api both assume that redis is running only on localhost.

Is it okay to run multiple servers and apis with independent redis instances? Or am I just catching a configuration option that’s missing?

Mojo

Morris Jones

Monrovia, CA

http://mojo.whiteoaks.com


André Dieb Martins

D’oh! Yes thank you André. And the puppet parameters are right there in front of me: redis_host redis_port.

Cheers,

Mojo

···

On Tue, Feb 18, 2014 at 4:50 PM, André Dieb andre.dieb@gmail.com wrote:

(anyone please correct me if this is the wrong answer or the correct answer to the wrong question)

If you don’t specify a redis configuration on config.json it will try to connect using the defaults which usually are host=localhost, port=6379, db=0. Here’s an example of passing the configs:

Redis part of config.json

{

“redis”: {

“host”: “localhost”,

“port”: 6001

}

}

On Tue, Feb 18, 2014 at 9:34 PM, Mojo mojo.la@gmail.com wrote:

Suppose I have two hosts, running rabbitmq as a cluster for HA.

Suppose on each of those hosts I also have the sensu-server running, and sensu-api.

Presumably those instances of server and api need to reach the same Redis host, since redis doesn’t cluster as easily. But it appears that server and api both assume that redis is running only on localhost.

Is it okay to run multiple servers and apis with independent redis instances? Or am I just catching a configuration option that’s missing?

Mojo

Morris Jones

Monrovia, CA

http://mojo.whiteoaks.com

André Dieb Martins