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

Master HTTP API support to get the leader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • HTTP API
    • None

    Description

      There's currently no good way to query the current master ensemble leader.

      Some workarounds to get the leader (and parse it from leader@ip) from /state.json or to grep it from master/redirect.

      The scheduler API does an HTTP redirect, but that requires an HTTP POST coming from a framework as well

      POST /api/v1/scheduler HTTP/1.1

      There should be a lightweight API call to get the current master.
      This could be part of a more granular representation (REST) of the current state.json.

      Attachments

        Issue Links

          Activity

            People

              qiujian Jian Qiu
              clehene Cosmin Lehene
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: