fxbing opened a new issue, #3871: URL: https://github.com/apache/fluss/issues/3871
### Search before asking - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar. ### Description ### Description The current `LeaderReplicaDistributionGoal` balances leader counts across the whole cluster. However, leaders of an individual table can still be unevenly distributed. For a hot table, this may cause significant CPU and request-load differences between TabletServers even when the cluster-wide leader count is balanced. ### Proposed solution Make leader balancing table-aware: - Balance leaders independently within each table when replica placement permits. - Prefer leadership movement between existing replicas. - Move replicas when necessary to achieve table-level leader balance, such as during cluster expansion. - Preserve rack awareness and the existing replica distribution constraints. - Keep cluster-level leader balancing as a complementary goal. ### Willingness to contribute - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
