Skip to content
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

Alias Action #35

Closed
adityaj1107 opened this issue Jun 3, 2021 · 6 comments
Closed

Alias Action #35

adityaj1107 opened this issue Jun 3, 2021 · 6 comments
Labels
action Index management actions enhancement New request

Comments

@adityaj1107
Copy link
Contributor

Issue by dbbaughe
Tuesday Feb 11, 2020 at 19:05 GMT
Originally opened as opendistro-for-elasticsearch/index-management#148


During the community meeting, someone asked if it was possible to have an action to add an alias to the index.
Will use this issue to track it + see if other people are interested.

@adityaj1107 adityaj1107 added action Index management actions enhancement New request labels Jun 3, 2021
@adityaj1107
Copy link
Contributor Author

Comment by dbbaughe
Tuesday Aug 11, 2020 at 04:32 GMT


Hey @jasonrojas, @teddyphreak, and @dparker18

Do you have some examples of what you would be using this for? And any specific optional settings for the alias operation?

@adityaj1107
Copy link
Contributor Author

Comment by samling
Tuesday Aug 11, 2020 at 05:13 GMT


One use case we have is for indices older than a certain age, we allocate them to a cold node, shrink them, delete the original and create an alias with the original name that points to the shrink index. This keeps our shard count down while not breaking queries for older data.

@adityaj1107
Copy link
Contributor Author

Comment by dparker18
Tuesday Aug 11, 2020 at 05:14 GMT


My use case is when an index foo is shrunk, it becomes shrink-foo. An alias action would allow the new shrunk index to also be aliased to foo so applications don't know the difference. When we moved from x-pack and ILM to ISM, the aliasing had to be handled with custom code outside ES. I'd be just as happy with the alias being an optional setting on the shrink operation. Happy to share details, but what we're doing is pretty basic.

@adityaj1107
Copy link
Contributor Author

Comment by jasonrojas
Tuesday Aug 11, 2020 at 14:02 GMT


my use case is around the shrinking of indices as well. But in general I think it would be great to support adding an alias, especially if we get to the stage where we can roll up indices into single indices then alias them with the ones that were rolled up.

@adityaj1107
Copy link
Contributor Author

Comment by tharsha18
Friday Sep 11, 2020 at 19:50 GMT


My use case is, If we have an alias for an index with rollover ILM policy, can we remove it from alias after some predefined days, let's say 30 days? I know there is a way to delete an index once its old, but in our case we do not want to delete but want the index to be removed from alias and have the alias switch and point to indices whose age is less than 30 days.

@adityaj1107
Copy link
Contributor Author

Comment by CharlesZ-Chen
Thursday Dec 17, 2020 at 19:34 GMT


My use case is:

we provide search_alias to search our dataset. We publish new version of dataset every week as a new index (e.g. dataset-yyyy-MM-dd. We want the search_alias always pointing to the latest published dataset.
The process is:
ingest new data to a new index
once ingestion finish, re-pointing search_alias to the new index, remove old index from the search_alias

@dbbaughe dbbaughe mentioned this issue Mar 11, 2022
1 task
goyamegh added a commit to goyamegh/index-management that referenced this issue Oct 20, 2022
Signed-off-by: Megha Goyal <goyamegh@amazon.com>
@goyamegh goyamegh mentioned this issue Nov 1, 2022
1 task
bowenlan-amzn pushed a commit that referenced this issue Nov 3, 2022
* Adds an alias action (#35)

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

* Enabling alias action on managed indices only

* Add checks to aid debugging and testing steps for using alias action

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

Signed-off-by: Megha Goyal <goyamegh@amazon.com>
opensearch-trigger-bot bot pushed a commit that referenced this issue Nov 3, 2022
* Adds an alias action (#35)

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

* Enabling alias action on managed indices only

* Add checks to aid debugging and testing steps for using alias action

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

Signed-off-by: Megha Goyal <goyamegh@amazon.com>
(cherry picked from commit 50072af)
opensearch-trigger-bot bot pushed a commit that referenced this issue Nov 3, 2022
* Adds an alias action (#35)

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

* Enabling alias action on managed indices only

* Add checks to aid debugging and testing steps for using alias action

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

Signed-off-by: Megha Goyal <goyamegh@amazon.com>
(cherry picked from commit 50072af)
khushbr pushed a commit that referenced this issue Nov 3, 2022
* Adds an alias action (#35)

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

Co-authored-by: Megha Goyal <56077967+goyamegh@users.noreply.github.com>
khushbr pushed a commit that referenced this issue Nov 3, 2022
* Adds an alias action (#35)

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

Co-authored-by: Megha Goyal <56077967+goyamegh@users.noreply.github.com>
wuychn pushed a commit to ochprince/index-management that referenced this issue Mar 16, 2023
…opensearch-project#589)

* Adds an alias action (opensearch-project#35)

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

Co-authored-by: Megha Goyal <56077967+goyamegh@users.noreply.github.com>
ronnaksaxena pushed a commit to ronnaksaxena/index-management that referenced this issue Jul 19, 2023
…opensearch-project#589)

* Adds an alias action (opensearch-project#35)

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

Co-authored-by: Megha Goyal <56077967+goyamegh@users.noreply.github.com>
Signed-off-by: Ronnak Saxena <ronsax@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action Index management actions enhancement New request
Projects
None yet
Development

No branches or pull requests

2 participants