使用 ISM 策略时,需要在创建索引期间应用索引策略设置,但一旦通过策略中某个阶段/阶段应用的翻转操作创建新索引,这些设置就会丢失。
例如,具有以下形式的索引:
pattern: msp-* [* => number, in the index template]
alias: msp-*-alias [applied during the index creation]
rollover alias: msp-*-alias
policy: msp-policy-id
拥有一个模板索引模式msp-*
(其中 * 是一个数字)会阻碍为每个 * 可以自动应用的值使用翻转别名 msp-*-alias。这种情况怎么办?
参考:
https://github.com/elastic/elasticsearch/issues/20367
https://github.com/opendistro-for-elasticsearch/index-management/issues/95
https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/ism.html