Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12768

Bitbucket should allow multi-threaded code search indexing

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Search
    • 18
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Currently, when (re)indexing the content for search, Bitbucket Server uses only one thread, to prevent the indexing task from overloading the server's capacity to respond to the usual load.

      However, if the content being indexed is large, it may take days to complete the indexing task, and during this time, the search functionality will be impacted (the search may only return the contents that have been already indexed).

      • In order to speed up this potentially lengthy process, the System Admin should be given some way to throttle it. For example, if the load is low on weekends, and the server has many CPU cores available, it should be possible to dedicate more than just one CPU to this task (at least temporarily).
      • Also, while indexing of all the content is underway, there is no reliable way to monitor its progress. The REST endpoint: /rest/indexing/latest/status most of the time returns:
        {"queues":{"delay":0,"event":0},"status":"IDLE"}
        

        and so it cannot be used for the monitoring.

      The System Admins are confronted with this issue each time the content has to be reindexed, ie.

              Unassigned Unassigned
              msuchecki Marek Suchecki
              Votes:
              12 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated: