Mukul | 7de56c8 | 2018-09-04 08:03:27 +0000 | [diff] [blame] | 1 | # Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 14 | # ======================== Elasticsearch Configuration ========================= |
| 15 | # |
| 16 | # NOTE: Elasticsearch comes with reasonable defaults for most settings. |
| 17 | # Before you set out to tweak and tune the configuration, make sure you |
| 18 | # understand what are you trying to accomplish and the consequences. |
| 19 | # |
| 20 | # The primary way of configuring a node is via this file. This template lists |
| 21 | # the most important settings you may want to configure for a production cluster. |
| 22 | # |
| 23 | # Please consult the documentation for further information on configuration options: |
| 24 | # https://www.elastic.co/guide/en/elasticsearch/reference/index.html |
| 25 | # |
| 26 | # ---------------------------------- Cluster ----------------------------------- |
| 27 | # |
| 28 | # Name of the Elasticsearch cluster. |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 29 | # A node can only join a cluster when it shares its cluster.name with all the other nodes in the cluster. |
| 30 | # The default name is elasticsearch, but you should change it to an appropriate name which describes the |
| 31 | # purpose of the cluster. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 32 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 33 | cluster.name: "onap-log" |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 34 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 35 | # The port that other nodes in the cluster should use when communicating with this node. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 36 | # Required for Elasticsearch's nodes running on different cluster nodes. |
| 37 | # More : https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 38 | #transport.publish_port:$transport.publish_port |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 39 | # |
| 40 | # The host address to publish for nodes in the cluster to connect to. |
| 41 | # Required for Elasticsearch's nodes running on different cluster nodes. |
| 42 | # More : https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 43 | #transport.publish_host:$transport.publish_host |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 44 | # |
| 45 | # ------------------------------------ Node ------------------------------------ |
| 46 | # |
| 47 | # It is better to provide different meaningfull names fot different elastic nodes. |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 48 | # By default, Elasticsearch will take the 7 first character of the randomly generated uuid used as the node id. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 49 | # Note that the node id is persisted and does not change when a node restarts |
| 50 | # |
| 51 | #node.name: $node.name |
| 52 | # |
| 53 | # Add custom attributes to the node: |
| 54 | # |
| 55 | #node.attr.rack: r1 |
| 56 | # |
| 57 | # ----------------------------------- Paths ------------------------------------ |
| 58 | # |
| 59 | # The location of the data files of each index / shard allocated on the node. Can hold multiple locations separated by coma. |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 60 | # In production, we should not keep this default to "/elasticsearch/data", as on upgrading Elasticsearch, directory structure |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 61 | # may change & can deal to data loss. |
| 62 | path.data: /usr/share/elasticsearch/data |
| 63 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 64 | # Elasticsearch's log files location. In production, we should not keep this default to "/elasticsearch/logs", |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 65 | # as on upgrading Elasticsearch, directory structure may change. |
| 66 | path.logs: /usr/share/elasticsearch/logs |
| 67 | # |
| 68 | # ----------------------------------- Memory ----------------------------------- |
| 69 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 70 | # It is vitally important to the health of your node that none of the JVM is ever swapped out to disk. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 71 | # Lock the memory on startup. |
| 72 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 73 | bootstrap.memory_lock: false |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 74 | # |
| 75 | # Make sure that the heap size is set to about half the memory available |
| 76 | # on the system and that the owner of the process is allowed to use this |
| 77 | # limit. |
| 78 | # |
| 79 | # Elasticsearch performs poorly when the system is swapping the memory. |
| 80 | # |
| 81 | # ---------------------------------- Network ----------------------------------- |
| 82 | # |
| 83 | # Set the bind address to a specific IP (IPv4 or IPv6): |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 84 | # In order to communicate and to form a cluster with nodes on other servers, your node will need to bind to a |
| 85 | # non-loopback address. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 86 | network.host: 0.0.0.0 |
| 87 | # |
| 88 | # Set a custom port for HTTP: If required, default is 9200-9300 |
| 89 | # |
| 90 | #http.port: $http.port |
| 91 | # |
| 92 | # For more information, consult the network module documentation. |
| 93 | # |
| 94 | # --------------------------------- Discovery ---------------------------------- |
| 95 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 96 | # Pass an initial list of hosts to perform discovery when new node is started |
| 97 | # To form a cluster with nodes on other servers, you have to provide a seed list of other nodes in the cluster |
| 98 | # that are likely to be live and contactable. |
| 99 | # By default, Elasticsearch will bind to the available loopback addresses and will scan ports 9300 to 9305 to try |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 100 | # to connect to other nodes running on the same server. |
| 101 | # |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 102 | #$discovery.zen.ping.unicast.hosts |
| 103 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 104 | # This setting tells Elasticsearch to not elect a master unless there are enough master-eligible nodes |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 105 | # available. Only then will an election take place. |
| 106 | # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1): |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 107 | discovery.zen.minimum_master_nodes: 1 |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 108 | # |
| 109 | # For more information, consult the zen discovery module documentation. |
| 110 | # |
| 111 | # ---------------------------------- Gateway ----------------------------------- |
| 112 | # |
| 113 | # Block initial recovery after a full cluster restart until N nodes are started: |
| 114 | # |
| 115 | #gateway.recover_after_nodes: 3 |
| 116 | # |
| 117 | # For more information, consult the gateway module documentation. |
| 118 | # |
| 119 | # ---------------------------------- Various ----------------------------------- |
| 120 | # |
| 121 | # Require explicit names when deleting indices: |
| 122 | # |
| 123 | #action.destructive_requires_name: true |
| 124 | # Set a custom port for HTTP: If required, default is 9200-9300 |
| 125 | # This is used for REST APIs |
BorislavG | 5f3b619 | 2018-03-25 18:12:38 +0300 | [diff] [blame] | 126 | http.port: {{.Values.service.externalPort}} |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 127 | # Port to bind for communication between nodes. Accepts a single value or a range. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 128 | # If a range is specified, the node will bind to the first available port in the range. |
| 129 | # Defaults to 9300-9400. |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame] | 130 | # More info: |
BorislavG | 2cf2684 | 2018-04-08 17:50:07 +0300 | [diff] [blame] | 131 | transport.tcp.port: {{.Values.service.externalPort2}} |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 132 | |
| 133 | xpack.graph.enabled: false |
| 134 | #Set to false to disable X-Pack graph features. |
| 135 | |
| 136 | xpack.ml.enabled: false |
| 137 | #Set to false to disable X-Pack machine learning features. |
| 138 | |
| 139 | xpack.monitoring.enabled: false |
| 140 | #Set to false to disable X-Pack monitoring features. |
| 141 | |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 142 | xpack.security.enabled: false |
| 143 | #Set to false to disable X-Pack security features. |
| 144 | |
| 145 | xpack.watcher.enabled: false |
| 146 | #Set to false to disable Watcher. |