MongoDB brain evo for Hubot. Supports multiple configuration options. Works with latest Mongo, Rocket.Chat, Hubot. Supports MongoLab and MongoHQ on heroku for Mongo URLs. Supports custom collection and db name from env vars.
( VAR || VAR2 ... || default_value_if_not_set # More info)
Database URL:
MONGODB_URL
|| MONGOLAB_URI
|| MONGOHQ_URL
|| 'mongodb://localhost:27017/hubot'
DB Name:
MONGODB_DB_NAME
|| <VAL_EXTRACTED_FROM_MONGODB_URL_PATH>
|| hubot
Collection name:
MONGODB_BRAIN_COLLECTION
|| brain
Save Interval:
MONGODB_SAVE_INTERVAL
|| 10
# save interval, in seconds
Hubot's default redis-brain
saves all data into one large blob (It's not using Redis as KVS) and write it every 20 seconds. So it exceeds maxmemory
of Redis.
- mongodb
Add hubot-mongodb-brain-evo
to your EXTERNAL_SCRIPTS
variable
OR
[ "hubot-mongodb-brain-evo" ]
% heroku addons:create mongolab