Skip to content

Commit

Permalink
chore: disable `dedicated_config_processing by default
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Schmid <[email protected]>
(cherry picked from commit 6bccc87)
  • Loading branch information
jschmid1 authored and bungle committed Oct 27, 2023
1 parent 62e7c23 commit 729fab6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion changelog/3.5.0/kong/dedicated_config_processing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
message: |
rename `privileged_agent` to `dedicated_config_processing. Enable `dedicated_config_processing` by default
rename `privileged_agent` to `dedicated_config_processing.
type: feature
scope: Core
4 changes: 2 additions & 2 deletions kong.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
# cache (i.e. when the configured
# `mem_cache_size`) is full.

#dedicated_config_processing = on # Enables or disables a special worker
#dedicated_config_processing = off # Enables or disables a special worker
# process for configuration processing. This process
# increases memory usage a little bit while
# allowing to reduce latencies by moving some
Expand Down Expand Up @@ -2127,7 +2127,7 @@
# information such as domain name tried during these processes.
#
#request_debug = on # When enabled, Kong will provide detailed timing information
# for its components to the client and the error log
# for its components to the client and the error log
# if the following headers are present in the proxy request:
# - `X-Kong-Request-Debug`:
# If the value is set to `*`,
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 @@ -161,7 +161,7 @@ dns_not_found_ttl = 30
dns_error_ttl = 1
dns_no_sync = off
dedicated_config_processing = on
dedicated_config_processing = off
worker_consistency = eventual
worker_state_update_frequency = 5
Expand Down
5 changes: 3 additions & 2 deletions spec/01-unit/03-conf_loader_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("Configuration loader", function()
assert.same({}, conf.status_ssl_cert)
assert.same({}, conf.status_ssl_cert_key)
assert.same(nil, conf.privileged_agent)
assert.same(true, conf.dedicated_config_processing)
assert.same(false, conf.dedicated_config_processing)
assert.same(false, conf.allow_debug_header)
assert.is_nil(getmetatable(conf))
end)
Expand Down Expand Up @@ -2020,7 +2020,7 @@ describe("Configuration loader", function()
privileged_agent = "on",
}))
assert.same(nil, conf.privileged_agent)
assert.same(true, conf.dedicated_config_processing)
assert.same(false, conf.dedicated_config_processing)
assert.equal(nil, err)

-- no clobber
Expand Down Expand Up @@ -2419,6 +2419,7 @@ describe("Configuration loader", function()
assert.matches(label.err, err)
end
end)

end)

end)
2 changes: 1 addition & 1 deletion spec/kong_tests.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ anonymous_reports = off

worker_consistency = strict

dedicated_config_processing = on
dedicated_config_processing = off

dns_hostsfile = spec/fixtures/hosts

Expand Down

0 comments on commit 729fab6

Please sign in to comment.