current_version
命令示例:
curator --config /path/to/config.yml /path/to/action.yml
定时任务:
30 2 * * * curator --config /path/to/config.yml /path/to/action.yml
configuration file配置
集群配置文示例
---
client:
hosts:
- 127.0.0.1
port: 9200
url_prefix: ##single value(connect to ES cluster through a proxy) or left empty.
use_ssl: False
certificate: ##True, False or left empty.
client_cert: ##a file path to your CA certificate, or left empty.
client_key: ##a file path to a client key (private key), or left empty.
ssl_no_validate: False
http_auth: ##a authentication credentials (e.g. user:pass), or left empty.
timeout: 30 ##an integer number of seconds, or left empty.
master_only: False
logging:
loglevel: INFO
logfile: /tmp/curator.log
logformat: default
blacklist: ['elasticsearch', 'urllib3']
action file配置
The must be, after which there can be any number of actions, nested underneath numbers. Actions will be taken in the order they are completed.
root key必须是 actions
,此后可以有任意数量的动作,嵌套在数字编号下方,action将按完成顺序执行。
每个数字编号下action的高级元素有: