You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "xiaowei (JIRA)" <ji...@apache.org> on 2018/08/27 11:31:00 UTC
[jira] [Created] (MESOS-9184) A new API for master information,
like the state api but subtract the slaves and task
xiaowei created MESOS-9184:
------------------------------
Summary: A new API for master information, like the state api but subtract the slaves and task
Key: MESOS-9184
URL: https://issues.apache.org/jira/browse/MESOS-9184
Project: Mesos
Issue Type: Improvement
Components: HTTP API
Reporter: xiaowei
Now, Mesos provides two HTTP Endpoints: `/state` & `/state-summary` for the master status info. In the `/state-summary` API, it report the frameworks and slaves statistics info. In the `/state` API, the response like this:
{code:java}
// https://github.com/apache/mesos/blob/master/src/master/http.cpp#L2742
// Omitted the flags detail
{
"version" : "0.28.0",
"git_sha" : "9d5889b5a265849886a533965f4aefefd1fbd103",
"git_branch" : "refs/heads/master",
"git_tag" : "0.28.0",
"build_date" : "2016-02-15 10:00:28",
"build_time" : 1455559228,
"build_user" : "mesos-user",
"start_time" : 1455643643.42422,
"elected_time" : 1455643643.43457,
"id" : "b5eac2c5-609b-4ca1-a352-61941702fc9e",
"pid" : "master@127.0.0.1:5050",
"hostname" : "localhost",
"activated_slaves" : 0,
"deactivated_slaves" : 0,
"cluster" : "test-cluster",
"leader" : "master@127.0.0.1:5050",
"log_dir" : "/var/log",
"external_log_file" : "mesos.log",
"flags" : {...},
"slaves" : [],
"frameworks" : [],
"completed_frameworks" : [],
"orphan_tasks" : [],
"unregistered_frameworks" : []",
}
{code}
These information contains the master program build info, current master process info and the whole cluster running info like slaves、frameworks、tasks.
Hope :D there is a new api to report the master program build info and process info, and only contains the master information. it will be much more simply and fast.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)