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

Weiwei Yang commented on YUNIKORN-14:
-------------------------------------

Hi [~wilfreds]

Thanks for the comments.

The history info here just provides very basic info about the cluster, e.g # of 
containers/apps in the last 12h. I think we can leverage this simple solution 
to give a basic impression for users. For comprehensive metrics, we have 
Prometheus integration so we can push that to its store for persistent. Here, 
we just need a small time-bound cache just like [~adam.antal] has implemented.

It is a pull mode, but that's fine. We are doing the pull once per minute (or 
maybe 30s), since the data is cached, no matter how many requests from web UI, 
it will not lock partition and damage scheduler performance. For the moment 
where write happens, it simply gets the data from partition without any 
calculation,  the impact is trivial.

The push mode is the Prometheus metrics, which we already have so I don't think 
we need to build anything similar.

 

 

 

> Add rest API to retrieve app/container history info
> ---------------------------------------------------
>
>                 Key: YUNIKORN-14
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-14
>             Project: Apache YuniKorn
>          Issue Type: New Feature
>          Components: core - scheduler
>            Reporter: Wilfred Spiegelenburg
>            Assignee: Adam Antal
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: Yunikorn_UI.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As part of the web UI we can show application and container history.
> The current pages are mocked up and do not show the real history. Before the 
> changes can be made on the web UI side we need to provide the history via a 
> REST interface so it can be consumed by the UI.
> All web service code is located in package 
> [https://github.com/apache/incubator-yunikorn-core/tree/master/pkg/webservice].
>  When running the scheduler locally (from K8shim using "make run"), the REST 
> APIs can be accessed via
>  * [http://localhost:9080/ws/v1/apps]
>  * [http://localhost:9080/ws/v1/queues]
>  * [http://localhost:9080/ws/v1/nodes]
> We need to add another endpoint to provide data to yunikorn-web to render the 
> app/container history page. Please check with [~akhilpb] for the desired data 
> format, etc. That issue is tracked via YUNIKORN-8.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to