{"action":"created","issue":{"url":"https://api.github.com/repos/github/hubot/issues/878","labels_url":"https://api.github.com/repos/github/hubot/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/github/hubot/issues/878/comments","events_url":"https://api.github.com/repos/github/hubot/issues/878/events","html_url":"https://github.com/github/hubot/issues/878","id":60761138,"number":878,"title":"Multiple Hubot instances on same Redis backend, but different prefix?","user":{"login":"victorhooi","id":243499,"avatar_url":"https://avatars.githubusercontent.com/u/243499?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhooi","html_url":"https://github.com/victorhooi","followers_url":"https://api.github.com/users/victorhooi/followers","following_url":"https://api.github.com/users/victorhooi/following{/other_user}","gists_url":"https://api.github.com/users/victorhooi/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhooi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhooi/subscriptions","organizations_url":"https://api.github.com/users/victorhooi/orgs","repos_url":"https://api.github.com/users/victorhooi/repos","events_url":"https://api.github.com/users/victorhooi/events{/privacy}","received_events_url":"https://api.github.com/users/victorhooi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T02:20:34Z","updated_at":"2015-03-16T17:38:30Z","closed_at":null,"body":"At the top of `redis-brain.coffee`, it says:\r\n```\r\n# Configuration:\r\n#   REDISTOGO_URL or REDISCLOUD_URL or BOXEN_REDIS_URL or REDIS_URL.\r\n#   URL format: redis://<host>:<port>[/<brain_prefix>]\r\n#   If not provided, '<brain_prefix>' will default to 'hubot'.\r\n```\r\n\r\nIs it safe to run multiple Hubot instances, backed by the safe Redis backend, but using a different `brain_prefix`?\r\n\r\n(In other issues e.g. #292 #453 it mentions not being safe to use a single Redis backend - however, I'm not sure if this was before the `brain_prefix` thing was introduced?)\r\n\r\nAlso - as an aside - a lot of configuration (e.g. how to set the REDIS port) only seem to be documented in the actual code itself, in comments - but not in actual documentation. Is there a reason for this?\r\n\r\nWould you be amenable to PRs to add some more documentation around them?"},"comment":{"url":"https://api.github.com/repos/github/hubot/issues/comments/81831459","html_url":"https://github.com/github/hubot/issues/878#issuecomment-81831459","issue_url":"https://api.github.com/repos/github/hubot/issues/878","id":81831459,"user":{"login":"technicalpickles","id":159,"avatar_url":"https://avatars.githubusercontent.com/u/159?v=3","gravatar_id":"","url":"https://api.github.com/users/technicalpickles","html_url":"https://github.com/technicalpickles","followers_url":"https://api.github.com/users/technicalpickles/followers","following_url":"https://api.github.com/users/technicalpickles/following{/other_user}","gists_url":"https://api.github.com/users/technicalpickles/gists{/gist_id}","starred_url":"https://api.github.com/users/technicalpickles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicalpickles/subscriptions","organizations_url":"https://api.github.com/users/technicalpickles/orgs","repos_url":"https://api.github.com/users/technicalpickles/repos","events_url":"https://api.github.com/users/technicalpickles/events{/privacy}","received_events_url":"https://api.github.com/users/technicalpickles/received_events","type":"User","site_admin":true},"created_at":"2015-03-16T17:38:30Z","updated_at":"2015-03-16T17:38:30Z","body":"> (In other issues e.g. #292 #453 it mentions not being safe to use a single Redis backend - however, I'm not sure if this was before the brain_prefix thing was introduced?)\r\n\r\n@victorhooi Those issues are both before brain_prefix was introduced. It should be okay to have two hubots using the same redis server, with different prefixes by setting different REDIS_URLs should be okay.\r\n\r\n> a lot of configuration (e.g. how to set the REDIS port) only seem to be documented in the actual code itself, in comments - but not in actual documentation. Is there a reason for this?\r\n\r\nNot that I can think of. I think of REDIS_URL as the canonical way to specify configuration, as it's flexible enough to specify basically everything, including port. https://github.com/hubot-scripts/hubot-redis-brain does talk about what can be set using REDIS_URL.\r\n\r\n> Would you be amenable to PRs to add some more documentation around them?\r\n\r\nYep! Just keep in mind there is both docs here and in https://github.com/hubot-scripts/hubot-redis-brain around this."}}