From 7e0e6367c6ac9dffdc14f00a930b3fe035f016cf Mon Sep 17 00:00:00 2001 From: Xiaoch Date: Fri, 27 Oct 2023 19:03:56 +0800 Subject: [PATCH] fix(conf): set default value of `dns_no_sync` to `on` (#11869) This is a temporary workaround for the DNS client blocking issue until a more permanent solution can be developed. Fix FTI-5348 --------- Co-authored-by: Datong Sun (cherry picked from commit 3be2513a60b9f5f0a89631ff17c202e6113981c0) --- changelog/unreleased/kong/fix_dns_enable_dns_no_sync.yml | 3 +++ kong.conf.default | 2 +- kong/templates/kong_defaults.lua | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog/unreleased/kong/fix_dns_enable_dns_no_sync.yml diff --git a/changelog/unreleased/kong/fix_dns_enable_dns_no_sync.yml b/changelog/unreleased/kong/fix_dns_enable_dns_no_sync.yml new file mode 100644 index 000000000000..3e7b20b95266 --- /dev/null +++ b/changelog/unreleased/kong/fix_dns_enable_dns_no_sync.yml @@ -0,0 +1,3 @@ +message: The default value of `dns_no_sync` option has been changed to `on` +type: bugfix +scope: Configuration diff --git a/kong.conf.default b/kong.conf.default index 10bdf50d1b59..33f5c5274646 100644 --- a/kong.conf.default +++ b/kong.conf.default @@ -1543,7 +1543,7 @@ #dns_error_ttl = 1 # TTL in seconds for error responses. -#dns_no_sync = off # If enabled, then upon a cache-miss every +#dns_no_sync = on # If enabled, then upon a cache-miss every # request will trigger its own dns query. # When disabled multiple requests for the # same name/type will be synchronised to a diff --git a/kong/templates/kong_defaults.lua b/kong/templates/kong_defaults.lua index 4a450fd08825..e6915a699f06 100644 --- a/kong/templates/kong_defaults.lua +++ b/kong/templates/kong_defaults.lua @@ -159,7 +159,7 @@ dns_stale_ttl = 4 dns_cache_size = 10000 dns_not_found_ttl = 30 dns_error_ttl = 1 -dns_no_sync = off +dns_no_sync = on dedicated_config_processing = off worker_consistency = eventual