Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
so, 其实感觉有点解决别的公司不存在的问题...
我厂有两个机房, 一个机房的内网 IP 比如是
10.10.x.x
, 另一个是10.11.x.x
某个项目在两个机房都部署, 需要访问各自机房的 redis (只读, 写请求不多) 以减少读请求延迟
于是, 需要在各机房分别建立一组从节点, 然后要求 cerberus 连自己所在的机房里的从节点, 因此就有了这么一个功能 (以及选项)