我使用快照和恢复| Elasticsearch引用设置快照,但是我没有指定我需要快照的多个索引中的哪一个,这导致了我的快照中不需要索引的390(此时),这占用了不必要的资源:
# curl http://0:9200/_snapshot/my_backup/_all?pretty | grep -cE '(filbeat|logstash)-2016' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 62055 100 62055 0 0 4908k 0 --:--:-- --:--:-- --:--:-- 5050k 390 #
我的环境:
# curl 0:9200 { "name" : "k_slO6-", "cluster_name" : "elasticsearch", "cluster_uuid" : "dvoVw1oaTN2V_8f3BLEYhQ", "version" : { "number" : "5.0.1", "build_hash" : "080bb47", "build_date" : "2016-11-11T22:08:49.812Z", "build_snapshot" : false, "lucene_version" : "6.2.1" }, "tagline" : "You Know, for Search" } #
在Debian 8上:
# cat /etc/debian_version 8.6 # cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" # uname -a Linux X 4.8.6-x86_64-linode78 #1 SMP Tue Nov 1 14:51:21 EDT 2016 x86_64 GNU/Linux #
有没有办法从快照中删除特定的索引?