Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-22067

Make lease distribution more even

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Motivation

      Currently, if we have a cluster of 3 nodes and a zone of 5 partitions, there is relatively high chance that some node will have no primary replica for any partition located on it.

      For 10 partition this chance is much lower but still exists.

      It shows that LeaseUpdater#nextLeaseHolder provides distribution far from even.

      Definition of done

      Initial lease distribution has to be made decently even. However, it can be not preserved during the lifetime of the cluster, because leases don't have to be moved every time when the topology changes.

      Implementation notes

      We can make the distribution based on node priority. Nodes having less leases on them will have higher priority. Later this approach can be modified in order to calculate the node priority using user load, hot data metrics, etc. This will help us with IGNITE-18879 as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Denis Chudov Denis Chudov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: