elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.64k stars 8.23k forks source link

[Fleet] Give the ability to set up elastic agent download timeout #121069

Open jlind23 opened 2 years ago

jlind23 commented 2 years ago

As part of the policy we should give the ability to the customer to set up "agent.download.timeout: 10s" through the UI instead of letting them do it in the fleet.yml config.

Fleet UI enhancements: 1) agent.download.timeout to be configurable via UI. the default value set to 10minutes 2) NEW: a configurable interval to log an informational "progression" event which tracks the download transmission rate and percentage completed. Default set to every 1 minute. this variable currently doesn't exist and will be implemented.

elasticmachine commented 2 years ago

Pinging @elastic/fleet (Feature:Fleet)

jen-huang commented 2 years ago

@mostlyjason Could be interesting to expose agent settings at the policy level for:

nickbabkin commented 2 years ago

Hi @jlind23 ! Are there any updates on this one?

About 30% of our elastic agents can't upgrade due to poor internet connection plus download timeout being very low currently (120s). I haven't found a way to modify this setting via fleet either.

Would be lovely to have this in the UI.

jlind23 commented 2 years ago

Hi @nickbabkin,

Did you recently try the new rolling upgrade feature in order to release the network pressure? Plus, AFAIR, @blakerouse changed this default timeout to 10minutes.

nickbabkin commented 2 years ago

Hi @jlind23,

Yes we did, we are geographically distributed and unfortunately in some regions connection is so poor that 150 Mb can't be downloaded within 2 minutes.

In what version was download timeout changed to 10 minutes? Maybe I have to manually upgrade our agents to that one first.

jlind23 commented 2 years ago

Hi @nickbabkin the default to 10min was introduced by this PR: https://github.com/elastic/elastic-agent/pull/308 It should be available from 8.3 on.

nickbabkin commented 2 years ago

@jlind23 lovely, thanks! Now I need to find a way to update stuck agents manually to 8.3, and going forward from there I will be upgrading them via Fleet.

muralidharanvenkataraman commented 1 year ago

We are running 8.4.1 version of the elastic agent here. I am trying to upgrade an agent from 8.4.1 to 8.4.2 and the agent download is taking more than 10 minutes from an internal artifacts location. How do I increase the timeout from 10 minutes to a higher number?

ghost commented 1 year ago

We are running a geographically distributed company and aren't able to download the agent binaries in 10 minutes too. We would also love to have the ability to set download timeout from the UI.