Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8205

Make UpdateShardHandler's thread pool configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • SolrCloud
    • None

    Description

      Resource consumption under arbitrary query load can be limited with careful bound on maximumPoolSize in ShardHandlerFactory and appropriate timeouts but it is not possible to do the same for updates because of UpdateShardHandler uses an unbounded cached thread pool. This is a major problem, for example, when trying use SolrCloud as a service and attempting to guarantee SLAs.

      I propose to make the UpdateShardHandler's core/max thread pool size and thread keep alive time configurable. If we change the pool size to be bounded, does it make sense to make the queue size also configurable?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: