zoukankan      html  css  js  c++  java
  • elasticsearch 常用命令

    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

  • 相关阅读:
    K8S 之Pod简单提供持久化存储
    K8S 备份所有Namespace的yaml应用配置文件
    Ceph 集群部署
    Django cookie使用
    Django CBV使用
    hashlib模块
    如何序列化之json和pickle:
    os模块
    random模块
    os模块
  • 原文地址:https://www.cnblogs.com/shudai/p/5538586.html
Copyright © 2011-2022 走看看