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

Improve logging of data regions on startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9
    • general
    • Improved node start-up and periodic metrics logging.

    Description

      First we have IgniteConfiguration printed (quiet=false):

      2019-07-24 02:33:33.918[INFO ][Thread-139][o.a.i.i.IgniteKernal%GridNodeName] IgniteConfiguration [... dfltDataRegConf=DataRegionConfiguration [name=mem_plc, maxSize=635655159808, initSize=268435456, swapPath=null, pageEvictionMode=DISABLED, evictionThreshold=0.9, emptyPagesPoolSize=100, metricsEnabled=true, metricsSubIntervalCount=5, metricsRateTimeInterval=1000, persistenceEnabled=true, checkpointPageBufSize=17179869184], storagePath=/ssd/data, checkpointFreq=30000, lockWaitTime=10000, checkpointThreads=4, checkpointWriteOrder=SEQUENTIAL, walHistSize=2147483647, walSegments=10, walSegmentSize=1073741824, walPath=/ssd/data/wal, walArchivePath=/sas/wal_archive, metricsEnabled=false, walMode=LOG_ONLY, walTlbSize=131072, walBuffSize=5242880, walFlushFreq=2000, walFsyncDelay=1000, walRecordIterBuffSize=67108864, alwaysWriteFullPages=false, fileIOFactory=org.apache.ignite.internal.processors.cache.persistence.file.AsyncFileIOFactory@3612c49a, metricsSubIntervalCnt=5, metricsRateTimeInterval=60000, walAutoArchiveAfterInactivity=-1, writeThrottlingEnabled=false, walCompactionEnabled=true, walCompactionLevel=1], ...]

      Then we have all configured Data Regions printed per IGNITE-8803 (quiet=true):

      [11:30:36] Data Regions Configured:
      [11:30:36] ^-- plcWithMetrics [initSize=256,0 MiB, maxSize=6,3 GiB, persistence=false, lazyMemoryAllocation=true]
      [11:30:36] ^-- plcNoMetrics [initSize=256,0 MiB, maxSize=6,3 GiB, persistence=false, lazyMemoryAllocation=true]

      Then we print number of Data Regions that were initialized as per IGNITE-7196, but not regions themselves (quiet=false):
      Configured data regions initialized successfully [total=4]

      I propose to keep the first one (IgniteConfiguration), remove the second one (Data Regions Configured), and promote the last one to quiet mode while also outputting the regions themselves like this:

      [11:30:36] Data Regions Initialized Successfully: 4
      [11:30:36] ^-- plcWithMetrics [initSize=256,0 MiB, maxSize=6,3 GiB, persistence=true, lazyMemoryAllocation=true]
      [11:30:36] ^-- plcNoMetrics [initSize=256,0 MiB, maxSize=6,3 GiB, persistence=true, lazyMemoryAllocation=true]
      [11:30:36] ^-- sysMemPlc [initSize=40,0 MiB, maxSize=100,0 MiB, persistence=true, lazyMemoryAllocation=false]
      [11:30:36] ^-- volatileMemPlc [initSize=40,0 MiB, maxSize=100,0 MiB, persistence=false, lazyMemoryAllocation=true]

      Also clearly mark default region and system regions as such.

      Attachments

        Issue Links

          Activity

            People

              ilyak Ilya Kasnacheev
              ilyak Ilya Kasnacheev
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1h
                  1h