[ 
https://issues.apache.org/jira/browse/IGNITE-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049263#comment-16049263
 ] 

Taras Ledkov commented on IGNITE-4756:
--------------------------------------

If I catch your question right:

#  You patch will be placed at the {{RendezvousAffinityFunction}};
#  Add the system property to disable calculate/print the partition statistic;
#  Calculates statistic (the partitions count for the replicas (primary, 
backup_0, ... etc.)) on the assignment calculation take a look at the 
{{assignPartition}} method.
#  Revert the {{Ignite ignite}} member of the {{RendezvousAffinityFunction}} 
(see the file history) to gather the local node and calculate statistic only 
for local node.
#  Print the statistic et the end of the {{assignPartitions}} method.


> Print info about partition distribution to log 
> -----------------------------------------------
>
>                 Key: IGNITE-4756
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4756
>             Project: Ignite
>          Issue Type: Improvement
>          Components: general
>            Reporter: Taras Ledkov
>            Assignee: Vadim Opolski
>            Priority: Minor
>              Labels: newbie
>             Fix For: 2.1
>
>
> Print information about affinity assignment to log.
> e.g.: 
> {noformat}
> <cache_name>: primary, [<node_ID_0>, <partitions_count>, 
> <percentage_of_parts_count>], ...,  [<node_ID_N>, <partitions_count>, 
> <percentage_of_parts_count>]
> <cache_name>: backup_0, [<node_ID_0>, <partitions_count>, 
> <percentage_of_parts_count>], ...,  [<node_ID_N>, <partitions_count>, 
> <percentage_of_parts_count>]
> ...
> <cache_name>: backup_N, [<node_ID_0>, <partitions_count>, 
> <percentage_of_parts_count>], ...,  [<node_ID_N>, <partitions_count>, 
> <percentage_of_parts_count>]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to