You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Chudov (Jira)" <ji...@apache.org> on 2024/04/19 17:33:00 UTC

[jira] [Updated] (IGNITE-22067) Make lease distribution more even

     [ https://issues.apache.org/jira/browse/IGNITE-22067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Chudov updated IGNITE-22067:
----------------------------------
    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, data 

  was:
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.


> Make lease distribution more even
> ---------------------------------
>
>                 Key: IGNITE-22067
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22067
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Denis Chudov
>            Priority: Major
>              Labels: ignite-3
>
> *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, data 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)