diff --git a/changelog/fragments/1771953472-increase-checkin_limit.max_body_byte_size-default.yaml b/changelog/fragments/1771953472-increase-checkin_limit.max_body_byte_size-default.yaml new file mode 100644 index 000000000..54a1f39a5 --- /dev/null +++ b/changelog/fragments/1771953472-increase-checkin_limit.max_body_byte_size-default.yaml @@ -0,0 +1,45 @@ +# REQUIRED +# Kind can be one of: +# - breaking-change: a change to previously-documented behavior +# - deprecation: functionality that is being removed in a later release +# - bug-fix: fixes a problem in a previous version +# - enhancement: extends functionality but does not break or fix existing behavior +# - feature: new functionality +# - known-issue: problems that we are aware of in a given version +# - security: impacts on the security of a product or a user’s deployment. +# - upgrade: important information for someone upgrading from a prior version +# - other: does not fit into any of the other categories +kind: enhancement + +# REQUIRED for all kinds +# Change summary; a 80ish characters long description of the change. +summary: increase checkin_limit.max_body_byte_size default + +# REQUIRED for breaking-change, deprecation, known-issue +# Long description; in case the summary is not enough to describe the change +# this field accommodate a description without length limits. +# description: + +# REQUIRED for breaking-change, deprecation, known-issue +# impact: + +# REQUIRED for breaking-change, deprecation, known-issue +# action: + +# REQUIRED for all kinds +# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc. +component: fleet-server + +# AUTOMATED +# OPTIONAL to manually add other PR URLs +# PR URL: A link the PR that added the changeset. +# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added. +# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number. +# Please provide it if you are adding a fragment for a different PR. +# pr: https://github.com/owner/repo/1234 + +# AUTOMATED +# OPTIONAL to manually add other issue URLs +# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of). +# If not present is automatically filled by the tooling with the issue linked to the PR number. +# issue: https://github.com/owner/repo/1234 diff --git a/fleet-server.reference.yml b/fleet-server.reference.yml index 5b0d38873..9f27d7e46 100644 --- a/fleet-server.reference.yml +++ b/fleet-server.reference.yml @@ -172,7 +172,7 @@ fleet: # interval: 1ms # burst: 1000 # max: 0 -# max_body_byte_size: 1048567 # 1MiB +# max_body_byte_size: 2097152 # 2MiB # artifact_limit: # interval: 5ms # burst: 25 diff --git a/internal/pkg/config/env_defaults.go b/internal/pkg/config/env_defaults.go index fdeebe7c5..22e63945b 100644 --- a/internal/pkg/config/env_defaults.go +++ b/internal/pkg/config/env_defaults.go @@ -35,7 +35,7 @@ const ( defaultCheckinInterval = time.Millisecond defaultCheckinBurst = 1000 defaultCheckinMax = 0 - defaultCheckinMaxBody = 1024 * 1024 + defaultCheckinMaxBody = 1024 * 1024 * 2 defaultArtifactInterval = time.Millisecond * 5 defaultArtifactBurst = 25