Skip to content

Add configuration LeaderElectionDisabled - #1382

Merged
brandur merged 1 commit into
masterfrom
brandur-leader-election-disabled
Sep 25, 2026
Merged

brandur merged 1 commit into
masterfrom
brandur-leader-election-disabled

Conversation

@brandur

@brandur brandur commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Adds client configuration option LeaderElectionDisabled, allowing a
caller to explicitly prevent the client from participating in leader
election, also preventing it from running any maintenance services.

This option is being added a user's request, and is aimed at a specific
situation where they have specialized boxes that work only specific job
kinds, and these boxes should ideally not be working on anything else.

At least one client will have to omit this option or no maintenance
services will run.

@brandur
brandur force-pushed the brandur-leader-election-disabled branch from 34390d6 to 7ef9f48 Compare September 24, 2026 21:01
Adds client configuration option `LeaderElectionDisabled`, allowing a
caller to explicitly prevent the client from participating in leader
election, also preventing it from running any maintenance services.

This option is being added a user's request, and is aimed at a specific
situation where they have specialized boxes that work only specific job
kinds, and these boxes should ideally not be working on anything else.

At least one client will have to omit this option or no maintenance
services will run.
@brandur
brandur force-pushed the brandur-leader-election-disabled branch from 7ef9f48 to 21f990a Compare September 24, 2026 21:02
@brandur
brandur requested a review from bgentry September 24, 2026 21:03
@brandur

brandur commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

@bgentry See email. Any FUD on this one?

@bgentry bgentry left a comment

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.

Yeah I know we've talked about this before, seems overdue to just introduce the knob for some use cases. Do you think it warrants doc site additions on the leader election page?

@brandur

brandur commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

Do you think it warrants doc site additions on the leader election page?

Hm, I'll take a look, but it might be an usual enough situation that there doesn't have to be a dedicated docs section. People/robots I'm sure will also check the Godoc and it'll be well documented there.

@brandur
brandur merged commit fcb4e46 into master Sep 25, 2026
15 checks passed
@brandur
brandur deleted the brandur-leader-election-disabled branch September 25, 2026 05:22
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