-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Index template loading from beats #17923
Comments
When working on documentation improvement, can you also make sure to stress the "danger" of having These setting could potentially cause elasticsearch updating templates every time when there's a document get ingested and that's a huge load to elasticsearch cluster if there are large number of templates to be updated. This is frequently seen as a cause of unstable cluster. Here are few places the settings were mentioned:
Worth adding the same comment into the reference yml file. |
@Leaf-Lin templates only get loaded to ES when the beat is started or the |
Ah. sorry, I probably got those settings confused somehow. What I was referring to was elastic/elasticsearch#57662 which has been fixed in elastic/elasticsearch#57851. This was caused by some template update settings in beats. |
Even though each Beat only triggers a create-template request at startup, we nonetheless encounter quite a few clusters that are completely overwhelmed by an excess of create-template requests thanks to a large number of Beats all (presumably) starting up at the same time. We've made some changes on the Elasticsearch side to improve our handling in this area, and more improvements on the way, but it'd be even better to avoid having to handle all these requests in the first place. So I'm +1 on documenting the risks of setting |
This is not the case when Beats is receiving a back pressure response from the cluster and Metricbeat detects the template:
Then encounters a 429:
Now the publisher is disconnected. Retry:
License check
Try to load the template:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Hi! We're labeling this issue as |
Beats documentation contains a lot of references about index templates.
Although this is a feature of beats, when trying to customise these, it generally adds additional overhead to have custom templates on beats agents. It will also require additional permissions on the beat agent user when security is enabled to load templates.
A more sensible approach is to recommend users to centrally manage these index templates. Through Elasticsearch API or other means in the future.
The docs can reflect that. Provide guidance around best practices on managing/customising index templates.
This is also valid for ILM and Kibana dashboards as well.
Having a central way to manage them makes more sense when you are running with a large number of beats, and it would be good to reflect this in docs.
The text was updated successfully, but these errors were encountered: