-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add ILM action to add/remove aliases #47881
Comments
Pinging @elastic/es-core-features (:Core/Features/ILM+SLM) |
Currently, we are exploring changes to the way Aliases are handled and that could lead to some difficulty here. We don't currently have any users asking for this feature. I will keep an eye on this to see if anything comes up. |
I think it would be a very useful feature. |
+1 |
This would be a hugely useful feature. In order to cut down full cluster searches and drop response times we use an alias on our "recent" data. This limits the number of indexes which are being queried and has greatly dropped our response times. once 90 days pass we want to be able to remove the alias or set a new one. This could also possibly be solved by being able to query only nodes in a specific ilm state (hot, warm, cold... etc) but aliases are the most versatile option. |
+1 |
I've requested this functionality before, we would definitely use it on a very large dataset. Almost would like the ability to run custom actions in a phase if the ILM app functionality doesnt immediately cater to something. |
+1 |
2 similar comments
+1 |
+1 |
This feature is very needed! |
+1 |
We discussed this today, and came up with a solution that might meet some (most?) of the use cases, see #68135 for more information about this. It would work for both aliases and data streams (this proposal would not work for data streams, since we do not want to have aliases directly to data stream backing indices). If you have a use case that doesn't involve wanting to query data based on a particular lifecycle, let us know. Or if you have comments on the other proposal please let us know on that issue. |
We expect a similar functional implementation: |
Our use case is similar to what has been described above, we have time-based daily indices with the current day residing on hot nodes, and previous days being moved to warm nodes. This data is pretty much solely viewed through Kibana, and we have an The proposed solution in #68135 is great for queries direct to the Elastic API but doesn't nicely accomodate queries being done through the Kibana UI |
The #68135 solution leaves much to be desired (assuming I understand it). Instead of re-assigning an alias in one place, it's "go find all 500 queries you're making and add tier-knowledge metadata to the query criteria for each one". Right now, we've got a ton of different code bits doing queries to a set of indices via an alias. We aren't currently using ILM due to needing to support older ES versions. Instead, we currently have some scripts that remove indices older than N days from the alias (and moves them from hot-to-warm, force-merge, warm-to-cold, deletes, etc). We'd like to take advantage of ILM for doing all this, but this issue will be a big stumbling block. If we can't update the alias at a point along the ILM way, then instead of querying three days worth of data, we'll be querying all 180 days worth (which we're retaining for potential forensic purposes but don't usually look at). The main benefit of aliases IMO is that they abstract specific knowledge about the index structure and management from users. Using the #68135 method is going the other way: every querying user needs to know what's in hot and what's not. An alternate idea: Would it be possible to create a new kind of "query alias" that could be configured to incorporate index level metadata into queries against it? So that, say, whenever I execute a query on the alias, it automatically incorporates a |
This would work very nicely. The functionality to add alias' at different stages in an ILM policy does seem like pretty fundamental functionality. |
Pinging @elastic/es-data-management (Team:Data Management) |
Could this be handled by using an alias filter on https://www.elastic.co/guide/en/elasticsearch/reference/current/aliases.html#filter-alias
|
Given that the alias used for set of indices managed for ILM includes all the indices (assuming usage of the
is_write_index
flag), which may include frozen indices, or indices on nodes with very slow disks, it may be useful to maintain an alias which queries only the non-frozen indices.We could add an ILM action to add and remove aliases at a certain point in the policy. For example, a policy with this action might look like the following:
This would effectively just make a call to the Index Aliases API to add and remove the indices from the index as appropriate.
The text was updated successfully, but these errors were encountered: