[Elasticsearch] 스냅샷이 지워지지 않는 경우

2019. 8. 16. 18:40Elasticsearch

스냅샷 상태 확인: curl -s -XGET "http://localhost:9200/_snapshot/my_cluster/my_index?pretty"

스냅샷 삭제: curl -X DELETE "http://localhost:9200/_snapshot/my_cluster/my_index?pretty"

 

snapshot delete hangs, stuck 등의 검색어로 많이 질문이 나오는데 답변이 다 복잡하고 애매모호

 

그 중 명확한 해결책으로 보이는 것이 스냅샷 상태를 확인 후(GET /_snapshot/backup/_status) 상태가 이상한 놈이 존재하는 노드를 내렸다 올리는 것

 

https://discuss.elastic.co/t/if-you-cant-delete-a-stuck-in-progress-aborted-snapshot/65041

 

If you can't delete a "stuck" (In progress/aborted) snapshot

Maybe this is only an issue in older versions, but I've seen a few posts about this and no solution other than rolling restarts. I've seen this issue a few times, and have been able to resolve it without restarting all the nodes. You can tun GET /_snapshot

discuss.elastic.co

사랑해요 캐시오웬