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

state.json can not differentiate resources

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.22.1
    • Fix Version/s: 0.23.0
    • Component/s: agent, json api, master
    • Labels:
      None

      Description

      The information about available resources on the slave listed in the state.json only shows the last set value for a resource.
      It is possible to set resources for different mesos roles, but they don't appear in the state.json.

      If you set something like this:

      cpus(*):24;mem(*):1024;ports(*):[31000-32000];ports(cassandra):[9420]
      

      You get the following in the state.json:

      "resources": {
           "cpus": 24,
           "mem": 1024,
           "ports": [9420]
      }
      

      Both port ranges in this example are available, but it's difficult to check if your defined resources really are available in Mesos.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                madhatter Arvid Warnecke
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: