-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Display more information in WebUI Masters #16636
Conversation
/** | ||
* Displays information about a master in the UI. | ||
*/ | ||
public class UIMasterInfo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you remove this class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the change about Leader -> Primary to keep consistency.
core/server/master/src/main/java/alluxio/master/meta/DefaultMetaMaster.java
Outdated
Show resolved
Hide resolved
core/server/master/src/main/java/alluxio/master/meta/AlluxioMasterRestServiceHandler.java
Outdated
Show resolved
Hide resolved
core/server/master/src/main/java/alluxio/master/meta/AlluxioMasterRestServiceHandler.java
Outdated
Show resolved
Hide resolved
@tcrain Would you please take another look at this PR? Thanks! |
Hi @LuQQiu and @tieujason330, can you help review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
web ui changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM with one comment, thanks for the work!
response.setLeaderMasterInfo(leaderMasterInfo); | ||
return response; | ||
}, Configuration.global()); | ||
Gauge lastCheckpointGauge = MetricsSystem.METRIC_REGISTRY.getGauges() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this MetricsSystem.METRIC_REGISTRY.getGauges()
is a bit expensive, can you only get once?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. WEBUI_OVERVIEW
in this class also call getGauges()
multiple times, but it's not related to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
alluxio-bot, merge this please |
Thanks everyone for reviewing. |
1 similar comment
Thanks everyone for reviewing. |
### What changes are proposed in this pull request? Add more information in WebUI Masters: 1. Start time. 2. Elected / Step-down time. 3. Last checkpoint time. 4. Number of journal entries since checkpoint. 5. Build version. Add fields in meta master RPC: 1. RegisterMasterPOptions * start time * primacy change time * version * revision 2. MasterHeartbeatPOptions * last checkpoint time * journal entries since checkpoint Add metrics keys: 1. Master process start time. 2. Last gain primacy time. 3. Last lose primacy time. `MasterInfo` and WebUI pages are changed accordingly. ### Why are the changes needed? Make Masters tab in WebUI more informative. Fix: Alluxio#16709 ### Does this PR introduce any user facing changes? <img width="1705" alt="WebUI Masters" src="https://user-images.githubusercontent.com/5821159/207555228-f79fc246-692d-459a-9282-413490f7ff00.png"> Fixes Alluxio#8765 pr-link: Alluxio#16636 change-id: cid-ce162c4a6b2341b974daaa8f0823791ed5c032b2
…n WebUI Masters Add more information in WebUI Masters: 1. Start time. 2. Elected / Step-down time. 3. Last checkpoint time. 4. Number of journal entries since checkpoint. 5. Build version. Add fields in meta master RPC: 1. RegisterMasterPOptions * start time * primacy change time * version * revision 2. MasterHeartbeatPOptions * last checkpoint time * journal entries since checkpoint Add metrics keys: 1. Master process start time. 2. Last gain primacy time. 3. Last lose primacy time. `MasterInfo` and WebUI pages are changed accordingly. Make Masters tab in WebUI more informative. Fix: Alluxio#16709 <img width="1705" alt="WebUI Masters" src="https://user-images.githubusercontent.com/5821159/207555228-f79fc246-692d-459a-9282-413490f7ff00.png"> Fixes Alluxio#8765 pr-link: Alluxio#16636 change-id: cid-ce162c4a6b2341b974daaa8f0823791ed5c032b2
…n WebUI Masters Add more information in WebUI Masters: 1. Start time. 2. Elected / Step-down time. 3. Last checkpoint time. 4. Number of journal entries since checkpoint. 5. Build version. Add fields in meta master RPC: 1. RegisterMasterPOptions * start time * primacy change time * version * revision 2. MasterHeartbeatPOptions * last checkpoint time * journal entries since checkpoint Add metrics keys: 1. Master process start time. 2. Last gain primacy time. 3. Last lose primacy time. `MasterInfo` and WebUI pages are changed accordingly. Make Masters tab in WebUI more informative. Fix: Alluxio#16709 <img width="1705" alt="WebUI Masters" src="https://user-images.githubusercontent.com/5821159/207555228-f79fc246-692d-459a-9282-413490f7ff00.png"> Fixes Alluxio#8765 pr-link: Alluxio#16636 change-id: cid-ce162c4a6b2341b974daaa8f0823791ed5c032b2
What changes are proposed in this pull request?
Add more information in WebUI Masters:
Add fields in meta master RPC:
Add metrics keys:
MasterInfo
and WebUI pages are changed accordingly.Why are the changes needed?
Make Masters tab in WebUI more informative.
Fix: #16709
Does this PR introduce any user facing changes?
Fixes #8765