Политика AWS OpenSearch (ElasticSearch) ISM Hot-Warm-Cold-Delete при перемещении холодного индекса в теплый

Я настроил политику ISM для переходов Hot-Warm-Cold-Delete индексов.

В моем сценарии я перемещаю индекс из холодного хранилища, чтобы использовать его в теплом, но я пытаюсь понять, что произойдет при следующем запуске ISM. Будет ли мой индекс в конечном итоге удален с помощью политики ISM, или я должен вручную переместить его обратно в холодное хранилище?

      {
"policy_id": "policy_id_stackoverflow",
"description": "x",
"last_updated_time": 1646341032637,
"schema_version": 1,
"error_notification": null,
"default_state": "ReadWrite",
"states": [
    {
        "name": "ReadWrite",
        "actions": [
            {
                "read_write": {}
            }
        ],
        "transitions": [
            {
                "state_name": "Ultrawarm",
                "conditions": {
                    "min_index_age": "1d"
                }
            }
        ]
    },
    {
        "name": "Ultrawarm",
        "actions": [
            {
                "timeout": "24h",
                "retry": {
                    "count": 5,
                    "backoff": "exponential",
                    "delay": "1h"
                },
                "warm_migration": {}
            },
            {
                "notification": {
                    "destination": {
                        "slack": {
                            "url": "https://url-stackoverflow-redacted"
                        }
                    },
                    "message_template": {
                        "source": "REDACTED",
                        "lang": "mustache"
                    }
                }
            }
        ],
        "transitions": [
            {
                "state_name": "Cold",
                "conditions": {
                    "min_index_age": "2d"
                }
            }
        ]
    },
    {
        "name": "Cold",
        "actions": [
            {
                "retry": {
                    "count": 5,
                    "backoff": "exponential",
                    "delay": "1h"
                },
                "cold_migration": {
                    "start_time": null,
                    "end_time": null,
                    "timestamp_field": "@timestamp",
                    "ignore": "none"
                }
            },
            {
                "notification": {
                    "destination": {
                        "slack": {
                            "url": "REDACTED"
                        }
                    },
                    "message_template": {
                        "source": "REDACTED",
                        "lang": "mustache"
                    }
                }
            }
        ],
        "transitions": [
            {
                "state_name": "Delete",
                "conditions": {
                    "min_index_age": "15d"
                }
            }
        ]
    },
    {
        "name": "Delete",
        "actions": [
            {
                "notification": {
                    "destination": {
                        "slack": {
                            "url": "REDACTED"
                        }
                    },
                    "message_template": {
                        "source": "REDACTED",
                        "lang": "mustache"
                    }
                }
            },
            {
                "cold_delete": {}
            }
        ],
        "transitions": []
    }
],
"ism_template": [
    {
        "index_patterns": [
            "apperrors*",
            "applogs-core*"
        ],
        "priority": 0,
        "last_updated_time": 1646330772853
    }
]

}

0 ответов

Другие вопросы по тегам