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

有没有高可用/容错的支持? #12

Closed
zt3862266 opened this issue May 10, 2018 · 3 comments
Closed

有没有高可用/容错的支持? #12

zt3862266 opened this issue May 10, 2018 · 3 comments

Comments

@zt3862266
Copy link

举例来说:
每个应用可维护一个数据库 slave 列表,当某个从库宕机,会自动迁移到别的从库,当该从库恢复,可自动恢复到列表中?

@caibirdme
Copy link
Contributor

不支持,gendry只是一个帮你构建sql语句和读取DB返回数据的工具,manager用来实例化单个连接池。但是对于你的需求,首先我觉得这个功能应该由统一的DBProxy来完成而不是客户端,如果确实要在客户端上完成,那就需要你自己维护对于不同DB实例的连接池

@zt3862266
Copy link
Author

DBProxy 在运维包括性能上可能会有问题,如果客户端能实现类似的功能,可能会更通用一些

@caibirdme
Copy link
Contributor

虽然有这种需求,但我觉得这不在这个lib的职责范围内

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