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

[#960][part-3] feat(dashboard): Provides a start-stop script for the dashboard. #1056

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

yl09099
Copy link
Contributor

@yl09099 yl09099 commented Jul 30, 2023

What changes were proposed in this pull request?

Provides a start-stop script for the dashboard.

Why are the changes needed?

(Please clarify why the changes are needed. For instance,

Fix: #960

Does this PR introduce any user-facing change?

Start and close the dashboar module using shell scripts.

How was this patch tested?

UT.

@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.41%. Comparing base (be10697) to head (814bb6d).
Report is 448 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1056      +/-   ##
============================================
+ Coverage     53.47%   54.41%   +0.94%     
  Complexity     2695     2695              
============================================
  Files           411      391      -20     
  Lines         23644    21283    -2361     
  Branches       2006     2006              
============================================
- Hits          12643    11581    -1062     
+ Misses        10225     8997    -1228     
+ Partials        776      705      -71     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yl09099
Copy link
Contributor Author

yl09099 commented Nov 20, 2023

@jerqi @xianjingfeng @leixm Please look at it for me.

return null;
}
StringBuilder target = new StringBuilder();
String targetUri = "http://" + hostAndPort + "/";
Copy link
Member

Choose a reason for hiding this comment

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

May use https

Copy link
Contributor Author

Choose a reason for hiding this comment

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

May use https

None of the servers support https, so that's not necessary.

Copy link
Member

Choose a reason for hiding this comment

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

if (conf.getBoolean(RssBaseConf.JETTY_SSL_ENABLE)) {
addHttpsConnector(httpConfig, conf);
}

@yl09099 yl09099 force-pushed the uniffle-960-3 branch 2 times, most recently from 4d91c6a to 04fd4af Compare November 21, 2023 08:36
@yl09099 yl09099 requested a review from xianjingfeng November 21, 2023 08:43
@@ -30,6 +30,12 @@ public class DashboardConf extends RssBaseConf {
.defaultValue(19988)
.withDescription("http server http port");

public static final ConfigOption<String> COORDINATOR_JETTY_ADDRESS =
ConfigOptions.key("coordinator.jetty.address")
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible that we will not use jetty in the future?Or we don’t use java to implement coordinator? How about coordinator.web.address or coordinator.address?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it possible that we will not use jetty in the future?Or we don’t use java to implement coordinator? How about coordinator.web.address or coordinator.address?

OK.

@yl09099 yl09099 force-pushed the uniffle-960-3 branch 3 times, most recently from 35e497d to a55609c Compare November 22, 2023 02:29
@yl09099 yl09099 requested a review from xianjingfeng November 22, 2023 02:38
} else {
targetUri = "http://" + targetAddress + "/";
}
if (targetUri.endsWith("/")) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this always true?

HandlerList handlers = new HandlerList();
ResourceHandler resourceHandler = addResourceHandler();
String coordinatorWebAddress = conf.getString(DashboardConf.COORDINATOR_WEB_ADDRESS);
boolean sslEnable = conf.getBoolean(DashboardConf.JETTY_SSL_ENABLE, false);
Copy link
Member

Choose a reason for hiding this comment

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

Reusing JETTY_SSL_ENABLE is weird. Could you add a new parameter? Such as coodinator.ssl.enable. Or change the format of COORDINATOR_WEB_ADDRESS to http://host:port/

xianjingfeng
xianjingfeng previously approved these changes Nov 22, 2023
Copy link
Member

@xianjingfeng xianjingfeng left a comment

Choose a reason for hiding this comment

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

LGTM

@xianjingfeng xianjingfeng merged commit 51e02d0 into apache:master Nov 23, 2023
@xianjingfeng
Copy link
Member

Merged. Thanks @yl09099

jerqi pushed a commit that referenced this pull request Dec 5, 2023
…he dashboard. (#1346)

### What changes were proposed in this pull request?

Fix get_pid_file_name function for the dashboard.

### Why are the changes needed?

This is the follow up pr of  [#1056](#1056)

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

By running the script: start-dashboard.sh and stop-dashboard.sh.
zuston pushed a commit to zuston/incubator-uniffle that referenced this pull request Jan 18, 2024
…r the dashboard. (apache#1056)

### What changes were proposed in this pull request?
Provides a start-stop script for the dashboard.

### Why are the changes needed?

Fix: apache#960

### Does this PR introduce any user-facing change?
Start and close the dashboard module using shell scripts.

### How was this patch tested?
UT.
zuston pushed a commit to zuston/incubator-uniffle that referenced this pull request Jan 18, 2024
… for the dashboard. (apache#1346)

### What changes were proposed in this pull request?

Fix get_pid_file_name function for the dashboard.

### Why are the changes needed?

This is the follow up pr of  [apache#1056](apache#1056)

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

By running the script: start-dashboard.sh and stop-dashboard.sh.
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.

[Umbrella] Uniffle needs to add a WebUI page
3 participants