Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more logging to help debugging the time spent on goal based operation #2202

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

allenxwang
Copy link
Contributor

@allenxwang allenxwang commented Oct 1, 2024

Summary

  1. Why:

Some cruise control operation, like broker removal, has to go through a few steps. It may also be in pending state for some time due to thread pool resource limitations or ongoing operations. We want to have additional observability on the time it takes for each step so that we know where the potential improvement will be.

  1. What:

Additional loggings are added to track the total time and time spent on each step for the goal based operation.

Categorization

  • documentation
  • bugfix
  • new feature
  • refactor
  • security/CVE
  • other

Copy link

@groelofs groelofs left a comment

Choose a reason for hiding this comment

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

You were going to add logging related to the pending status--do the operation steps include that implicitly, or does this PR not have that logging in it?

Copy link
Contributor

@mhratson mhratson left a comment

Choose a reason for hiding this comment

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

Would adding time unit make sense?

@allenxwang
Copy link
Contributor Author

allenxwang commented Oct 2, 2024

You were going to add logging related to the pending status--do the operation steps include that implicitly, or does this PR not have that logging in it?

The pending status is the first step in handling RemoveBrokerRequest. So it will be logged.

allenxwang and others added 3 commits October 2, 2024 12:52
…async/progress/OperationProgress.java

Co-authored-by: Maryan Hratson <[email protected]>
…servlet/handler/async/runnable/GoalBasedOperationRunnable.java

Co-authored-by: Maryan Hratson <[email protected]>
…servlet/handler/async/runnable/GoalBasedOperationRunnable.java

Co-authored-by: Maryan Hratson <[email protected]>
@allenxwang allenxwang merged commit f925566 into main Oct 2, 2024
5 of 7 checks passed
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