Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Create API endpoint to set fleet.timeout across all policies #155654

Open
kpollich opened this issue Apr 24, 2023 · 3 comments
Open

[Fleet] Create API endpoint to set fleet.timeout across all policies #155654

kpollich opened this issue Apr 24, 2023 · 3 comments
Labels
Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kpollich
Copy link
Member

Ref elastic/elastic-agent#2257
Ref elastic/elastic-agent#2408

In order to support self-managed proxy users who may not be able to control their proxies' timeout configurations, Fleet needs to expose an endpoint that allows them to limit Fleet's long polling timeout to 5 minutes. As part of the above issue/PR, the long polling timeout is being increased to 10 minutes by default for all agents. Users who rely on a proxy with a 5 minute timeout will need a way to revert this change on an opt-in basis.

Create an API + persisted setting, e.g

POST /api/fleet/settings
{
  "agent_check_in_long_poll_interval": "5m|10m" // Only options are 5 or 10 minutes
}

When this setting is updated, all policies need to be redeployed, and each policy generated should include the appropriate fleet.timeout value. See the docs in the above PR for an example:

https://github.com/elastic/elastic-agent/pull/2408/files#diff-f0d296ac94b8457b06ae3376b0642cb39fea46a5c630bcca24701d3464b28b5bR47-R54

@kpollich kpollich added the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 24, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kpollich
Copy link
Member Author

This can be handled via the Fleet settings framework now, afaik.

@jlind23
Copy link
Contributor

jlind23 commented May 29, 2024

@kpollich shall we change this estimate to an S then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

4 participants