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

state.json can not differentiate resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.22.1
    • 0.23.0
    • agent, json api, master
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: