Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-628

Make the timeout for the extended resolver dnslookup configurable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      2
    • Comments:
      4
    • Documentation Status:
      Complete or Committed

      Description

      This patch enables the configuration of the extended resolver's time out for the dns lookup.

      A new configuration parameter solr.resolver.timeout (sorry for yet another config param) is introduced and used to set the timout in DnsLookup.java.

      For backward compatibility the time out defaults to 20 milliseconds.
      OS time outs vary between 2 to 5 seconds, from what I've learned so far.

      We did face an increasing number of solr errors (200- 900/day) due to timeout, with the timeout being set to 20 milliseconds. Setting it to the system defaults (5 seconds) got rid of most of these. Nowadays an average of 2/day do occur.

        Attachments

          Activity

            People

            • Assignee:
              jtrimble Jeffrey Trimble
              Reporter:
              cjuergen Claudia Jürgen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: