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

fix(dbm-services): DBHA multi-GM may cause repeated switch #8099

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

xjxia
Copy link
Collaborator

@xjxia xjxia commented Nov 21, 2024

  1. agent增加cache,对同周期的故障时候,不要一直上报,每次拉取最新元数据时cache失效
  2. 同一个ip,尽量确保每次上报的gm相同。基于hash取模排序,这样还一个好处是在大批量故障场景避免都上报同一个gm
  3. 同一ip,在同一时间区间(例如5分钟),尽量保证生成的hash值相同,这样就算同1个ip,上报给不同gm,gm也会因为插入db时hash唯一值冲突而退出

@xjxia xjxia force-pushed the fix/dbha-double-switch/#8097 branch from 6f196de to bee3342 Compare November 21, 2024 08:55
@xjxia xjxia requested review from xiepaup and yksitu November 21, 2024 09:23
@xjxia xjxia requested a review from seanlook November 22, 2024 06:55
@iSecloud iSecloud merged commit 0589e60 into TencentBlueKing:v1.5.0 Nov 25, 2024
5 checks passed
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.

4 participants