pai icon indicating copy to clipboard operation
pai copied to clipboard

[Close as Dup] display resource utility per vc/queue metrics

Open xudifsd opened this issue 7 years ago • 13 comments

What would you like to be added:

A graph/list to show resource util per vc/queue

Why is this needed:

User sometime found their job is always in waiting state, this may be due to resource not enough in VC or resource fragment in node, need a graph to help them debug the issue

Without this feature, how does the current module work:

User check yarn's page manually.

Components that may involve changes:

  • yarn-exporter
  • grafana

xudifsd avatar Feb 26 '19 05:02 xudifsd

Is it possible to have metrics showing current resource fragmentation status (per VC)? We should manage users' expectation properly.

Anbang-Hu avatar Feb 28 '19 02:02 Anbang-Hu

I'm not sure how to show resource fragmentation status, showing node count with certain free card number? How about memory? Like what hadoop showing disk?

image

But this is the whole cluster status, I think no vc view about this. Am I right? @mzmssg

xudifsd avatar Feb 28 '19 03:02 xudifsd

related. https://github.com/Microsoft/pai/issues/2013

fanyangCS avatar Feb 28 '19 04:02 fanyangCS

@xudifsd , a high priority issue is to show how many jobs are in waiting state in a VC.

fanyangCS avatar Feb 28 '19 04:02 fanyangCS

This is fit for the "Virtual Cluster" Page refactoring. Currently, when click on the VC instance name it goes to the single VC page. The current single VC page only has the generic VC info. We can add this info above the current table.

VC Table image

Single VC Page image

scarlett2018 avatar Feb 28 '19 07:02 scarlett2018

@fanyangCS yes, yarn-exporter should get that metric. We will need to display that and node count with certain free gpu card, memory, cpu graph in some page, so user can get a sense why their job is waiting.

xudifsd avatar Feb 28 '19 09:02 xudifsd

@fanyangCS

a high priority issue is to show how many jobs are in waiting state in a VC.

What's the definition of waiting status? AM launcher but no job container is regarded as RUNNING or WAITING?

mzmssg avatar Mar 01 '19 06:03 mzmssg

Job Waiting: Job Not Complete and Not Exist Container is Running

yqwang-ms avatar Mar 01 '19 07:03 yqwang-ms

image

As discussed in meeting, I think above picture may captured what user may find useful. It has three tables and one histogram. Meaning of each table:

  • jobs pending: pending job count of each VC
  • containers pending: pending container count of each VC
  • free resources: resource available in each VC, this table has already shown in virtual cluster page right now
  • free gpu histogram: show node count with certain free GPU, so user could know if certain task can fit in cluster, take the picture as example, tasks require 8 GPU will never be scheduled, since there are no nodes with 8 free GPU.

All required metrics has been exported by #2289

@scarlett2018 Maybe experience team can take over this job?

xudifsd avatar Mar 12 '19 04:03 xudifsd

https://github.com/Microsoft/pai/issues/1943

fanyangCS avatar Mar 12 '19 05:03 fanyangCS

https://github.com/Microsoft/pai/issues/1989

fanyangCS avatar Mar 12 '19 05:03 fanyangCS

@xudifsd - sure, but I don't think experience team has capacity to do this in 0.11.0. cc @weixingzhang - do your team want to take this? or are there any comments around this design?

scarlett2018 avatar Mar 12 '19 11:03 scarlett2018

Will address this in #2539

scarlett2018 avatar Apr 16 '19 11:04 scarlett2018