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

[v22.1.x] cluster: drop redundant set_status config updates #4959

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport from pull request: #4924
Fixes #4958

jcsp added 2 commits May 27, 2022 17:49
If a follower isn't seeing controller log updates
promptly, it may issue many set_status RPCs while
it's waiting.  The controller leader should not
turn all of these into log writes: if the status
of the node already matches what it is reporting,
then do not write anything.

Fixes redpanda-data#4923

(cherry picked from commit 0a2b991)
On a healthy system, we do want to send set_status
RPCs as soon as we're ready.  However, if the controller
log updates are not being seen promptly, this would lead
to the follower spamming the controller leader with
very many set_status RPCs in a tight loop.

Nodes will still send their status immediately when
a config change occurs: this change only effects the
behaviour if _another_ config change occurs while
it is reporting status from the first change: in this
case the follower will wait 5 seconds before sending
its next status RPC.

Related redpanda-data#4923

(cherry picked from commit 3b1e56e)
@vbotbuildovich vbotbuildovich added this to the v22.1.4 milestone May 27, 2022
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 27, 2022
@jcsp jcsp marked this pull request as ready for review June 1, 2022 12:45
@jcsp jcsp requested a review from mmaslankaprv as a code owner June 1, 2022 12:45
Copy link
Contributor

@ajfabbri ajfabbri left a comment

Choose a reason for hiding this comment

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

Clean backport

@ajfabbri ajfabbri merged commit 7574a67 into redpanda-data:v22.1.x Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants