- 
                Notifications
    
You must be signed in to change notification settings  - Fork 8.5k
 
[streams][lifecycle] ilm for classic streams #221364
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
Conversation
| 
           This is functionally complete but I'll leave this pending until elastic/elasticsearch#128375 is available since it will simplify the implementation and fix inconsistent configurations. The latter does not break the functionality but break some assertions in api tests  | 
    
| 
           @klacabane is this blocked by anything?  | 
    
| 
           @flash1293 the 9.1.0 ES snapshot did not contain the prefer_ilm change last time I've tested. I can still test locally with a source build but CI will still fail  | 
    
| 
           Seems like the Kibana ES snapshot promotion is held back by some unrelated ML problem. Let's check back  | 
    
| export class UnwiredStream extends StreamActiveRecord<Streams.UnwiredStream.Definition> { | ||
| private _processingChanged: boolean = false; | ||
| private _lifeCycleChanged: boolean = false; | ||
| private _lifecycleChanged: boolean = false; | 
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.
I had to align naming
| // TODO: use client method once available | ||
| esClient.transport.request({ | ||
| method: 'PUT', | ||
| path: `/_data_stream/${names.join(',')}/_settings`, | 
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.
this updates backing indices settings as well
| 
           Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)  | 
    
          💛 Build succeeded, but was flaky
 Failed CI StepsTest Failures
 Metrics [docs]Async chunks
 
 History
  | 
    
| 
           @flash1293 this is ready for another review. Inherit is now blocked on unwired once the lifecycle has been updated, and the   | 
    
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.
Works as expected, LGTM.
I added #222440 to MS3 for now since we didn't make a call yet on how important it is.
| 
           Starting backport for target branches: 8.19  | 
    
## Summary
Enable ILM for classic streams.
We can now overwrite template settings at the data stream level with
`PUT _data_stream/{name}/_settings` so we can enable full lifecycle
capabilities on classic stream.
---------
Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 1abb811)
    
          💚 All backports created successfully
 Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation  | 
    
## Summary
Enable ILM for classic streams.
We can now overwrite template settings at the data stream level with
`PUT _data_stream/{name}/_settings` so we can enable full lifecycle
capabilities on classic stream.
---------
Co-authored-by: kibanamachine <[email protected]>
    | 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
    
      
        2 similar comments
      
    
  
    | 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
| 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
| 
           This backport needs this ES change to be backported first which is WIP  | 
    
| 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
    
      
        1 similar comment
      
    
  
    | 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
## Summary
Enable ILM for classic streams.
We can now overwrite template settings at the data stream level with
`PUT _data_stream/{name}/_settings` so we can enable full lifecycle
capabilities on classic stream.
---------
Co-authored-by: kibanamachine <[email protected]>
    | 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
    
      
        5 similar comments
      
    
  
    | 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
| 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
| 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
| 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
| 
           Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.  | 
    
| 
           @masseyke @klacabane where are we with backporting this PR?  | 
    
          
 The elasticsearch piece is in -- elastic/elasticsearch#129213  | 
    
# Backport This will backport the following commits from `main` to `8.19`: - [[streams][lifecycle] ilm for classic streams (#221364)](#221364) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Kevin Lacabane","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-04T13:48:00Z","message":"[streams][lifecycle] ilm for classic streams (#221364)\n\n## Summary\n\nEnable ILM for classic streams.\n\nWe can now overwrite template settings at the data stream level with\n`PUT _data_stream/{name}/_settings` so we can enable full lifecycle\ncapabilities on classic stream.\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1abb811b2ea0e9cdd30e2b7c21bcfb32488fee84","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-logs","backport:version","Feature:Streams","v9.1.0","v8.19.0"],"title":"[streams][lifecycle] ilm for classic streams","number":221364,"url":"https://github.com/elastic/kibana/pull/221364","mergeCommit":{"message":"[streams][lifecycle] ilm for classic streams (#221364)\n\n## Summary\n\nEnable ILM for classic streams.\n\nWe can now overwrite template settings at the data stream level with\n`PUT _data_stream/{name}/_settings` so we can enable full lifecycle\ncapabilities on classic stream.\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1abb811b2ea0e9cdd30e2b7c21bcfb32488fee84"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221364","number":221364,"mergeCommit":{"message":"[streams][lifecycle] ilm for classic streams (#221364)\n\n## Summary\n\nEnable ILM for classic streams.\n\nWe can now overwrite template settings at the data stream level with\n`PUT _data_stream/{name}/_settings` so we can enable full lifecycle\ncapabilities on classic stream.\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"1abb811b2ea0e9cdd30e2b7c21bcfb32488fee84"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kevin Lacabane <[email protected]> Co-authored-by: Joe Reuter <[email protected]>
| 
           Thanks @masseyke , kicked off another build and it all worked out  | 
    
Summary
Enable ILM for classic streams.
We can now overwrite template settings at the data stream level with
PUT _data_stream/{name}/_settingsso we can enable full lifecycle capabilities on classic stream.