Skip to content

Conversation

@schase-es
Copy link
Contributor

The DesiredBalanceComputer now has three groups of timing and iteration counts: the current round iteration and duration, the since-recompute iterations, round count, and duration, and the time since convergence. This logging change includes all available information in the logs, and groups them together by kind.

The DesiredBalanceComputer now has three groups of timing and iteration counts:
the current round iteration and duration, the since-recompute iterations, round
count, and duration, and the time since convergence. This logging change
includes all available information in the logs, and groups them together by
kind.
@schase-es schase-es requested a review from DaveCTurner December 5, 2025 20:52
@schase-es schase-es added >non-issue :Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Distributed Coordination Meta label for Distributed Coordination team v9.3.0 labels Dec 5, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

Thanks, much easier to review this separately. I left a couple of small suggestions for improvement that also apply to the same changes further down. Overall tho it looks good to add these extra details to these messages.

"""
Desired balance computation for [%d] converged after [%s] and [%d] iterations, \
resumed computation [%d] times with [%d] iterations since the last resumption [%s] ago""",
Desired balance computation for [%d] converged after [%s] and [%d] iterations this round, \
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the total time & number of iterations is more important than the number since it was last interrupted - could we reverse the order so that the total numbers come first?

() -> Strings.format(
"Desired balance computation for [%d] converged after [%s] and [%d] iterations",
"""
Desired balance computation for [%d] converged after [%s] and [%d] iterations this round, \
Copy link
Contributor

Choose a reason for hiding this comment

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

"this round" implies there have been other rounds, but that's not the case here. Maybe "in a single round" would be clearer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >non-issue Team:Distributed Coordination Meta label for Distributed Coordination team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants