Skip to content

Commit

Permalink
Revert "feat(templates): bump dns_stale_ttl default to 1 hour (#12087
Browse files Browse the repository at this point in the history
…)"

This reverts commit 4fee6ca.
  • Loading branch information
AndyZhang0707 committed Jul 18, 2024
1 parent 8e4c60a commit 2dbd59d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions changelog/unreleased/kong/bump_dns_stale_ttl.yml

This file was deleted.

4 changes: 1 addition & 3 deletions kong.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -1312,16 +1312,14 @@
# property receives a value (in seconds), it
# will override the TTL for all records.

#dns_stale_ttl = 3600 # Defines, in seconds, how long a record will
#dns_stale_ttl = 4 # 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.
# Stale data will be used from expiry of a
# record until either the refresh query
# completes, or the `dns_stale_ttl` number of
# seconds have passed.
# This configuration enables Kong to be more
# resilient during resolver downtime.

#dns_cache_size = 10000 # Defines the maximum allowed number of
# DNS records stored in memory cache.
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 @@ -156,7 +156,7 @@ dns_resolver = NONE
dns_hostsfile = /etc/hosts
dns_order = LAST,SRV,A,CNAME
dns_valid_ttl = NONE
dns_stale_ttl = 3600
dns_stale_ttl = 4
dns_cache_size = 10000
dns_not_found_ttl = 30
dns_error_ttl = 1
Expand Down

0 comments on commit 2dbd59d

Please sign in to comment.