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

Update allocator to support updating agent total resources

Details

    Description

      Agents encapsulate resource providers making their resources appear to the master as agent resources. In order to permit updates to the resources of a local resource provider (e.g., available disk expanded physically by adding another driver, resource provider resources disappeared since resource provider disappeared), we need to allow agents to change their total resources.

      Expected semantics for the hierarchical allocator would be that total can shrink independently of the current allocated; should allocated exceed total no allocations can be made until allocated < total.

      Attachments

        Activity

          bbannier Benjamin Bannier added a comment - Reviews: https://reviews.apache.org/r/60638/ https://reviews.apache.org/r/60639/
          jieyu Jie Yu added a comment -

          commit 9e8e013340be57fb85d4fa64e43d2d090e114422
          Author: Benjamin Bannier <benjamin.bannier@mesosphere.io>
          Date: Sat Jul 8 20:50:20 2017 -0700

          Changed semantics of allocator 'updateSlave' method.

          We change the semantics of the 'updateSlave' method present in the
          allocator interface. While previously the passed optional resource
          argument was interpreted as the amount of (new) oversubscribed
          resources, it now represents the new amount of total resources on the
          given agent.

          We addtionally add an optimization of
          'HierarchicalAllocatorProcess::updateSlaveTotal' for cases where the
          passed total is identical to the current total. This operation is a
          no-op now and we prevent updating the sorters.

          Review: https://reviews.apache.org/r/60638/

          commit d345ebccf19387d75d67c99f8f6e72a301f55bc3
          Author: Benjamin Bannier <benjamin.bannier@mesosphere.io>
          Date: Sat Jul 8 20:50:26 2017 -0700

          Added MESOS-7755 to the upgrades guide and the CHANGELOG.

          Review: https://reviews.apache.org/r/60639/

          jieyu Jie Yu added a comment - commit 9e8e013340be57fb85d4fa64e43d2d090e114422 Author: Benjamin Bannier <benjamin.bannier@mesosphere.io> Date: Sat Jul 8 20:50:20 2017 -0700 Changed semantics of allocator 'updateSlave' method. We change the semantics of the 'updateSlave' method present in the allocator interface. While previously the passed optional resource argument was interpreted as the amount of (new) oversubscribed resources, it now represents the new amount of total resources on the given agent. We addtionally add an optimization of 'HierarchicalAllocatorProcess::updateSlaveTotal' for cases where the passed total is identical to the current total. This operation is a no-op now and we prevent updating the sorters. Review: https://reviews.apache.org/r/60638/ commit d345ebccf19387d75d67c99f8f6e72a301f55bc3 Author: Benjamin Bannier <benjamin.bannier@mesosphere.io> Date: Sat Jul 8 20:50:26 2017 -0700 Added MESOS-7755 to the upgrades guide and the CHANGELOG. Review: https://reviews.apache.org/r/60639/

          People

            bbannier Benjamin Bannier
            bbannier Benjamin Bannier
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: