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

Add maintenance information to the replicated registry.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • None
    • master

    Description

      To achieve fault-tolerance for the maintenance primitives, we will need to add the maintenance information to the registry.

      The registry currently stores all of the slave information, which is quite large (~ 17MB for 50,000 slaves from my testing), which results in a protobuf object that is extremely expensive to copy.

      As far as I can tell, reads / writes to maintenance information is independent of reads / writes to the existing 'registry' information. So there are two approach here:

      Add maintenance information to 'maintenance' key:

      1. The advantage of this approach is that we don't further grow the large Registry object.
      2. This approach assumes that writes to 'maintenance' are independent of writes to the 'registry'. If these writes are not independent, this approach requires that we add transactional support to the State abstraction.
      3. This approach requires adding compaction to LogStorage.
      4. This approach likely requires some refactoring to the Registrar.

      Add maintenance information to 'registry' key: (This is the chosen method.)

      1. The advantage of this approach is that it's the easiest to implement.
      2. This will further grow the single 'registry' object, but doesn't preclude it being split apart in the future.
      3. This approach may require using the diff support in LogStorage and/or adding compression support to LogStorage snapshots to deal with the increased size of the registry.

      Attachments

        Issue Links

          Activity

            People

              kaysoky Joseph Wu
              bmahler Benjamin Mahler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: