You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Taras Ledkov (JIRA)" <ji...@apache.org> on 2017/06/14 15:26:00 UTC
[jira] [Comment Edited] (IGNITE-4756) Print info about partition
distribution to log
[ https://issues.apache.org/jira/browse/IGNITE-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049263#comment-16049263 ]
Taras Ledkov edited comment on IGNITE-4756 at 6/14/17 3:25 PM:
---------------------------------------------------------------
If I catch your question right:
# Your 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.
was (Author: tledkov-gridgain):
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)