temporarily record -es

http://www.cnblogs.com/xing901022/p/4704319.html

http://wiki.jikexueyuan.com/project/elasticsearch-definitive-guide-cn/310_Geopoints/00_Intro.html

http://kibana.logstash.es/content/kibana/v5/production.html

http://www.infoq.com/cn/articles/review-the-logstash-book/

http://es.xiaoleilu.com/index.html

http://www.tuicool.com/articles/qYvUfuz 5.0 optimization

http://blog.csdn.net/jiuqiyuliang/article/details/51240800Installation introductionhttp :
//rockelixir.iteye.com/blog/1883373Configuration

http://www.cnblogs.com/xing901022/p/6030296.html 5.0 installation

http://blog.csdn.net/ming_311/article/details/50619859  kibana

logstash+Kibana+ElasticSearch

 

./bin/elasticsearch -Epath.conf=/opt/zh_es/zhaohu_appes0/config/ -d -p /opt/zh_es/zhaohu_appes0/elasticsearch_0.pid


Virtual memory settings under Linux:
view
sysctl -a|grep vm.max_map_count


 # sysctl -w vm.max_map_count=262144
takes effect permanently:

 update the vm.max_map_count setting in /etc/sysctl.conf.
  # echo "vm.max_map_count=262144" >> /etc/sysctl.conf && sysctl -p

./bin/elasticsearch -d -p pid
kill `cat pid`

API:
View Status:
http://99.12.90.6:9200/_cluster/health?pretty

Shut down the cluster:
curl -XPOST http://99.12.90.6:9200/_cluster/nodes/_shutdown
 Shut down a single node xx mark
curl -XPOST http://99.12.90.6:9200/_cluster/nodes/xxxxx/_shutdown
  View node mark
curl -XGET http://99.12.90.6:9200/_cluster/state/nodes/

查询
http://99.12.90.6:9200/books/_search?pretty&q=title:elatsticsearch

 

 

ES的5.0版本听说在性能上大大优化于是老大说准备换5.0版本。由于在技术群看到很多人都说ES 5.0 安装有问题在这里贴出自己在使用最新版5.0遇到的问题和解决方法

1、Elasticsearch 的插件: 现在marvel等插件都包含在x-pack的插件中可通过以下命令安装:

 

./bin/elasticsearch-plugin install x-pack

 

注意:安装了x-pack后es会包含security模块因此不能再直接访问而是需要通过用户名和密码才能访问这点很不一样详细未曾深究已经将x-pack去掉

2、安装出现的错误一: max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

 解决方法:切换到root用户进入vi /etc/security/limits.conf  增加配置(保存后注意切回work用户的时候才能生效sudo 修改的不能立即生效):

 

work soft nofile 819200
work hard nofile 819200

 

3、安装错误二: max number of threads [1024] for user [work] likely too low, increase to at least [2048]

 

解决方法:进入limits.d下的配置文件:vi /etc/security/limits.d/90-nproc.conf 修改配置如下:

 

*          soft    nproc     1024
修改为:
*          soft    nproc     2048


4、安装错误三: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

 

 

解决方法:修改sysctl文件:vi /etc/sysctl.conf 增加下面配置项:

 

增加改行配置:vm.max_map_count=655360
保存退出后执行:
sysctl -p


4、另外再配置ES的时候threadpool.bulk.queue_size 已经变成了thread_pool.bulk.queue_size ES_HEAP_SIZEES_MAX_MEM等配置都变为ES_JAVA_OPTS这一配置项如限制内存最大最小为1G:

 

 

export ES_JAVA_OPTS="-Xms1g -Xmx1g"

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326821337&siteId=291194637