Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集群健康度 && 可用性检查... #10

Closed
wooparadog opened this issue Sep 11, 2015 · 1 comment
Closed

集群健康度 && 可用性检查... #10

wooparadog opened this issue Sep 11, 2015 · 1 comment

Comments

@wooparadog
Copy link

场景

主从同时挂掉, 要求 redis-cluster 依然部分可用.

对策

在 redis cluster 中打开: cluster-require-full-coverage yes

问题

默认配置下,且该 master 有数据,如果都挂了 cluster 会 down 掉。 如果上面的配置置为 no 就不会 down 了, 打到挂掉的 master 的请求都会失败。 尽管 redis 不会 down 掉了,但是 redis-cerberus 还是会返回 cluster down。 redis-cerberus 在代码里面直接 hardcode 了如果没有 16384 个 slot 直接返回 cluster down。

需求....

别 hardcode 了, 然后也支持下挂掉节点没有数据的时候依然能够 work.

@wooparadog
Copy link
Author

cc @maralla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants