-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ILM] Policy phases redesign #88671
[ILM] Policy phases redesign #88671
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
@elasticmachine merge upstream |
return ( | ||
isNewPolicy || // enable index priority for new policies | ||
!policy.phases[phase]?.actions || // enable index priority for new phases | ||
policy.phases[phase]?.actions?.set_priority != null // enable index priority if it's set |
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.
Hi @jloleysens , here is a change to setting default index priority we discussed. Could you please have a look?
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.
Thanks, this makes sense to me! @andreidan @dakrone , this is in line with the current index priority behaviour. I wonder if at this time we can change the past behavior and exclude index priority by default on phases. Currently, it is on for all phases by default for new policies, with defaults for hot being highest, warm second highest and cold lowest.
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.
Excellent work @yuliacech, this is a very cool enhancement!
Happy for you to merge, it would be cool to drive the question about index priority to its conclusion here, but I think we can also return to it 👍🏻
return ( | ||
isNewPolicy || // enable index priority for new policies | ||
!policy.phases[phase]?.actions || // enable index priority for new phases | ||
policy.phases[phase]?.actions?.set_priority != null // enable index priority if it's set |
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.
Thanks, this makes sense to me! @andreidan @dakrone , this is in line with the current index priority behaviour. I wonder if at this time we can change the past behavior and exclude index priority by default on phases. Currently, it is on for all phases by default for new policies, with defaults for hot being highest, warm second highest and cold lowest.
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 looks good! Thanks for working through the back and forth of the designs!
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
* Phases redesign * Title and name field layout * Active highlight wip * Copy comments * Updated data allocation dropdown * Min age error message * Fixed tests * Fixed edit policy integration tests * Fixed more tests * Cleaned up test files * Use hotProperty instead of a string * Clean up in phase component * Fixed i18n files * Updated optional fields * Updated aria attributes after running axe tests * Added review suggestions * Reversed data allocation field changes * Fixed type error * Reversed on/off label and prepend input label * Deleted property consts from phases components * Removed not needed i18n consts and added i18n where missing * Fixed merge conflicts with master Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Phases redesign * Title and name field layout * Active highlight wip * Copy comments * Updated data allocation dropdown * Min age error message * Fixed tests * Fixed edit policy integration tests * Fixed more tests * Cleaned up test files * Use hotProperty instead of a string * Clean up in phase component * Fixed i18n files * Updated optional fields * Updated aria attributes after running axe tests * Added review suggestions * Reversed data allocation field changes * Fixed type error * Reversed on/off label and prepend input label * Deleted property consts from phases components * Removed not needed i18n consts and added i18n where missing * Fixed merge conflicts with master Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💔 Build Failed
Failed CI Steps
Test FailuresChrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/data_frame_analytics/cloning·ts.machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form opens the existing job in the data frame analytics job wizardStandard Out
Stack Trace
X-Pack EPM API Integration Tests.x-pack/test/fleet_api_integration/apis/fleet_setup·ts.Fleet Endpoints fleet_setup should not create a fleet_enroll role if one does not already existStandard Out
Stack Trace
X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/modules/setup_module·ts.apis Machine Learning modules module setup sets up module data for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory trueStandard Out
Stack Trace
and 3 more failures, only showing the first 3. Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
This PR is a part of data tiers redesign work in ILM.
Changes include:
All form controls in a phase use 'on/off' labels and hide any additional controls if disabledAll form controls have a new style (prepend label)Screenshots
Expand to see screenshots
Edit policy form
Hot phase expanded form
Warm phase expanded form
Cold phase expanded form
Checklist
Delete any items that are not applicable to this PR.
How to test
yarn kbn bootstrap
yarn start
andyarn es snapshot
in a separate terminal tabThere is a possibility to test with the Amsterdam theme in Kibana:
v7
tov8(beta)
TODO in following PRs
Release note
Data tier formalization in Elasticsearch offers a built-in way of stratifying nodes into different tiers, from fastest to slowest machines. Data is allocated to tiers using ILM phases, which prompted a redesign of the previous ILM UI and UX. The new UI and UX is designed to:
Screenshots
Toggle screenshots
Gif