1. 设置自动refresh时间,自动从buff刷到os cache的时间,即文档新增或更新后最长多久后可以被搜索到。
PUT /indexName/_settings
{
"index" : {
"refresh_interval" : "60s"
}
}
2. 硬盘容量超过95%,导致es自动触发 index read-only / allow delete
PUT /indexName/_settings
{
"index.blocks.read_only_allow_delete": null
}
curl -XPUT -H "Content-Type: application/json" -uUserName http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
3. kibana报错kibana is not yet
- kibana和es版本不一致
- 确认版本没问题可以删除kibana索引后重启试试
curl -uUserName -XDELETE http://localhost:9200/.kibana_1 curl -uUserName -XDELETE http://localhost:9200/.kibana_2
持续更新中.....