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

Optimize count of threads for rebuild indexes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9
    • Component/s: None
    • Labels:
      None

      Description

      We were recently implemented the new property INDEX_REBUILDING_PARALLELISM (by issue IGNITE-11979).
      That fix do possible to rebuild indexes, after restart without index.bin or restore from snapshot to another topology, in parallel threads.
      But now the process of rebuild can to consume a lot of threads, which limited on INDEX_REBUILDING_PARALLELISM * AVAILABLE_PROC_CNT (count of thread in public pool).
      For example in case of INDEX_REBUILDING_PARALLELISM = 28 and 64 CPU it will be more then 1.5К threads.

      Look at the method, it will create dedicate thread on each invocation `org.apache.ignite.internal.processors.query.schema.SchemaIndexCacheVisitorImpl#processPartitionsAsync`

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ktkalenko@gridgain.com Kirill Tkalenko
                Reporter:
                ktkalenko@gridgain.com Kirill Tkalenko
                Reviewer:
                Alexey Scherbakov
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m