-
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
Remove auto
option from setup.ilm.enabled
and set the default value to true
#28671
Remove auto
option from setup.ilm.enabled
and set the default value to true
#28671
Conversation
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This pull request does not have a backport label. Could you fix it @kvch? 🙏
NOTE: |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
@@ -26,7 +26,7 @@ Example configuration: | |||
|
|||
["source","yaml",subs="attributes"] | |||
---- | |||
setup.ilm.enabled: auto | |||
setup.ilm.enabled: true | |||
setup.ilm.rollover_alias: "{beatname_lc}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a follow up: As we only have data streams in 8.0, the rollover_alias config can be removed. Deprecate in 7.x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
return false, errOf(ErrESVersionNotSupported) | ||
} | ||
return false, nil | ||
} | ||
|
||
if !enabled && mode == ModeEnabled { | ||
if !enabledILM && enabled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if enabled == false
we should never get to this line of code because of line 96?
} | ||
return avail, probe | ||
func checkILMVersion(ver common.Version) (avail bool) { | ||
return !ver.LessThan(esMinILMVersion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checked in the code what esMinILMVersion
and it is 6.6.0, so we will also be able to get rid of this code 🥳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So let's clean this up 👍🏼
Hi @kvch, We have gone through this ticket and tried to locate the proposed changes. However, we are unable to find 'setup.ilm.enabled' property in beats yml files. Could you please brief us on how to validate the above merged PR. Thanks, |
The option is called |
Hi @kvch Thanks for sharing the feedback on our queries. We are now able to fetch the option under filebeat.reference.yml file in commented form. Query: can you please confirm if we need to uncomment it from now while doing beats install on 8.0 and also if any other steps are required to perform so that beats data is generated into data streams and not as indices. Thanks |
No need to uncomment it. It is enabled by default. |
What does this PR do?
This PR removes
auto
from the available options ofsetup.ilm.enabled
. Previously,auto
was used to ease users into using ILM in 7.x by only loading ILM if Elasticsearch supported it.Why is it important?
With moving to 8.x, the option no longer make sense, because the supported Elasticsearch supports ILM always. Also, as we are adopting data streams, the suggested solution is to use ILM to manage the backing indices of data streams. Thus, I would not like to expose the option of managing indices with Beats without ILM. We should let users skip loading an ILM policy, but we should rely on ILM for index management.
In this PR a moderately complex part of ILM loading is removed. 🎉
Checklist
- [ ] I have commented my code, particularly in hard-to-understand areasCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.