如何获取Mesos代理框架执行器内存 [英] How to get Mesos Agents Framework Executor Memory

查看:73
本文介绍了如何获取Mesos代理框架执行器内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mesos Web UI内部,我可以在表中查看我的Spark执行程序的内存使用情况

Inside Mesos Web UI I can see memory usage of my Spark executors in a table

Agents -> Framework -> Executors

有一个表格列出了我的Spark驱动程序的所有执行程序,它们的内存使用情况列在Mem (Used / Allocated)列中.

There is a table listing all executors for my Spark driver and their memory usage is indicated in column Mem (Used / Allocated).

是否可以通过链接直接获取此号码?如果可以,怎么办?

Is there a way to obtain this number directly via a link and if yes how?

例如,我可以通过 http://IP/mesos/metrics/snapshot ,但是执行程序的内存使用情况不是其中之一.

For example I can obtain a bunch of Mesos metrics via http://IP/mesos/metrics/snapshot but memory usage of executors is not one of them.

推荐答案

我自己找到了答案.对于可以运行执行程序的每个工作人员/代理,可以在此处直接访问内存信息:

Found the answer myself. For each worker/agent on which executors may run, direct access to memory info is here:

http://IP_of_worker1:5051/slave(1)/monitor/statistics
http://IP_of_worker2:5051/slave(1)/monitor/statistics
等等

http://IP_of_worker1:5051/slave(1)/monitor/statistics
http://IP_of_worker2:5051/slave(1)/monitor/statistics
etc

内容为json格式,framework_id允许查找相关的执行程序及其内存消耗,cpu使用率等表中给出的内容.

The content is in the form of a json and framework_id allows to find the related executors and their memory consumption, cpu usage etc what is given in the table.

这篇关于如何获取Mesos代理框架执行器内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆