You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vyacheslav Daradur (JIRA)" <ji...@apache.org> on 2018/03/22 15:40:00 UTC

[jira] [Updated] (IGNITE-4756) Print info about partition distribution to log

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

Vyacheslav Daradur updated IGNITE-4756:
---------------------------------------
    Description: 
Summarize discussions:
Add log message in case partitions distribution is not close to even distribution:
 # Add system property IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD with default value 0.1 to print warn message only when nodes count differs more then threshold;
 # The statistic is calculated and printed only for the local node;
 # Statistic is placed at the {{GridAffinityAssignmentCache#calculate}} and calculated for new {{idealAssignment}}.
 # Message format is
{noformat}
Local node affinity assignment distribution is not ideal [cache=<cache_name>, expectedPrimary=<ideal_count_of_primary_partitions>, exectedBackups=<ideal_count_of_backups>, primary=<count_of_primary_partitions>, backups=<count_of_backup_partitions>].
{noformat}
e.g. for cache with name "test", 2 backups, 4 partition, 3 nodes:
{noformat}
Local node affinity assignment distribution is not ideal [cache=test, expectedPrimary=1.33 (33.3%), exectedBackups=2.66 (66.66%), primary=1 (25%), backups=3(75%)].
{noformat}

  was:
Summarize discussions:
Add log message in case partitions distribution is not close to even distribution:

# Add system property IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD with default value 0.1 to print warn message only when nodes count differs more then threshold;
# The statistic is calculated and printed only for the local node;
# Statistic is placed at the {{GridAffinityAssignmentCache#calculate}} and calculated for new {{idealAssignment}}.
# Message format is
{noformat}
Local node affinity assignment distribution is not ideal [cache=<cache_name>, expectedPrimary=<ideal_count_of_primary_partitions>, exectedBackups=<ideal_count_of_backups>, primary=<count_of_primary_partitions>, backups=<count_of_backup_partitions>].
{noformat}
e.g. for cache with name "test", 2 backups, 4 partition, 3 nodes:
{noformat}
Local node affinity assignment distribution is not ideal [cache=test, expectedPrimary=1.33 (33.3%), exectedBackups=2.66 (66.66%), primary=1 (25%), backups=3(75%)].
{noformat}


> 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
>
> Summarize discussions:
> Add log message in case partitions distribution is not close to even distribution:
>  # Add system property IGNITE_PART_DISTRIBUTION_WARN_THRESHOLD with default value 0.1 to print warn message only when nodes count differs more then threshold;
>  # The statistic is calculated and printed only for the local node;
>  # Statistic is placed at the {{GridAffinityAssignmentCache#calculate}} and calculated for new {{idealAssignment}}.
>  # Message format is
> {noformat}
> Local node affinity assignment distribution is not ideal [cache=<cache_name>, expectedPrimary=<ideal_count_of_primary_partitions>, exectedBackups=<ideal_count_of_backups>, primary=<count_of_primary_partitions>, backups=<count_of_backup_partitions>].
> {noformat}
> e.g. for cache with name "test", 2 backups, 4 partition, 3 nodes:
> {noformat}
> Local node affinity assignment distribution is not ideal [cache=test, expectedPrimary=1.33 (33.3%), exectedBackups=2.66 (66.66%), primary=1 (25%), backups=3(75%)].
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)