Solr
  1. Solr
  2. SOLR-850

Addition of timeouts for distributed searching

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: search
    • Labels:
      None

      Description

      Include configurable socket timeout and connection timeout settings for distributed searching.

      1. SOLR-850.patch
        2 kB
        Shalin Shekhar Mangar
      2. SOLR-850.patch
        2 kB
        patrick o'leary

        Activity

        Hide
        patrick o'leary added a comment -

        Patches solr-1.3.0 release

        Allows for 2 timeout settings to be configured per-request handler

        shard-socket-timeout, which times out a socket which has been in read for too long.
        shard-connection-timeout, which times out a socket that's been in wait or established too long.

        All values are in ms's

        config example:

        <requestHandler name="/search" class="org.apache.solr.handler.component.SearchHandler">
            <lst name="defaults">
              <str name="echoParams">explicit</str>
            </lst>
            <int name="shard-socket-timeout">1000</int>
            <int name="shard-connection-timeout">1000</int>
            <arr name="components">
              <str>query</str>
              <str>facet</str>
              <str>mlt</str>
              <str>highlight</str>
              <str>debug</str>
            </arr>
          </requestHandler>
        
        Show
        patrick o'leary added a comment - Patches solr-1.3.0 release Allows for 2 timeout settings to be configured per-request handler shard-socket-timeout, which times out a socket which has been in read for too long. shard-connection-timeout, which times out a socket that's been in wait or established too long. All values are in ms's config example: <requestHandler name= "/search" class= "org.apache.solr.handler.component.SearchHandler" > <lst name= "defaults" > <str name= "echoParams" > explicit </str> </lst> <int name= "shard-socket-timeout" > 1000 </int> <int name= "shard-connection-timeout" > 1000 </int> <arr name= "components" > <str> query </str> <str> facet </str> <str> mlt </str> <str> highlight </str> <str> debug </str> </arr> </requestHandler>
        Hide
        Otis Gospodnetic added a comment -

        I don't see any harm in this. Current values (undefined) mean "no timeout" and it's fine to leave them that way?

        Show
        Otis Gospodnetic added a comment - I don't see any harm in this. Current values (undefined) mean "no timeout" and it's fine to leave them that way?
        Hide
        patrick o'leary added a comment -

        When not defined, it defaults to no timeout, which is the current experience, obviously not a desirable one.

        Show
        patrick o'leary added a comment - When not defined, it defaults to no timeout, which is the current experience, obviously not a desirable one.
        Hide
        Shalin Shekhar Mangar added a comment -

        Patch in sync with trunk. I'll commit this shortly.

        Show
        Shalin Shekhar Mangar added a comment - Patch in sync with trunk. I'll commit this shortly.
        Hide
        Shalin Shekhar Mangar added a comment -

        Committed revision 741710.

        Thanks Patrick!

        Show
        Shalin Shekhar Mangar added a comment - Committed revision 741710. Thanks Patrick!
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            patrick o'leary
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development