Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-8837

Log summary of indexing tasks at server startup

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: ElasticSearch
    • Labels:

      Description

      Logs in version 6.3 look like:

      2017.02.22 18:23:27 INFO  web[][o.s.s.e.IndexerStartupTask] Index issues
      2017.02.22 18:24:33 INFO  web[][o.s.s.es.BulkIndexer] 87390 requests processed (1456 items/sec)
      2017.02.22 18:25:33 INFO  web[][o.s.s.es.BulkIndexer] 237057 requests processed (2494 items/sec)
      2017.02.22 18:26:33 INFO  web[][o.s.s.es.BulkIndexer] 337307 requests processed (1670 items/sec)
      2017.02.22 18:27:33 INFO  web[][o.s.s.es.BulkIndexer] 426016 requests processed (1478 items/sec)
      2017.02.22 18:28:33 INFO  web[][o.s.s.es.BulkIndexer] 583529 requests processed (2625 items/sec)
      2017.02.22 18:29:33 INFO  web[][o.s.s.es.BulkIndexer] 966794 requests processed (6387 items/sec)
      2017.02.22 18:30:33 INFO  web[][o.s.s.es.BulkIndexer] 1337225 requests processed (6173 items/sec)
      2017.02.22 18:31:33 INFO  web[][o.s.s.es.BulkIndexer] 1729132 requests processed (6531 items/sec)
      2017.02.22 18:32:33 INFO  web[][o.s.s.es.BulkIndexer] 2106910 requests processed (6296 items/sec)
      2017.02.22 18:33:33 INFO  web[][o.s.s.es.BulkIndexer] 2481036 requests processed (6235 items/sec)
      2017.02.22 18:34:33 INFO  web[][o.s.s.es.BulkIndexer] 2796063 requests processed (5250 items/sec)
      2017.02.22 18:35:33 INFO  web[][o.s.s.es.BulkIndexer] 3135031 requests processed (5649 items/sec)
      2017.02.22 18:36:33 INFO  web[][o.s.s.es.BulkIndexer] 3498642 requests processed (6060 items/sec)
      2017.02.22 18:37:33 INFO  web[][o.s.s.es.BulkIndexer] 3822408 requests processed (5396 items/sec)
      2017.02.22 18:38:33 INFO  web[][o.s.s.es.BulkIndexer] 4183033 requests processed (6010 items/sec)
      2017.02.22 18:39:27 INFO  web[][o.s.s.e.IndexerStartupTask] Index tests
      

      End time of issues indexing is guessed by the next "index tests" log. It's a rough approximation, especially for the last indexing task. Moreover the total number of documents is missing.

      I suggest to add the following log when task is finished:

      2017.02.22 18:38:33 INFO  web[][o.s.s.e.IndexerStartupTask] 5083011 issues/issue indexed in 1000s
      

        Attachments

          Activity

            People

            • Assignee:
              daniel.schwarz Daniel Schwarz (Inactive)
              Reporter:
              simon.brandhof Simon Brandhof
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: