elasticesearch

1、开启脚本:

在每个节点的${ELASTIC_SEARCH_HOME}/config/elasticsearch.yml文件里,加入下面的代码:

script.engine.groovy.inline.update: on

 

 

2、建立索引出现unassigned错误

运行如下http 请求:

curl PUT /_cluster/settings

{
  "transient": {
    "cluster.routing.allocation.enable": "all"
  },
    "persistent": {
    "cluster.routing.allocation.enable": "all"
  }
}

 

 

3、es关闭后,再重新启动时,index恢复时的一些条件。

硬盘空余空间要充足。硬盘空余空间比例值可以在es中配置。

 

4、elasticsearch负载很高解决。

log输出的水平为trace,即查询超过500ms即为慢查询,就要打印日志,造成cpu和mem,io负载很高。把log输出水平改为info,问题解决

 

http://www.chepoo.com/elasticsearch-solve-the-load-high.html

猜你喜欢

转载自7wolfs.iteye.com/blog/2289992