Increase http.max_header_size default to 16kb (#88725)

Our current default for the http.max_header_size setting is 8kb. This
is lower than the current default for Kibana (16kb in 8.x), and the ESS
proxy (1mb based on the Go http library default). To align with the
current convention of other Elastic components, this PR increases the
ES header size setting default to 16kb.

Closes #88501
This commit is contained in:
Nikolaj Volgushev 2022-07-25 12:57:28 +02:00 committed by GitHub
parent 0f55bce3cc
commit b04c0f3c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,6 @@
pr: 88725
summary: Increase `http.max_header_size` default to 16kb
area: Network
type: enhancement
issues:
- 88501

View file

@ -51,7 +51,7 @@ Maximum size of an HTTP URL. Defaults to `4kb`.
`http.max_header_size`::
(<<static-cluster-setting,Static>>)
Maximum size of allowed headers. Defaults to `8kb`.
Maximum size of allowed headers. Defaults to `16kb`.
[[http-compression]]
// tag::http-compression-tag[]

View file

@ -106,7 +106,7 @@ public final class HttpTransportSettings {
);
public static final Setting<ByteSizeValue> SETTING_HTTP_MAX_HEADER_SIZE = Setting.byteSizeSetting(
"http.max_header_size",
new ByteSizeValue(8, ByteSizeUnit.KB),
new ByteSizeValue(16, ByteSizeUnit.KB),
Property.NodeScope
);
public static final Setting<Integer> SETTING_HTTP_MAX_WARNING_HEADER_COUNT = intSetting(