[filebeat] Add sticky partition rebalance strategy to Kafka input#50900
[filebeat] Add sticky partition rebalance strategy to Kafka input#50900lucabelluccini wants to merge 5 commits into
Conversation
Adds support for the `sticky` rebalance strategy (KIP-54) in the Filebeat Kafka input, complementing the existing `range` and `roundrobin` options. Sticky assignment minimizes partition movement across consumer group rebalances, reducing reprocessing and improving throughput stability in dynamic environments. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
🤖 GitHub commentsJust comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
🔍 Preview links for changed docs |
✅ Vale Linting ResultsNo issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds support for the 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
@khushijain21 how much work is it to support this in the kafkaexporter too? Looks like it is supported in franz-go. We can introduce this as long as we can support it for beats receivers going forward as well. |
Summary
stickyas therebalance.strategyoption, which minimises partition movement across rebalances for improved consumer stability.Test plan
go test ./filebeat/input/kafka/...)rebalance.strategy: stickyconnects and consumes messages correctlyrange,roundrobin) are unaffected🤖 Generated with Claude Code