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

Bitbucket should allow multi-threaded code search indexing

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Search
    • Labels:
      None
    • UIS:
      4
    • Feedback Policy:
      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.

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              msuchecki Marek S.
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but there is no synchronization info for this issue.