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

Expose internal statistics of GreedyBalancer via JMX #1095

Merged
merged 9 commits into from
Nov 9, 2022

Conversation

garyparrot
Copy link
Collaborator

PR Context: #1084
Previous Discussion: #1089 (comment)

This PR does the following:

  1. Implement a utility DynamicMbean to ease the process of publishing an MBean on the local JVM.
  2. Expose the internal statistics of GreedyBalancer. Currently, support the iteration counter and minCost gauge.

@garyparrot garyparrot self-assigned this Nov 8, 2022
Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@garyparrot 感謝實作這個方便的功能

@chaohengstudent 也麻煩看一下,之後Sensor 要能跟 JmX結合

@garyparrot
Copy link
Collaborator Author

Failed test traced at #1096.

@garyparrot
Copy link
Collaborator Author

Failed test traced at #1096.

Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@garyparrot 感謝精簡功能,這樣不複雜用符合我們近期的用途,幾個建議請看一下

BeanQuery.builder().domainName(domainName).property("id", id).build());

// register
MBeanRegister.local()
Copy link
Contributor

Choose a reason for hiding this comment

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

麻煩試著用MBeanClient把剛剛註冊的資訊撈回來比對一下內容

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chia7712 chia7712 merged commit dba74ba into opensource4you:main Nov 9, 2022
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.

2 participants