有没有办法在mesos中获取任务使用的最大内存? [英] Is there a way to get the max memory used by a task in mesos?
问题描述
上下文:
我基于所有任务都精心安排.
期望:
现在,我希望能够监视已完成任务消耗的最大内存.
Now, I would like to be able to monitor the max memory consumed by completed tasks.
我希望在我的 TASK_FINISHED
状态.
I expect to perform this monitoring task inside my implementation of Scheduler.statusUpdate()
method, for every task with TASK_FINISHED
state.
问题:
在此方法中, SchedulerDriver
和 Protos.TaskStatus
提供一个>.
In this method, a SchedulerDriver
and a Protos.TaskStatus
are provided.
因此,有一种方法可以从 SchedulerDriver
和
So, is there a way to retrieve the max memory used by the corresponding task from a SchedulerDriver
and a Protos.TaskStatus
?
推荐答案
Mesos exposes information about task statistics in slave(1)/monitor/statistics
. You need to scrape this endpoint on each agent and aggregate the response to get the maximum value for a given task.
这篇关于有没有办法在mesos中获取任务使用的最大内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!