[ 
https://issues.apache.org/jira/browse/MESOS-6446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15606103#comment-15606103
 ] 

haosdent commented on MESOS-6446:
---------------------------------

I think we have 3 approaches to fix this problem.

# Add {{/master/metrics-snapshot}} in {{master/http.cpp}} and delegate requests 
to {{MetricsProcess}}.
  #* Add {{VIEW_METRICS}} in {{authorizer.proto}} for audit request to 
{{/master/metrics-snapshot}}.
  #* As a follow up step, it would be better that add 
{{/agent/metrics-snapshot}} and deprecated {{/metrics/snapshot}} because it is 
not necessary.
# Add {{leading_maste}} in {{/master/state}}, because we need to use 
{{hostname}} to send requests (Parse {{pid}} to send requests would fail if the 
Mesos cluster is deployed in AWS Cloud). Then use {{JSONP}} to send requests.
# Add {{leading_master}} in {{/master/state}}, because we need to use 
{{hostname}} to send requests (Use {{pid}} to send requests would fail if the 
Mesos cluster is deployed in AWS Cloud). And redirect if found the 
{{leading_master}} is not equal to current one.

I have implemented both 1 and 2. But I found 2 looks more simple. So I posted 
it at https://reviews.apache.org/r/53172/.
Looking forward your thoughts that if other better ways to fix this problem.

[~xujyan] [~vinodkone] [~kaysoky]

> WebUI redirect doesn't work with stats from /metric/snapshot
> ------------------------------------------------------------
>
>                 Key: MESOS-6446
>                 URL: https://issues.apache.org/jira/browse/MESOS-6446
>             Project: Mesos
>          Issue Type: Bug
>          Components: webui
>    Affects Versions: 1.0.0
>            Reporter: Yan Xu
>            Assignee: haosdent
>            Priority: Blocker
>         Attachments: Screen Shot 2016-10-21 at 12.04.23 PM.png
>
>
> After Mesos 1.0, the webUI redirect is hidden from the users so you can go to 
> any of the master and the webUI is populated with state.json from the leading 
> master. 
> This doesn't include stats from /metric/snapshot though as it is not 
> redirected. The user ends up seeing some fields with empty values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to