mod-mongodb-retention-scheduler
Module used for Scheduler to store retention infos about services and hosts to a mongodb database
shinken install mod-mongodb-retention-scheduler
Maintainer | |
---|---|
Version | 0.1.0 last updated 10y ago |
Keywords | mod-mongodb-retention-scheduler , module , scheduler , mongodb , mongo , database , retention |
Repository | https://github.com/andyxning/mod-mongodb-retention-scheduler |
Homepage | http://github.com/andyxning/mod-mongodb-retention-scheduler |
Starred by (0) |
mod-mongodb-retention-scheduler
This module is used by Scheduler daemon to store retention infos
associated with services or hosts to a mongoDB database.
Basis
Because the update retention file operation is in the scheduler's main loop, in order to not delay other operations we make a assumption that if some thing error has happened, then we think that the update operation this time has failed, we just stop this update operation, log it and wait until next one.
SetUp
Note: Replica set MongoDB instances is the recommended way to work with.
Replica Set
MongoDB Replica Set with three instances
- host1:port1
- host2:port2
- host3:port3
MongoDB Replica Set configuration
Configuration in mongodb-retention-scheduler.cfg
module_name mongodb-retention-scheduler
module_type mongodb_retention_scheduler
high_availability true
replica_set host1:port1, host2:port2, host3:port3
url_options w=1&wtimeoutMS=3000&journal=true&readPreference=secondary&replicaSet=shinken&connectTimeoutMS=3000
database shinken_retention_scheduler
username shinken__retention_scheduler
password shinken_retention_scheduler
Stand alone
MongoDB Stand alone
- host:port
Configuration in mongodb-retention-scheduler.cfg
module_name mongodb-retention-scheduler
module_type mongodb_retention_scheduler
high_availability false
stand_alone host:port
url_options w=1&wtimeoutMS=3000&journal=true&readPreference=secondary&replicaSet=shinken&connectTimeoutMS=3000
database shinken_retention_scheduler
username shinken_retention_scheduler
password shinken_retention_scheduler