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

Master should not report disconnected resource providers.

    XMLWordPrintableJSON

Details

    Description

      MESOS-9384 attempted to make the master to garbage-collect disconnected resource providers. However, if there are disconnected resource providers but none of the connected ones changes, the following code snippet would make the master ignore the agent update and skip the garbage collection:
      https://github.com/apache/mesos/blob/2ae1296c668686d234be92b00bd7abbc0a6194b0/src/master/master.cpp#L8186-L8234
      The condition to ignore the agent update will be triggered in one of the following conditions:
      1. The resource provider has no resource, so the agent's total resource remains the same.
      2. When the agent restarts and reregisters, its resource provider resources will be reset.

      As a result, the master will still keep records for the disconnected resource providers and report them.

      Attachments

        Activity

          People

            chhsia0 Chun-Hung Hsiao
            chhsia0 Chun-Hung Hsiao
            Benjamin Bannier Benjamin Bannier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: