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

SolrCmdDistributor should send updates in batch when use Http2SolrClient?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.0
    • None
    • None

    Description

      In the past, batch updates are sent in a single stream from the leader, the replica will create a single thread to parse all the updates. For the simplicity of SOLR-12605, the leader is now sending individual updates to replicas, therefore they are now parsing updates in different threads which increase the usage of memory and CPU.
      In the past, this is an unacceptable approach, because, for every update, we must create different connections to replicas. But with the support of HTTP/2, all updates will be sent in a single connection from leader to a replica. Therefore the cost is not as high as it used to be.

      On the other hand, sending individual updates will improve the indexing performance and better error-handling for failures of a single update in a batch.

      Attachments

        1. http2-branch.log
          46 kB
          Cao Manh Dat
        2. master-branch.log
          42 kB
          Cao Manh Dat

        Issue Links

          Activity

            People

              caomanhdat Cao Manh Dat
              caomanhdat Cao Manh Dat
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: