Skip to content

Increase NODE_DISCONNECTED_TIMEOUT#170

Open
liuzhenghua wants to merge 2 commits intolanggenius:mainfrom
liuzhenghua:fix/gc-node
Open

Increase NODE_DISCONNECTED_TIMEOUT#170
liuzhenghua wants to merge 2 commits intolanggenius:mainfrom
liuzhenghua:fix/gc-node

Conversation

@liuzhenghua
Copy link
Copy Markdown

The current value of NODE_DISCONNECTED_TIMEOUT is too small. When deleting and creating a new pod, tasks like tickerLockMaster and tickerUpdateNodeStatus may block the tickerUpdateNodeStatus task, causing the health node to be marked as not available, which results in all plugin states being removed.

efc5b9e351d22be82ed84328a19e76c

}

ipsVoting[addr.fullAddress()] = c.voteAddress(addr) == nil
ipsVoting[addr.fullAddress()] = time.Since(time.Unix(nodeStatus.LastPingAt, 0)) < c.nodeDisconnectedTimeout
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here,address can be myself,so check time.Since(time.Unix(nodeStatus.LastPingAt, 0)) < c.nodeDisconnectedTimeout will always be true

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.

2 participants