adjust timeout / retry timing
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)
This commit is contained in:
parent
b562c0fd7e
commit
50f8d72408
@ -7,13 +7,13 @@ Usually, higher level code wants to call the add/update/delete functions.
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user