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

Display more information in WebUI Masters #16636

Merged
merged 32 commits into from
Feb 28, 2023

Conversation

kaijchen
Copy link
Contributor

@kaijchen kaijchen commented Dec 8, 2022

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: #16709

Does this PR introduce any user facing changes?

WebUI Masters

Fixes #8765

/**
* Displays information about a master in the UI.
*/
public class UIMasterInfo {
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

@maobaolong maobaolong left a 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.

@kaijchen kaijchen changed the title Add start time and build version in master WebUI Add start time, primacy change time and build version in master WebUI Dec 13, 2022
@kaijchen kaijchen changed the title Add start time, primacy change time and build version in master WebUI Display more information in master WebUI Dec 13, 2022
@kaijchen kaijchen changed the title Display more information in master WebUI Display more information in WebUI Masters Dec 13, 2022
@maobaolong
Copy link
Contributor

@tcrain Would you please take another look at this PR? Thanks!

@kaijchen
Copy link
Contributor Author

kaijchen commented Feb 6, 2023

Hi @LuQQiu and @tieujason330, can you help review this PR?

@kaijchen kaijchen requested review from maobaolong and LuQQiu and removed request for LuQQiu, tieujason330 and maobaolong February 17, 2023 12:11
@kaijchen
Copy link
Contributor Author

Last checkpoint is shown after setting alluxio.master.journal.checkpoint.period.entries to 1000.
image

Copy link
Contributor

@tieujason330 tieujason330 left a 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

Copy link
Contributor

@maobaolong maobaolong left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@JiamingMai JiamingMai left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jiacheliu3 jiacheliu3 left a 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()
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@jiacheliu3 jiacheliu3 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jiacheliu3
Copy link
Contributor

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit 8502fbf into Alluxio:master Feb 28, 2023
@kaijchen
Copy link
Contributor Author

Thanks everyone for reviewing.

1 similar comment
@kaijchen
Copy link
Contributor Author

Thanks everyone for reviewing.

@kaijchen kaijchen deleted the improve-master-webui branch February 28, 2023 16:39
YangchenYe323 pushed a commit to YangchenYe323/alluxio that referenced this pull request Apr 16, 2023
### 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
jiacheliu3 pushed a commit to jiacheliu3/alluxio that referenced this pull request May 17, 2023
…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
jiacheliu3 pushed a commit to jiacheliu3/alluxio that referenced this pull request May 17, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display more information in WebUI Masters Add health check service to standby masters
9 participants