Skip to content

perf: Enable greedy leader balancer in all CPD tests#30047

Merged
StephanDollberg merged 1 commit intodevfrom
stephan/greedy-cdp
Apr 8, 2026
Merged

perf: Enable greedy leader balancer in all CPD tests#30047
StephanDollberg merged 1 commit intodevfrom
stephan/greedy-cdp

Conversation

@StephanDollberg
Copy link
Copy Markdown
Member

Enable greedy leader balancer unconditionally in CPD for more stable leadership behaviour.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v26.1.x
  • v25.3.x
  • v25.2.x

Release Notes

  • none

Enable greedy leader balancer unconditionally in CPD for more stable
leadership behaviour.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a perf-test-specific base class that injects leader_balancer_mode=greedy into Redpanda configuration so CPD/perf tests run with more stable leadership behavior by default.

Changes:

  • Added RedpandaPerfTest wrapper over RedpandaTest to apply a default leader_balancer_mode=greedy.
  • Updated existing perf/CPD test classes to inherit from RedpandaPerfTest instead of RedpandaTest.
  • Minor formatting adjustments to some super().__init__ calls while switching base classes.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/rptest/perf/redpanda_perf_test.py New base class that injects leader_balancer_mode=greedy into extra_rp_conf.
tests/rptest/perf/ts_write_openmessaging_test.py Switch test to inherit from RedpandaPerfTest.
tests/rptest/perf/ts_read_single_consumer_omb.py Switch test to inherit from RedpandaPerfTest.
tests/rptest/perf/ts_read_openmessaging_test.py Switch test to inherit from RedpandaPerfTest.
tests/rptest/perf/small_batches_test.py Switch test to inherit from RedpandaPerfTest.
tests/rptest/perf/rpk_benchmark_test.py Switch test to inherit from RedpandaPerfTest (with minor formatting change).
tests/rptest/perf/openmessaging_perf_test.py Switch test to inherit from RedpandaPerfTest.
tests/rptest/perf/datalake_test.py Switch test to inherit from RedpandaPerfTest.

Comment thread tests/rptest/perf/redpanda_perf_test.py
Comment thread tests/rptest/perf/redpanda_perf_test.py
Copy link
Copy Markdown
Member

@travisdowns travisdowns left a comment

Choose a reason for hiding this comment

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

Nice, looking forward to the plots flatlining :)

@StephanDollberg StephanDollberg merged commit 30063e9 into dev Apr 8, 2026
24 checks passed
@StephanDollberg StephanDollberg deleted the stephan/greedy-cdp branch April 8, 2026 07:48
@StephanDollberg
Copy link
Copy Markdown
Member Author

Nice, looking forward to the plots flatlining :)

A man can dream

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.

3 participants