current_version

命令示例:

  1. curator --config /path/to/config.yml /path/to/action.yml

定时任务:

  1. 30 2 * * * curator --config /path/to/config.yml /path/to/action.yml

configuration file配置

集群配置文示例

  1. ---
  2. client:
  3. hosts:
  4. - 127.0.0.1
  5. port: 9200
  6. url_prefix: ##single value(connect to ES cluster through a proxy) or left empty.
  7. use_ssl: False
  8. certificate: ##True, False or left empty.
  9. client_cert: ##a file path to your CA certificate, or left empty.
  10. client_key: ##a file path to a client key (private key), or left empty.
  11. ssl_no_validate: False
  12. http_auth: ##a authentication credentials (e.g. user:pass), or left empty.
  13. timeout: 30 ##an integer number of seconds, or left empty.
  14. master_only: False
  15. logging:
  16. loglevel: INFO
  17. logfile: /tmp/curator.log
  18. logformat: default
  19. 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的高级元素有: