-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Allow changing index settings of a searchable snapshot in the frozen tier #90871
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
Comments
Pinging @elastic/es-data-management (Team:Data Management) |
We're having exactly this problem in our hot-frozen setup: for indexes in the hot zone we want to ensure that each of the 6 shards gets allocated to a diferent node. So we would need to set |
We found yet another relevant use case for this: When using Slow Logs, thresholds that make sense on hot nodes will in most cases not make sense on frozen nodes and vice versa. The thresholds would need to be updated on migration to the frozen tier, to get usable results. https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html |
@gmarouli rather than allowing setting arbitrary index settings for these indices, do you think we could instead only clean the |
@dakrone , I think so, we would have to check which other settings can cause issue though, like the slow logs mentioned before. In order to be complete. Apologies for the late response, I totally missed it. |
We've discussed this within the team and decided we’ll remove |
Is there a target version this will be addressed in? |
@predogma not yet. But it's on our radar. |
Hi @predogma , #97979 has been merge and although this PR is not allowing to change the index setting of a searchable snapshot, it does address the situation that made us create this enhancement request. So, from now on, even if the original index did have |
Description
When using searchable snapshots in
cold
andfrozen
phases the recovered index has the settings that index had just before it was snapshot. A user might have set a setting liketotal_shards_per_node
to match their needs in the hot tier but this doesn't mean that this is relevant in thecold
orfrozen
tier. In thecold
tier a user can use theallocate
action to set this setting to the desired value but this is not possible yet in thefrozen
tier.This issue requests a way to reset or just set index settings in the
frozen
tier.Example:
A user might have the following set-up:
total_shards_per_node
set to 1.hot
tier with 2 nodes and acold
andfrozen
tier with 1 node each.The policy above will have the following effect per tier:
hot
: the index withtotal_shards_per_node
will ensure that every node will have one shard of this indexcold
: the restored snapshot will be restored withtotal_shards_per_node=1
but because of theallocate
action it will be set to 2, so both shards can be allocated in the singlecold
node.frozen
: the partially restored snapshot will be restored withtotal_shards_per_node=1
and one shard will not be able to get allocated because we have 2 shards and only 1 node. Being able to remove or resettotal_shards_per_node
could solve this.The text was updated successfully, but these errors were encountered: