{"action":"created","issue":{"url":"https://api.github.com/repos/sipwise/rtpengine/issues/158","labels_url":"https://api.github.com/repos/sipwise/rtpengine/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/sipwise/rtpengine/issues/158/comments","events_url":"https://api.github.com/repos/sipwise/rtpengine/issues/158/events","html_url":"https://github.com/sipwise/rtpengine/pull/158","id":107866996,"number":158,"title":"Specific REDIS read and write databases","user":{"login":"smititelu","id":11315022,"avatar_url":"https://avatars.githubusercontent.com/u/11315022?v=3","gravatar_id":"","url":"https://api.github.com/users/smititelu","html_url":"https://github.com/smititelu","followers_url":"https://api.github.com/users/smititelu/followers","following_url":"https://api.github.com/users/smititelu/following{/other_user}","gists_url":"https://api.github.com/users/smititelu/gists{/gist_id}","starred_url":"https://api.github.com/users/smititelu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smititelu/subscriptions","organizations_url":"https://api.github.com/users/smititelu/orgs","repos_url":"https://api.github.com/users/smititelu/repos","events_url":"https://api.github.com/users/smititelu/events{/privacy}","received_events_url":"https://api.github.com/users/smititelu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-23T07:48:21Z","updated_at":"2015-10-02T16:48:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sipwise/rtpengine/pulls/158","html_url":"https://github.com/sipwise/rtpengine/pull/158","diff_url":"https://github.com/sipwise/rtpengine/pull/158.diff","patch_url":"https://github.com/sipwise/rtpengine/pull/158.patch"},"body":"The REDIS_READ and REDIS_WRITE params have priority over REDIS. REDIS can substitute any or both of them.\r\n\r\nAdded a new \"role\" parameter which can help to force connecting only to a specific master/slave redis. If the connected redis role doesn't match the wanted role, the connection is retried and eventually fails. Using \"ANY_REDIS_ROLE\" one does not care about the role of the connected redis. This is needed for maintaining the current logic for REDIS, which connects only to master redises, while making possible a master-slave redis setup using REDIS_READ+REDIS_WRITE."},"comment":{"url":"https://api.github.com/repos/sipwise/rtpengine/issues/comments/145083991","html_url":"https://github.com/sipwise/rtpengine/pull/158#issuecomment-145083991","issue_url":"https://api.github.com/repos/sipwise/rtpengine/issues/158","id":145083991,"user":{"login":"rfuchs","id":3227418,"avatar_url":"https://avatars.githubusercontent.com/u/3227418?v=3","gravatar_id":"","url":"https://api.github.com/users/rfuchs","html_url":"https://github.com/rfuchs","followers_url":"https://api.github.com/users/rfuchs/followers","following_url":"https://api.github.com/users/rfuchs/following{/other_user}","gists_url":"https://api.github.com/users/rfuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/rfuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfuchs/subscriptions","organizations_url":"https://api.github.com/users/rfuchs/orgs","repos_url":"https://api.github.com/users/rfuchs/repos","events_url":"https://api.github.com/users/rfuchs/events{/privacy}","received_events_url":"https://api.github.com/users/rfuchs/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T16:48:43Z","updated_at":"2015-10-02T16:48:43Z","body":"If I read this correctly, this is an exclusive either/or scenario, meaning either a single redis DB (-z/-Z) is specified, or one read DB (-r/-R) and one write DB (-w/-W), but never both, correct? If so, any objections against retaining -r/-R for single redis DB mode, and use the same parameter for the read redis DB if -w/-W are also specified? This would make things a bit simpler and also keep the CLI compatible with old versions."}}