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

将DB的监控和管理分离 #388

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

wfxiang08
Copy link

  1. DB能自动处理Connections的连接错误,因此如果不是系统性的错误,例如: 用户名错误等等,创建DB原则上不应该返回error。因此checkConn可以延后创建,或者创建失败了就直接跳过; InitConnNum也尽可能满足,如果不能满足也跳过

  2. UpMaster & DownMaster 只负责处理Admin相关的逻辑,由外部行为驱动;
    checkMaster 属于内部行为,如果Node处于Down状态,那么checkMaster不工作;如果Node处于UpMaster状态,则checkMaster正常工作;checkMaster本身不改变UpMaster/DownMaster的逻辑。
    DB的状态一方面是看是否为nil, 另一方面看是否处于UP状态

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

Successfully merging this pull request may close these issues.

1 participant