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

jodis如何保证proxy下线时获取的client可用?(ZK通知有延迟、感知proxy下线需要时间) #59

Open
flyfeifei66 opened this issue Sep 17, 2018 · 4 comments

Comments

@flyfeifei66
Copy link

ZK感知proxy下线需要几秒钟的时间,这时客户端获取client会不会不可用?

@Apache9
Copy link
Member

Apache9 commented Sep 17, 2018

会的,这个按照目前jodis的设计没法避免

@flyfeifei66
Copy link
Author

会的,这个按照目前jodis的设计没法避免

啥意思?借鉴dubbo等RPC的做法,都有failover重试的。

@Apache9
Copy link
Member

Apache9 commented Sep 18, 2018

Jodis就是在Jedis上简单包了一层,你之后请求出错什么的都直接是Jedis处理了,Jodis那个wrapper啥信息也拿不到。想支持failover重试的话得大改了

@liaozhenyi
Copy link

可以稍微改造一下proxy,下线前先摘ZK的临时节点,等待一会再退出,等待过程继续对外提供服务。

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

3 participants