我的elasticsearch配置单

372 查看

1:安装监控插件:
     # bin/plugin -install polyfractal/elasticsearch-inquisitor
      bin/plugin -install lmenezes/elasticsearch-kopf
      bin/plugin --install mobz/elasticsearch-head
      bin/plugin --install lukas-vlcek/bigdesk
      #bin/plugin --install royrusso/elasticsearch-HQ
     bin/plugin -u http://maven.ansj.org/org/ansj/elasticsearch-analysis-ansj/1.x.1/elasticsearch-analysis-ansj-1.x.1-release.zip -i ansj

2:修改配置,
     cluster.name: xxx
     node.name: xxx
     path.data: /apps/product/search_service/es-data/es-1.4.1  #指定数据放在哪个位置
     bootstrap.mlockall: true    #关掉swap
     discovery.zen.ping.multicast.enabled: false #关掉多播
     transport.tcp.port: 9302  #客户端调用接口
     http.port: 9202     #http调用接口
     index.search.slowlog.threshold.query.info: 1s  #打开慢日志
     index.search.slowlog.threshold.fetch.info: 800ms   #打开慢日志

     #分词配置 参考https://github.com/4onni/elasticsearch-analysis-ansj

################################## ANSJ PLUG CONFIG ################################
index:
   analysis:
     analyzer:
        index_ansj:
            type: ansj_index
        query_ansj:
            type: ansj_query
index.analysis.analyzer.default.type: ansj_index


2018 - 知识虫 - 我的知识库 渝ICP备16002641号-2

渝公网安备 50010702501581号