Skip to content

Allow migrating the stored value of the agent checkin long polling timeout #2597

Open
@cmacknz

Description

@cmacknz

The changes in #2408 update the agent to report its configured checkin timeout to Fleet Server. When this parameter is set, Fleet server will dynamically set the server side timeout to the agent's checkin timeout minus 2 minutes. This makes it so that the agent always gets a complete response from Fleet server before its request times out. See elastic/fleet-server#2491.

To work with this new Fleet server feature, #2408 must change the default checkin timeout to 7m so that we keep our existing 5m total checkin duration.

The problem is that for already installed agents, the checkin timeout is persisted to disk at 10m and we currently have no way to override it. We need to add the ability to migrate these saved 10m timeouts to 7m timeouts on upgrade. This must be done prior to merging #2408.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions