Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 1 | # ======================== Elasticsearch Configuration ========================= |
| 2 | # |
| 3 | # NOTE: Elasticsearch comes with reasonable defaults for most settings. |
| 4 | # Before you set out to tweak and tune the configuration, make sure you |
| 5 | # understand what are you trying to accomplish and the consequences. |
| 6 | # |
| 7 | # The primary way of configuring a node is via this file. This template lists |
| 8 | # the most important settings you may want to configure for a production cluster. |
| 9 | # |
| 10 | # Please consult the documentation for further information on configuration options: |
| 11 | # https://www.elastic.co/guide/en/elasticsearch/reference/index.html |
| 12 | # |
| 13 | # ---------------------------------- Cluster ----------------------------------- |
| 14 | # |
| 15 | # Name of the Elasticsearch cluster. |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 16 | # A node can only join a cluster when it shares its cluster.name with all the other nodes in the cluster. |
| 17 | # The default name is elasticsearch, but you should change it to an appropriate name which describes the |
| 18 | # purpose of the cluster. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 19 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 20 | cluster.name: "onap-log" |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 21 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 22 | # 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] | 23 | # Required for Elasticsearch's nodes running on different cluster nodes. |
| 24 | # More : https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 25 | #transport.publish_port:$transport.publish_port |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 26 | # |
| 27 | # The host address to publish for nodes in the cluster to connect to. |
| 28 | # Required for Elasticsearch's nodes running on different cluster nodes. |
| 29 | # More : https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 30 | #transport.publish_host:$transport.publish_host |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 31 | # |
| 32 | # ------------------------------------ Node ------------------------------------ |
| 33 | # |
| 34 | # It is better to provide different meaningfull names fot different elastic nodes. |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 35 | # 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] | 36 | # Note that the node id is persisted and does not change when a node restarts |
| 37 | # |
| 38 | #node.name: $node.name |
| 39 | # |
| 40 | # Add custom attributes to the node: |
| 41 | # |
| 42 | #node.attr.rack: r1 |
| 43 | # |
| 44 | # ----------------------------------- Paths ------------------------------------ |
| 45 | # |
| 46 | # 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^] | 47 | # 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] | 48 | # may change & can deal to data loss. |
| 49 | path.data: /usr/share/elasticsearch/data |
| 50 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 51 | # 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] | 52 | # as on upgrading Elasticsearch, directory structure may change. |
| 53 | path.logs: /usr/share/elasticsearch/logs |
| 54 | # |
| 55 | # ----------------------------------- Memory ----------------------------------- |
| 56 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 57 | # 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] | 58 | # Lock the memory on startup. |
| 59 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 60 | bootstrap.memory_lock: false |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 61 | # |
| 62 | # Make sure that the heap size is set to about half the memory available |
| 63 | # on the system and that the owner of the process is allowed to use this |
| 64 | # limit. |
| 65 | # |
| 66 | # Elasticsearch performs poorly when the system is swapping the memory. |
| 67 | # |
| 68 | # ---------------------------------- Network ----------------------------------- |
| 69 | # |
| 70 | # Set the bind address to a specific IP (IPv4 or IPv6): |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 71 | # In order to communicate and to form a cluster with nodes on other servers, your node will need to bind to a |
| 72 | # non-loopback address. |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 73 | network.host: 0.0.0.0 |
| 74 | # |
| 75 | # Set a custom port for HTTP: If required, default is 9200-9300 |
| 76 | # |
| 77 | #http.port: $http.port |
| 78 | # |
| 79 | # For more information, consult the network module documentation. |
| 80 | # |
| 81 | # --------------------------------- Discovery ---------------------------------- |
| 82 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 83 | # Pass an initial list of hosts to perform discovery when new node is started |
| 84 | # To form a cluster with nodes on other servers, you have to provide a seed list of other nodes in the cluster |
| 85 | # that are likely to be live and contactable. |
| 86 | # 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] | 87 | # to connect to other nodes running on the same server. |
| 88 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 89 | #discovery.zen.ping.unicast.hosts: ["elasticsearch.onap-log" |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 90 | #$discovery.zen.ping.unicast.hosts |
| 91 | # |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 92 | # 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] | 93 | # available. Only then will an election take place. |
| 94 | # 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^] | 95 | discovery.zen.minimum_master_nodes: 1 |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 96 | # |
| 97 | # For more information, consult the zen discovery module documentation. |
| 98 | # |
| 99 | # ---------------------------------- Gateway ----------------------------------- |
| 100 | # |
| 101 | # Block initial recovery after a full cluster restart until N nodes are started: |
| 102 | # |
| 103 | #gateway.recover_after_nodes: 3 |
| 104 | # |
| 105 | # For more information, consult the gateway module documentation. |
| 106 | # |
| 107 | # ---------------------------------- Various ----------------------------------- |
| 108 | # |
| 109 | # Require explicit names when deleting indices: |
| 110 | # |
| 111 | #action.destructive_requires_name: true |
| 112 | # Set a custom port for HTTP: If required, default is 9200-9300 |
| 113 | # This is used for REST APIs |
| 114 | http.port: 9200 |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 115 | # 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] | 116 | # If a range is specified, the node will bind to the first available port in the range. |
| 117 | # Defaults to 9300-9400. |
BorislavG | 2631be8 | 2017-11-01 12:48:42 +0200 | [diff] [blame^] | 118 | # More info: |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 119 | transport.tcp.port: 9300 |
| 120 | |
| 121 | xpack.graph.enabled: false |
| 122 | #Set to false to disable X-Pack graph features. |
| 123 | |
| 124 | xpack.ml.enabled: false |
| 125 | #Set to false to disable X-Pack machine learning features. |
| 126 | |
| 127 | xpack.monitoring.enabled: false |
| 128 | #Set to false to disable X-Pack monitoring features. |
| 129 | |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 130 | xpack.security.enabled: false |
| 131 | #Set to false to disable X-Pack security features. |
| 132 | |
| 133 | xpack.watcher.enabled: false |
| 134 | #Set to false to disable Watcher. |