Skip to content

Commit

Permalink
Fuck it, just use 8192b for dns
Browse files Browse the repository at this point in the history
  • Loading branch information
bahamat committed Nov 1, 2024
1 parent 8e990c4 commit 7baf69f
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions haproxy.cfg/002-resolver.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,25 @@

resolvers system
parse-resolv-conf
hold valid 15s # Don't query too often
# DNS payload size affects how many servers can realistically be on the
# back end of our DNS queries. 1232 is the recommended size for avoiding
# packet fragmentation and alows up to 88 A records. However, that's only
# 7 SRV records. Even 8192 only allows for about 53 SRV records. That
# should be sufficient for the vast majority of deployments. Above 8192
# will lead to outright DNS failures unless it is known that the network
# can support it.
# The symptom of this being too low is "unspecified DNS error" in the
# haproxy log when loglevel is set to debug. If that's you, we're sorry
# you're here. You're probably also experiencing several other network
# scaling limitations. The best option for you at this point is probably
# to switch to A records rather than SRV records. Good luck, and May the
# Force be with you.
# See https://docs.haproxy.org/2.6/configuration.html#5.3.2-accepted_payload_size
accepted_payload_size 8192
hold valid 15s # Don't query too often
# DNS resolution errors
hold obsolete 5s # If CNS removed it, we should as well
hold refused 3600s # If system resolver is throttling us, ignore that
hold nx 30s # If resolution says this host doesn't exist
hold timeout 30s # If the DNS server did not respond
hold other 30s # Any other error
hold obsolete 5s # If CNS removed it, we should as well
hold refused 3600s # If system resolver is throttling us, ignore that
hold nx 30s # If resolution says this host doesn't exist
hold timeout 30s # If the DNS server did not respond
hold other 30s # Any other error

0 comments on commit 7baf69f

Please sign in to comment.