Skip to content

Commit

Permalink
perf(templates): bump dns_stale_ttl default to 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Nov 29, 2023
1 parent 81a5227 commit 360deb9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog/unreleased/kong/bump_dns_stale_ttl.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
message: Bump `dns_stale_ttl` default to 1 day so stale DNS record can be used for longer time in case of resolver slowness.
message: Bump `dns_stale_ttl` default to 1 hour so stale DNS record can be used for longer time in case of resolver slowness.
type: performance
scope: Configuration
2 changes: 1 addition & 1 deletion kong.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@
# property receives a value (in seconds), it
# will override the TTL for all records.

#dns_stale_ttl = 86400 # Defines, in seconds, how long a record will
#dns_stale_ttl = 3600 # Defines, in seconds, how long a record will
# remain in cache past its TTL. This value
# will be used while the new DNS record is
# fetched in the background.
Expand Down
2 changes: 1 addition & 1 deletion kong/templates/kong_defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ dns_resolver = NONE
dns_hostsfile = /etc/hosts
dns_order = LAST,SRV,A,CNAME
dns_valid_ttl = NONE
dns_stale_ttl = 86400
dns_stale_ttl = 3600
dns_cache_size = 10000
dns_not_found_ttl = 30
dns_error_ttl = 1
Expand Down

0 comments on commit 360deb9

Please sign in to comment.