Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

show disk io in job and pod #290

Merged
merged 8 commits into from
Dec 30, 2015
Merged

show disk io in job and pod #290

merged 8 commits into from
Dec 30, 2015

Conversation

imotai
Copy link
Collaborator

@imotai imotai commented Dec 28, 2015

实现原理是搜集cgroup下面所有进程的 /proc/pid/io 信息,每秒(是否好?)采集一次

存在问题:
无法区分对哪一块磁盘的io消耗
查询job时

root@xxxx:/home/galaxy/galaxy/sandbox# ../galaxy jobs
  -  id                                    name    state       stat(r/p/d)  replica  batch  cpu  memory  disk(r/w)              iosyscall(r/w)
------------------------------------------------------------------------------------------------------------------------------------------------------
  1  dca896dc-d566-4fed-ab58-4cc539f4b86f  sample  kJobNormal  1/1/0        2        -      0    0.000   2.655 M/s / 3.761 M/s  21762/s / 66581948/s

查看pod时

root@xxx:/home/galaxy/galaxy/sandbox# ../galaxy pods -j dca896dc-d566-4fed-ab58-4cc539f4b86f
  -  id                                    stage          state        cpu(used/assigned)  mem(used/assigned)  disk(r/w)              rwsyscall(r/w)        endpoint        version
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1  538f2220-710a-417f-8ba1-7ab9d26b3d8a  kStageRunning  kPodRunning  0/1000              0.000 /2.000 G      2.661 M/s / 3.765 M/s  21809/s / 80308430/s  127.0.0.1:7182  2.0.0
  2  74bc5372-59da-4e15-a477-33c9a73d193d  kStagePending  kPodPending  0/1000              0.000 /2.000 G      0.000 /s / 0.000 /s    0/s / 0/s             -               2.0.0

@fxsjy
Copy link
Contributor

fxsjy commented Dec 28, 2015

不能区分是哪块盘的话,不便于问题定位啊。 比如tera_main和FileServer,他们的io显示出来必然很高。

@imotai
Copy link
Collaborator Author

imotai commented Dec 28, 2015

恩 ,我还在找其他方法看看,加上这个功能主要想看除了tera fileserver其他模块的 home io使用情况,先定位罪魁祸首

@fxsjy
Copy link
Contributor

fxsjy commented Dec 29, 2015

LGTM

imotai added a commit that referenced this pull request Dec 30, 2015
show disk io in job and pod
@imotai imotai merged commit 8ca41d4 into baidu:master Dec 30, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants