elasticsearch 常用命令
2016-05-28 22:58
519 查看
4 [root@localhost:bin]#curl -XGEt http://10.0.2.15:9200/_cluster/health
5 关闭整个集群
6 [root@localhost:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nodes/_shutdown?pretty
7 关闭单个节点
8 [root@localhost:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nodes/TbWXkW2dSpa_KWgDK3BeXg/_shutdown?pretty
9 获取节点标识符
10 curl http://192.168.33.10:9200/_cat/indices?v
11
12 github.com/elasticsearch/elasticsearh-servicewrapper 启动脚本
13
14 long2ip( rand(0, ip2long("255.255.255.255") ) ),
15
16 curl http://192.168.33.10:9200/_settings?pretty
17
18 curl -XGET http://localhost:9200/_cluster/health?pretty
19 {
20 "cluster_name" : "myescluster",
21 "status" : "red",
22 "timed_out" : false,
23 "number_of_nodes" : 20,
24 "number_of_data_nodes" : 16,
25 "active_primary_shards" : 2558,
26 "active_shards" : 5628,
27 "relocating_shards" : 0,
28 "initializing_shards" : 4,
29 "unassigned_shards" : 22
30 }••
31 http://pear.php.net/go-pear.phar
32
34 cat /proc/sys/net/netfilter/nf_conntrack_count
35 tail -f /proc/net/nf_conntrack
5 关闭整个集群
6 [root@localhost:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nodes/_shutdown?pretty
7 关闭单个节点
8 [root@localhost:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nodes/TbWXkW2dSpa_KWgDK3BeXg/_shutdown?pretty
9 获取节点标识符
10 curl http://192.168.33.10:9200/_cat/indices?v
11
12 github.com/elasticsearch/elasticsearh-servicewrapper 启动脚本
13
14 long2ip( rand(0, ip2long("255.255.255.255") ) ),
15
16 curl http://192.168.33.10:9200/_settings?pretty
17
18 curl -XGET http://localhost:9200/_cluster/health?pretty
19 {
20 "cluster_name" : "myescluster",
21 "status" : "red",
22 "timed_out" : false,
23 "number_of_nodes" : 20,
24 "number_of_data_nodes" : 16,
25 "active_primary_shards" : 2558,
26 "active_shards" : 5628,
27 "relocating_shards" : 0,
28 "initializing_shards" : 4,
29 "unassigned_shards" : 22
30 }••
31 http://pear.php.net/go-pear.phar
32
34 cat /proc/sys/net/netfilter/nf_conntrack_count
35 tail -f /proc/net/nf_conntrack
相关文章推荐
- 关于.net服务启动注册到zookeeper,但是注册节点20分钟自动消失解决办法
- 20—小结(Week)
- 关于JAVA的那些事儿
- Cisco UC-功能-01-电话-拔出拔入-Cisco IP Phone
- 微信支付id出现的重复支付解决方法和app应用中多种支付方式之间的对比
- Centos 安装golang beego
- Opticks依赖库的下载和编译
- jmx实例
- mysql 优化(3)聚簇索引和非聚簇索引
- 使用wait()与notify()实现线程间协作
- 【LQ系列】BEGIN-1~BEGIN-4
- 低功耗蓝牙(BLE)
- word中如何修改脚注上方短横线的格式?
- Leetcode no. 231
- Theano下怎么配置GPU和cudnn加速
- 用两个栈实现队列与二叉树的镜像
- IEEE 802.15.4协议完整中文版 - 1. 概述
- NJSD2016《 高效率的Android开发》PPT分享
- linux性能分析及调优__cpu 性能瓶颈调优可调性能参数 、内存性能瓶颈可调性能参数(操作系统设置swap的目的、在写程序时、如何使自己的内存不被换出swap,常驻物理内存)、磁盘I/O可调性能参
- git常用命令让你几步摆脱图形工具提交项目