<-- 인덱스 생성 -->

curl -XPUT 'http://localhost:9200/epo_backuplog_meta'

curl -XPUT 'http://localhost:9200/m14_201602011000'



<-- delete -->

curl -XDELETE 'http://localhost:9200/epo_backuplog_meta/extract'

curl -XDELETE 'http://localhost:9200/epo_backuplog_meta/archive'

curl -XDELETE 'http://localhost:9200/epo_backuplog_meta/archive/p9_*'

curl -XDELETE 'http://localhost:9200/m14*/'

curl -XDELETE 'http://localhost:9200/info_*/'

curl -XDELETE 'http://localhost:9200/epo_server_info/epo_server_info/M14_defaultwip'


<-- Shutdown -->

curl -XPUT localhost:9200/_cluster/settings -d '{

                "transient" : {

                    "cluster.routing.allocation.enable" : "none"

                }

        }'


curl -XPOST 'http://localhost:9200/_shutdown'

curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown'


curl -XPUT localhost:9200/_cluster/settings -d '{

                "transient" : {

                    "cluster.routing.allocation.enable" : "all"

                }

        }'



<-- index 상태 변경 -->

curl -XPOST 'http://localhost:9200/m14_*/_close'

curl -XPOST 'http://localhost:9200/m14_*/_open'


<-- update -->

curl -XPOST 'http://localhost:9200/epo_backuplog_meta/archive/m14_201507230000/_update' -d '{"doc": {"clusters":{"vmEngine2":{"isStandby:true, "isComplete":false}}}}'


<-- index 최적화 -->

curl -XPOST 'http://localhost:9200/m14_/_optimize'


<-- shard 이동 -->

curl -XPOST 'localhost:9200/_cluster/reroute' -d '{

 "commands" : [ {

  "move" : {

   "index" : ".kibana", "shard" : 0, "from_node" : "zgjlZCqJQreDYJv28_3JWQ", "to_node" : "MNqXxLywSDKCPniBSuZujg"

  }

 } ]

}'


<--plugin 설치 -->

plugin -install lmenezes/elasticsearch-kopf/1.5.5

plugin -install mobz/elasticsearch-head

plugin -install lukas-vlcek/bigdesk

plugin -install jettro/elasticsearch-gui

plugin -install polyfractal/elasticsearch-inquisitor









############################## Network And HTTP ###############################


# Elasticsearch, by default, binds itself to the 0.0.0.0 address, and listens

# on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node

# communication. (the range means that if the port is busy, it will automatically

# try the next port).


# Set the bind address specifically (IPv4 or IPv6):

#

network.bind_host: 0.0.0.0


# Set the address other nodes will use to communicate with this node. If not

# set, it is automatically derived. It must point to an actual IP address.

#

network.publish_host: 192.168.10.244


# Set both 'bind_host' and 'publish_host':

#

#network.host: 192.168.0.1


# Set a custom port for the node to node communication (9300 by default):

#

transport.tcp.port: 9300


# Enable compression for all communication between nodes (disabled by default):

#

#transport.tcp.compress: true


# Set a custom port to listen for HTTP traffic:

#

http.bind_host: 0.0.0.0

http.publish_host: 192.168.10.244

http.port: 9200


# Set a custom allowed content length:

#

#http.max_content_length: 100mb


# Disable HTTP completely:

#

#http.enabled: false

Posted by satis
,