Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4756

Print info about partition distribution to log

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.7
    • general

    Description

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

      1. 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;
      2. The statistic is calculated and printed only for the local node;
      3. Statistic is placed at the GridAffinityAssignmentCache#calculate and calculated for new idealAssignment.
      4. Message format is
        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>].
        

        e.g. for cache with name "test", 2 backups, 4 partition, 3 nodes:

        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%)].
        

      Attachments

        Issue Links

          Activity

            People

              daradurvs Vyacheslav Daradur
              tledkov-gridgain Taras Ledkov
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: