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

Yakov Zhdanov commented on IGNITE-4756:
---------------------------------------

I think this way log will become too verbose.

[~tledkov-gridgain], can you please think over and suggest another format - 
Ignite outputs only warning for caches  and nodes where distribution is not 
even. I would also allow to set threshold via system property 
(-DIGNITE_PART_DISTRIBUTION_WARN_THRESHOLD=0.1 - warn about nodes with 10+% 
difference).

We can output the messages on each topology change

OK Message
{{Partition map has been built (distribution is even).}}

Problem message
{{Partition map has been built (distribution is not even for caches) 
[cacheName=NAME, nodes=[<node_ID_0>, <partitions_count>, 
<percentage_of_parts_count>]....}}

[~tledkov-gridgain], can you please suggest message format also containing info 
on backups distribution. Can you please think it over?

> 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
>            Priority: Minor
>              Labels: newbie
>             Fix For: 2.0
>
>
> 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.3.15#6346)

Reply via email to