elasticsearch.rst
changeset 2321 77c3f7ddcb5f
parent 2318 2463c53f0d9e
child 2342 fb128fcaf50a
equal deleted inserted replaced
2320:b7a2c43902f3 2321:77c3f7ddcb5f
    23 ========================
    23 ========================
    24 
    24 
    25 https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
    25 https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
    26   Install Elasticsearch with Debian Package.
    26   Install Elasticsearch with Debian Package.
    27 
    27 
       
    28 Basic config
       
    29 ============
       
    30 
       
    31 Common cluster name inside given intranet::
       
    32 
       
    33   cluster.name: mycluster
       
    34 
       
    35 Unique node name within claser::
       
    36 
       
    37   node.name: "node1"
       
    38 
       
    39 Node types::
       
    40 
       
    41   node.master: true
       
    42   node.ingest: true
       
    43   node.data: true
       
    44 
       
    45 Network interfaces to bind to::
       
    46 
       
    47   network.host: [_local_, node1.example.com]
       
    48 
       
    49 Port definitions::
       
    50 
       
    51   http.port : 9200
       
    52   tcp.port : 9300
       
    53 
       
    54 Override default locations::
       
    55 
       
    56   path.data: /path/to/data1,/path/to/data2
       
    57   path.logs: /path/to/logs
       
    58   path.plugins: /path/to/plugins
       
    59 
       
    60 Explicit list of seed nodes in cluster::
       
    61 
       
    62   discovery.zen.ping.unicast.hosts: ["master1.example.com", "master2.example.com:9300"]
       
    63 
       
    64 https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html
       
    65   Node types.
       
    66 https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-zen.html
       
    67   Discovery settings.
       
    68 https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html
       
    69   Transport definitions.
       
    70 
    28 REST syntax conventions
    71 REST syntax conventions
    29 =======================
    72 =======================
    30 
    73 
    31 To get data in table form use ``/_cat`` endpoint::
    74 To get data in table form use ``/_cat`` endpoint::
    32 
    75 
    53   watch -d curl -s 'localhost:9200/_cat/nodes?v'
    96   watch -d curl -s 'localhost:9200/_cat/nodes?v'
    54 
    97 
    55 List cluster state::
    98 List cluster state::
    56 
    99 
    57   GET /_cluster/state?pretty
   100   GET /_cluster/state?pretty
       
   101   GET /_cluster/allocation/explain
    58 
   102 
    59 List of tasks executed in cluster::
   103 List of tasks executed in cluster::
    60 
   104 
    61   GET /_cat/tasks?v
   105   GET /_cat/tasks?v
    62   GET /_cat/tasks?detailed
   106   GET /_cat/tasks?detailed
    78 
   122 
    79   GET /_cluster/health?pretty&level=shards
   123   GET /_cluster/health?pretty&level=shards
    80 
   124 
    81 https://www.elastic.co/guide/en/elasticsearch/reference/current/_cluster_health.html
   125 https://www.elastic.co/guide/en/elasticsearch/reference/current/_cluster_health.html
    82   Cluster Health.
   126   Cluster Health.
       
   127 https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-allocation-explain.html
       
   128   Cluster Allocation Explain API
    83 https://www.elastic.co/guide/en/elasticsearch/reference/current/_list_all_indices.html
   129 https://www.elastic.co/guide/en/elasticsearch/reference/current/_list_all_indices.html
    84   List All Indices.
   130   List All Indices.
    85 https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
   131 https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
    86   cat APIs.
   132   cat APIs.
    87 https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html
   133 https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html