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

Shrink action incompatible with new data tier roles #1620

Open
gnobironts opened this issue Oct 4, 2021 · 1 comment
Open

Shrink action incompatible with new data tier roles #1620

gnobironts opened this issue Oct 4, 2021 · 1 comment
Labels

Comments

@gnobironts
Copy link

Expected Behavior

I am running the following shrink action:

actions:
  1:
    action: shrink
    description: >-
      Cooling daily managed indexes older than 3 months
    options:
      ignore_empty_list: True
      continue_if_exception: True
      #disable_action: True
      shrink_node: frovhelsdata-n01.talentsoft.cloud
      number_of_shards: 1
      shrink_suffix: '-shrink'
      post_allocation:
        allocation_type: include
        key: _tier_preference
        value: data_warm,data_hot
      wait_for_completion: True
      wait_for_rebalance: True
    filters:
   ...

I expect the shrink process to run on the frovhelsdata-n01.talentsoft.cloud data node.

Actual Behavior

When using data tier roles instead of generic data, the shrink action is not able to find a valid data node. I get the following message for all my data nodes (set as data_hot or data_warm). shrink_node: DETERMINISTIC also fails.

2021-10-04 16:11:15,725 INFO      Skipping node "frovhelsdata-n01.talentsoft.cloud": non-data node

frovhelsdata-n01.talentsoft.cloud have the following role set :

node.roles:
- data_hot
- data_content
- ingest

Steps to Reproduce the Problem

Use shrink action on a cluster with no "generic" dedicated data nodes

Specifications

  • Version: 5.8.4
  • Platform: Ubuntu 16.04
  • Subsystem:

Context (Environment)

On new deployments, usage of new data tier (https://www.elastic.co/guide/en/elasticsearch/reference/7.x/data-tiers.html) seems to be the new standard.
Implementing these new data tiers in curator should enable shrink support for non ilm managed indexes.

Detailed Description

Curator should allow data_hot (and maybe also data_warm) nodes for _data_node(self, node_id) in actions.py

@untergeek untergeek added the bug label Oct 4, 2021
@untergeek
Copy link
Member

Yeah, this definitely needs to be addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants