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

请问如果redis出现故障,怎么保证数据的可用性? #1

Open
lijinhuan opened this issue Oct 19, 2016 · 2 comments
Open

Comments

@lijinhuan
Copy link

lijinhuan commented Oct 19, 2016

估计项目应该用在有米和酷狗了,是否发生过缓存故障的问题,根据以往经验,redis还是会偶尔出现超时,获取不到数据等问题,而且这样子是否也存在存储浪费的问题

@liukelin
Copy link
Owner

数据没有重复同步到redis,我认为每条数据都有必要缓存,也不算存在浪费。

@liukelin
Copy link
Owner

“redis还是会偶尔出现超时” 。我还是认为,并发大出现的概率才多, 尽量多做些节点减少单节点压力。
“是否发生过缓存故障的问题”。 最担心的还是节点挂掉的问题,这类问题在常见的redis集群中有比较好的方案(基本都是设置从库的角色然后切换替换),在这个案例中,是自己使用hash作为数据分布的,那就可以自己再做一层寻址的算法策略。

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