设置默认的刷新时间 单位: 比如设置为1分钟
[C#] 纯文本查看 复制代码 PUT student/_settings
{
"index" : {
"refresh_interval" : "1m"
}
}
重置取消设置
[C#] 纯文本查看 复制代码 PUT student/_settings
{
"index" : {
"refresh_interval" : null
}
}
设置为不更新
[C#] 纯文本查看 复制代码 PUT student/_settings
{
"index" : {
"refresh_interval" : “-1”
}
}
备份数据
[C#] 纯文本查看 复制代码 集群备份常用语句
PUT _snapshot/es_ckb_backup/all_2021_04_02_am
备份全部索引, 备份名称 [ all_2021_04_02_am ]
GET _snapshot/es_ckb_backup/all_2021_04_02_am/_status
检查备份 all_2021_04_02_am 的进度1310
GET _snapshot/my_backup/_all
检查当前仓库中所有的备份信息
DELETE _snapshot/my_backup/all_2021_04_08_am
删除快照 [ all_2021_04_02_am ]
POST _snapshot/my_backup/all_2021_04_10_pm01/_restore
POST _snapshot/my_backup/all_2021_04_08_am/_restore?wait_for_completion=true
快照恢复 [ all_2021_04_02_am ]
GET es_ckb_com/_recovery
GET /_recovery/
监控快照恢复情况 , 监控 [ all_2021_04_02_am ]
|