Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7316

Greedy ClusterNodeInfo

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0, 1.9.6
    • Component/s: documentmk
    • Labels:
      None

      Description

      The ClusterNodeInfo is responsible for assigning a clusterId to a DocumentNodeStore on startup. The current implementation uses the lowest MAC address available on the system and the working directory as information to reuse a previously assigned clusterId. This ensures a DocumentNodeStore gets the same clusterId after a restart.

      For static deployments this works fine, but become a problem when deployments are more dynamic. Consider a cluster deployed on container infrastructure. Scaling the application may mean cluster nodes are added or removed over time and deployed on various types of machines depending on current load and required resources. Over time more and more unused clusterIds would exist and and bloat underlying documents in the DocumentStore.

      This issue proposes a more greedy algorithm when a clusterId is assigned to a DocumentNodeStore.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mreutegg Marcel Reutegger
                Reporter:
                mreutegg Marcel Reutegger
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: