[
https://issues.apache.org/jira/browse/IGNITE-22128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladislav Pyatkov updated IGNITE-22128:
---------------------------------------
Description:
h3. Motivation
Right now, we use a hash to balance partitions.
{code:java}
public int getStripe(NodeId nodeId) {
return Math.abs(nodeId.hashCode() % stripes);
}
{code}
This approach might lead to a skew.
h3. Definition of done
Partition is distributed statically by the honest round-robin algorithm.
was:
h3. Motivation
Right now, we use a hash to balance partitions.
{code:java}
public int getStripe(NodeId nodeId) {
return Math.abs(nodeId.hashCode() % stripes);
}
{code}
This approach might lead to a skew.
h3. Definition of done
Partition is distributed by the round-robin algorithm.
> Balancing partitions across stripes
> -----------------------------------
>
> Key: IGNITE-22128
> URL: https://issues.apache.org/jira/browse/IGNITE-22128
> Project: Ignite
> Issue Type: Improvement
> Reporter: Vladislav Pyatkov
> Priority: Major
> Labels: ignite-3
>
> h3. Motivation
> Right now, we use a hash to balance partitions.
> {code:java}
> public int getStripe(NodeId nodeId) {
> return Math.abs(nodeId.hashCode() % stripes);
> }
> {code}
> This approach might lead to a skew.
> h3. Definition of done
> Partition is distributed statically by the honest round-robin algorithm.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)