Skip to content

Commit

Permalink
adjust timeout / retry timing
Browse files Browse the repository at this point in the history
resolver timeout 5 -> 10s (so it has more chances to query both nameservers alternatingly)

unavailable retry 300 -> 120s (so in case of a temporary problem, the outage is shorter)
  • Loading branch information
ThomasWaldmann committed Jan 26, 2015
1 parent b562c0f commit 50f8d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nsupdate/main/dnstools.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import os

# time to wait for dns name resolving [s]
RESOLVER_TIMEOUT = float(os.environ.get('DNS_RESOLVER_TIMEOUT', '5.0'))
RESOLVER_TIMEOUT = float(os.environ.get('DNS_RESOLVER_TIMEOUT', '10.0'))

# time to wait for dns name updating [s]
UPDATE_TIMEOUT = float(os.environ.get('DNS_UPDATE_TIMEOUT', '20.0'))

# time after we retry to reach a previously unreachable ns [s]
UNAVAILABLE_RETRY = 300.0
UNAVAILABLE_RETRY = 120.0


import time
Expand Down

0 comments on commit 50f8d72

Please sign in to comment.