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

[Elastic Agent] Implement dynamic reloading of the agent policy #678

Open
criamico opened this issue Jul 6, 2022 · 4 comments
Open

[Elastic Agent] Implement dynamic reloading of the agent policy #678

criamico opened this issue Jul 6, 2022 · 4 comments
Assignees
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@criamico
Copy link

criamico commented Jul 6, 2022

As part of the work for configuring custom source_uri in Fleet UI, we need to be able to configure  agent.download.sourceURI in the Agent Policy, but at the moment the agent is not able to reload the policy at runtime. Could you help out with this feature?

The other option would be to pass the custom source_uri through the fleet-actions, but this would impact the scalability in the case of bulk upgrades (elastic/kibana#135579).

@criamico criamico added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Jul 6, 2022
@michalpristas
Copy link
Contributor

can you elaborate more on scalability concerns here? just curious

@michalpristas
Copy link
Contributor

have a small PR which should address this. kibana branch with changes would be great to test this e2e

@criamico
Copy link
Author

criamico commented Jul 7, 2022

can you elaborate more on scalability concerns here? just curious

Sure! The scalability concerns are from our side and they're related to the way we pass the actions for bulk upgrades.

In order to write the actions for bulk upgrades and specify a different source_uri for each agent, we would need to revert some of the work that we did for supporting rolling upgrades for high number of agents. To support a large number of agents we specify the same options for the whole batch. There is a discussion here.
So the only real option to specify a different source_uri per agent is to write it to the policy and pick up the change from the agent side.

@criamico
Copy link
Author

criamico commented Jul 7, 2022

have a small PR which should address this. kibana branch with changes would be great to test this e2e

Thanks for your quick reply @michalpristas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

2 participants