es索引管理工具——curator
来源:互联网 发布:势不可挡网络剧预告片 编辑:程序博客网 时间:2024/06/06 15:46
curator_run.sh脚本
==================================================
#!/bin/bash
CURATOR_PROG="/usr/bin/curator"
CURATOR_PATH="/data/disk/sda1/software/scripts/curator"
CURATOR_CONF="${CURATOR_PATH}/curator.yml"
CURATOR_ACTIONS_CONF="${CURATOR_PATH}/actions.yml"
#$CURATOR_PROG --dry-run --config $CURATOR_CONF $CURATOR_ACTIONS_CONF
$CURATOR_PROG --config $CURATOR_CONF $CURATOR_ACTIONS_CONF
curator.yml配置文件
==================================================
---
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
client:
hosts:
- 127.0.0.1
port: 9200
use_ssl: False
ssl_no_validate: False
timeout: 120
master_only: False
logging:
loglevel: INFO
logfile: /data/disk/sda1/software/scripts/curator/curator.log
#logfile:
logformat: default
#blacklist: ['collect300', 'collect3600', 'collect86400']
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
client:
hosts:
- 127.0.0.1
port: 9200
use_ssl: False
ssl_no_validate: False
timeout: 120
master_only: False
logging:
loglevel: INFO
logfile: /data/disk/sda1/software/scripts/curator/curator.log
#logfile:
logformat: default
#blacklist: ['collect300', 'collect3600', 'collect86400']
actions.yml
==================================================
---
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True. If you
# want to use this action as a template, be sure to set this to False after
# copying it.
actions:
hot_to_warm:
action: allocation
description: >-
Apply shard allocation routing to 'require' 'box_type=cold' for hot/warm node
setup for test- indices older than 7 days, based on index_creation
date
options:
key: box_type
value: warm
allocation_type: require
wait_for_completion: False
timeout_override:
continue_if_exception: False
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: '^.*-(collect300|collect3600|collect86400)-.*$'
exclude: True
- filtertype: age
source: name
direction: older
timestring: '%Y%m%d'
unit: days
unit_count: 2
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True. If you
# want to use this action as a template, be sure to set this to False after
# copying it.
actions:
hot_to_warm:
action: allocation
description: >-
Apply shard allocation routing to 'require' 'box_type=cold' for hot/warm node
setup for test- indices older than 7 days, based on index_creation
date
options:
key: box_type
value: warm
allocation_type: require
wait_for_completion: False
timeout_override:
continue_if_exception: False
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: '^.*-(collect300|collect3600|collect86400)-.*$'
exclude: True
- filtertype: age
source: name
direction: older
timestring: '%Y%m%d'
unit: days
unit_count: 2
action: close
description: >-
Close indices older than 14 days (based on index name), for test-
prefixed indices.
options:
delete_aliases: False
timeout_override:
continue_if_exception: False
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: '^.*-(collect300|collect3600|collect86400)-.*$'
exclude: True
- filtertype: age
source: name
direction: older
timestring: '%Y%m%d'
unit: days
unit_count: 3
阅读全文
0 0
- es索引管理工具——curator
- elasticsearch时间格式索引管理工具: curator
- es curator安装使用记录
- 脚本——根据昨天es索引的大小,提前创建明天的索引
- zookeeper——leader选举(curator)
- es集群web管理工具cerebro
- curator
- Curator
- 基于Cocos2d-x学习OpenGL ES 2.0系列——使用VBO索引(4)
- ES批量添加索引
- ES索引优化
- ES创建索引
- 批量删除es索引
- ES索引延时监控
- es的索引合并
- ES索引存储原理
- es索引管理
- 项目管理工具—Maven
- C语言小记
- 【人工智能】动物、植物、车型、菜品、LOGO识别示例代码
- 自学OPENCV+PYTHON+MACOS-X(2)
- 图片的三级缓存
- 计算一段代码执行时间
- es索引管理工具——curator
- HTTP协议详解——压缩问题
- 亿级Web系统的容错性建设实践
- 8. UE4的盒体触发器和时间轴(制作感应门)
- Maven Jar冲突解决方案
- Visual Studio 快捷键
- 购买商品
- 0-1背包问题的动规解法
- iOS支付宝支付集成