Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-4847

Show replica index progress for initial run

    XMLWordPrintable

Details

    Description

      Loaded 5 million docs. Then created 20 design docs (each with a single view) and attempted to query all 20. This triggered 4 replica index threads that blocked the main indexer's responsible for returning data and updating UI (since 4 is the default number of parallel_indexers). Depending on environment one option is to increase max_paralell_indexers as outlined here (MB-4831) and/or consolidate views to fewer design docs.

      Currently, the only way to know that replica indexers are running and blocking results is via the following couch call:

      http://10.2.2.31:8092/_active_tasks

      [

      {"pid":"<0.18927.4>","changes_done":1293938,"design_documents":["_design/dev_ddoc3"],"indexer_type":"replica","progress":52,"set":"default","started_on":1330483699,"total_changes":2473631,"type":"indexer","updated_on":1330489820}

      ,

      {"pid":"<0.16970.7>","changes_done":1507224,"design_documents":["_design/dev_ddoc5"],"indexer_type":"replica","progress":49,"set":"default","started_on":1330486613,"total_changes":3046417,"type":"indexer","updated_on":1330489866}

      ,

      {"pid":"<0.31283.8>","changes_done":142396,"design_documents":["_design/dev_ddoc6"],"indexer_type":"replica","progress":4,"set":"default","started_on":1330488174,"total_changes":3263440,"type":"indexer","updated_on":1330489864}

      ,

      {"pid":"<0.15265.9>","changes_done":185568,"design_documents":["_design/dev_ddoc7"],"indexer_type":"replica","progress":5,"set":"default","started_on":1330489741,"total_changes":3263440,"type":"indexer","updated_on":1330489867}

      ,

      {"pid":"<0.16567.9>","changes_done":6087,"database":"default/73","progress":24,"started_on":1330489863,"total_changes":24557,"type":"database_compaction","updated_on":1330489868}

      ]

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            FilipeManana Filipe Manana (Inactive)
            tommie Tommie McAfee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty