elasticsearch 问题解决汇总(随时更新)
403|readonly
由于磁盘空间不足触发了磁盘保护,状态不会在磁盘空间正常后消除,需要手动解决
1 | ##### 清除单表 |
[type=circuit_breaking_exception, reason=[parent] Data too large
原因是filedata占用大量对内存导致.解决方案: 一方面增加jvm对内存,另一方面减少filedata对堆内存的占用.
调整jvm对内存大小(/usr/share/elasticsearch/config)
1
2
3
4
5
6# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
-Xms2g
-Xmx2g调整field data 缓存
1
2
3
4
5
6curl -X PUT "localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
"persistent": {
"indices.breaker.fielddata/limit": "30%"
}
}