Is it possible to run multiple instances of the sensu server on the same box? The intention is to have a "development" monitoring server to split the clients away from the production servers
Asked
Active
Viewed 762 times
1 Answers
2
yes you can as long as they all point to different places.. Like your config for production might look like
{
"rabbitmq": {
"host": "127.0.0.1",
"port": 5672,
"vhost": "/sensu",
"user": "sensu",
"password": "password"
},
"redis": {
"host": "localhost",
"port": 6379
},
"api": {
"host": "localhost",
"bind": "0.0.0.0",
"port": 4567
}
}
And for development
{
"rabbitmq": {
"host": "127.0.0.1",
"port": 5672,
"vhost": "/sensu-dev",
"user": "sensu-dev",
"password": "password"
},
"redis": {
"host": "localhost",
"port": 6380
},
"api": {
"host": "localhost",
"bind": "0.0.0.0",
"port": 4568
}
}
Pretty much you can run a single rabbit server with 2 vhosts and 2 user accounts. You'd need 2 redis servers running and 2 api servers.
![](../../users/profiles/23818.webp)
Mike
- 21,910
- 7
- 55
- 79
-
so far it works, except the api. can not get a second instance tp start up. do i need a second init script? – Riaan Feb 12 '15 at 13:18