Hi, I have problems with a curator, when I try to allocate my indices with a curator from hot to spinning, I have message "allocation" completed." but, indices didn't move to a different server
My infrastructure:
elastic-ssd-00[1-5] (hot indices)
elastics-spinning-00[1-3] (spinning indices)
Versions: (ES 5.6.0, Curator 5.8.1)
My config for curator:
---
actions:
1:
action: replicas
description: >-
Set the number of replicas per shard for selected indices to 'count'
options:
count: 0
wait_for_completion: true
max_wait: 600
wait_interval: 10
filters:
- filtertype: pattern
kind: prefix
value: myindices-2020-03-links
exclude: False
2:
action: allocation
description: >-
Apply shard allocation routing to 'require' 'tag=spinning' for hot/spinning node
setup for myindices- indices older than 10 weeks, based on index_creation date
options:
key: storage_type
value: spinning
allocation_type: require
wait_for_completion: true
timeout_override:
continue_if_exception: false
disable_action: false
filters:
- filtertype: pattern
kind: prefix
value: myindices-2020-03-links
exclude: False
# - filtertype: age
# source: creation_date
# direction: older
# unit: weeks
# unit_count: 10
logs:
2020-04-01 09:49:31,770 INFO Preparing Action ID: 1, "replicas"
2020-04-01 09:49:31,770 INFO Creating client object and testing connection
2020-04-01 09:49:31,774 INFO Instantiating client object
2020-04-01 09:49:31,774 INFO Testing client connectivity
2020-04-01 09:49:31,778 INFO Successfully created Elasticsearch client object with provided settings
2020-04-01 09:49:31,781 INFO Trying Action ID: 1, "replicas": Set the number of replicas per shard for selected indices to 'count'
2020-04-01 09:49:32,905 INFO Setting the replica count to 0 for 1 indices: ['myindices-2020-03-links']
2020-04-01 09:49:33,144 INFO Action ID: 1, "replicas" completed.
2020-04-01 09:49:33,144 INFO Preparing Action ID: 2, "allocation"
2020-04-01 09:49:33,144 INFO Creating client object and testing connection
2020-04-01 09:49:33,144 INFO Instantiating client object
2020-04-01 09:49:33,145 INFO Testing client connectivity
2020-04-01 09:49:33,147 INFO Successfully created Elasticsearch client object with provided settings
2020-04-01 09:49:33,149 INFO Trying Action ID: 2, "allocation": Apply shard allocation routing to 'require' 'tag=spinning' for hot/spinning node setup for myindices- indices older than 10 weeks, based on index_creation date
2020-04-01 09:49:33,304 INFO Updating 1 selected indices: ['myindices-2020-03-links']
2020-04-01 09:49:33,304 INFO Updating index setting {'index.routing.allocation.require.storage_type': 'spinning'}
2020-04-01 10:40:15,726 INFO Health Check for all provided keys passed.
2020-04-01 10:40:15,751 INFO Action ID: 2, "allocation" completed.
2020-04-01 10:40:15,752 INFO Job completed.
but when I went to do _cat/shards?pretty
I see "myindices" still at elastic-ssd-00[1-5]
myindices-2020-03-links 0 p STARTED 217276833 58.2gb 1.1.1.3 elastic-ssd-003 myindices-2020-03-links 1 p STARTED 217257225 59.7gb 1.1.1.2 elastic-ssd-002 myindices-2020-03-links 2 p STARTED 217271005 58.8gb 1.1.1.5 elastic-ssd-005 myindices-2020-03-links 3 p STARTED 217260689 60.9gb 1.1.1.2 elastic-ssd-002
When I went to do /myindices-2020-03-links?pretty
I also see "storage_type" was a change
"settings" : { "index" : { "routing" : { "allocation" : { "require" : { "storage_type" : "spinning", "tag" : "spinning" } } },