Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9184

A new API for master information, like the state api but subtract the slaves and task

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: HTTP API
    • Labels:
      None

      Description

      Now, Mesos provides two HTTP Endpoints: `/state` & `/state-summary` for the master status info.  In the `/state-summary` API, it reports the frameworks and slaves statistics info. In the `/state` API, the response like this: 

      // 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" : []",
      }
      

      These information contains the master program build info, current master process info and the whole cluster running info like slaves、frameworks、tasks. 

      Hope  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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xiaowei-cuc xiaowei
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: