elasticsearch.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. ##################### Elasticsearch Configuration Example #####################
  2. # This file contains an overview of various configuration settings,
  3. # targeted at operations staff. Application developers should
  4. # consult the guide at <http://elasticsearch.org/guide>.
  5. #
  6. # The installation procedure is covered at
  7. # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
  8. #
  9. # Elasticsearch comes with reasonable defaults for most settings,
  10. # so you can try it out without bothering with configuration.
  11. #
  12. # Most of the time, these defaults are just fine for running a production
  13. # cluster. If you're fine-tuning your cluster, or wondering about the
  14. # effect of certain configuration option, please _do ask_ on the
  15. # mailing list or IRC channel [http://elasticsearch.org/community].
  16. # Any element in the configuration can be replaced with environment variables
  17. # by placing them in ${...} notation. For example:
  18. #
  19. #node.rack: ${RACK_ENV_VAR}
  20. # For information on supported formats and syntax for the config file, see
  21. # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html>
  22. ################################### Cluster ###################################
  23. # Cluster name identifies your cluster for auto-discovery. If you're running
  24. # multiple clusters on the same network, make sure you're using unique names.
  25. #
  26. #cluster.name: elasticsearch
  27. #################################### Node #####################################
  28. # Node names are generated dynamically on startup, so you're relieved
  29. # from configuring them manually. You can tie this node to a specific name:
  30. #
  31. #node.name: "Franz Kafka"
  32. # Every node can be configured to allow or deny being eligible as the master,
  33. # and to allow or deny to store the data.
  34. #
  35. # Allow this node to be eligible as a master node (enabled by default):
  36. #
  37. #node.master: true
  38. #
  39. # Allow this node to store data (enabled by default):
  40. #
  41. #node.data: true
  42. # You can exploit these settings to design advanced cluster topologies.
  43. #
  44. # 1. You want this node to never become a master node, only to hold data.
  45. # This will be the "workhorse" of your cluster.
  46. #
  47. #node.master: false
  48. #node.data: true
  49. #
  50. # 2. You want this node to only serve as a master: to not store any data and
  51. # to have free resources. This will be the "coordinator" of your cluster.
  52. #
  53. #node.master: true
  54. #node.data: false
  55. #
  56. # 3. You want this node to be neither master nor data node, but
  57. # to act as a "search load balancer" (fetching data from nodes,
  58. # aggregating results, etc.)
  59. #
  60. #node.master: false
  61. #node.data: false
  62. # Use the Cluster Health API [http://localhost:9200/_cluster/health], the
  63. # Node Info API [http://localhost:9200/_nodes] or GUI tools
  64. # such as <http://www.elasticsearch.org/overview/marvel/>,
  65. # <http://github.com/karmi/elasticsearch-paramedic>,
  66. # <http://github.com/lukas-vlcek/bigdesk> and
  67. # <http://mobz.github.com/elasticsearch-head> to inspect the cluster state.
  68. # A node can have generic attributes associated with it, which can later be used
  69. # for customized shard allocation filtering, or allocation awareness. An attribute
  70. # is a simple key value pair, similar to node.key: value, here is an example:
  71. #
  72. #node.rack: rack314
  73. # By default, multiple nodes are allowed to start from the same installation location
  74. # to disable it, set the following:
  75. #node.max_local_storage_nodes: 1
  76. #################################### Index ####################################
  77. # You can set a number of options (such as shard/replica options, mapping
  78. # or analyzer definitions, translog settings, ...) for indices globally,
  79. # in this file.
  80. #
  81. # Note, that it makes more sense to configure index settings specifically for
  82. # a certain index, either when creating it or by using the index templates API.
  83. #
  84. # See <http://elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules.html> and
  85. # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html>
  86. # for more information.
  87. # Set the number of shards (splits) of an index (5 by default):
  88. #
  89. #index.number_of_shards: 5
  90. # Set the number of replicas (additional copies) of an index (1 by default):
  91. #
  92. #index.number_of_replicas: 1
  93. # Note, that for development on a local machine, with small indices, it usually
  94. # makes sense to "disable" the distributed features:
  95. #
  96. #index.number_of_shards: 1
  97. #index.number_of_replicas: 0
  98. # These settings directly affect the performance of index and search operations
  99. # in your cluster. Assuming you have enough machines to hold shards and
  100. # replicas, the rule of thumb is:
  101. #
  102. # 1. Having more *shards* enhances the _indexing_ performance and allows to
  103. # _distribute_ a big index across machines.
  104. # 2. Having more *replicas* enhances the _search_ performance and improves the
  105. # cluster _availability_.
  106. #
  107. # The "number_of_shards" is a one-time setting for an index.
  108. #
  109. # The "number_of_replicas" can be increased or decreased anytime,
  110. # by using the Index Update Settings API.
  111. #
  112. # Elasticsearch takes care about load balancing, relocating, gathering the
  113. # results from nodes, etc. Experiment with different settings to fine-tune
  114. # your setup.
  115. # Use the Index Status API (<http://localhost:9200/A/_status>) to inspect
  116. # the index status.
  117. #################################### Paths ####################################
  118. # Path to directory containing configuration (this file and logging.yml):
  119. #
  120. #path.conf: /path/to/conf
  121. # Path to directory where to store index data allocated for this node.
  122. #
  123. #path.data: /path/to/data
  124. path.data: /ssd/elasticsearch/data
  125. #
  126. # Can optionally include more than one location, causing data to be striped across
  127. # the locations (a la RAID 0) on a file level, favouring locations with most free
  128. # space on creation. For example:
  129. #
  130. #path.data: /path/to/data1,/path/to/data2
  131. # Path to temporary files:
  132. #
  133. #path.work: /path/to/work
  134. path.work: /ssd/elasticsearch/work
  135. # Path to log files:
  136. #
  137. #path.logs: /path/to/logs
  138. path.logs: /ssd/log/elasticsearch
  139. # Path to where plugins are installed:
  140. #
  141. #path.plugins: /path/to/plugins
  142. #################################### Plugin ###################################
  143. # If a plugin listed here is not installed for current node, the node will not start.
  144. #
  145. #plugin.mandatory: mapper-attachments,lang-groovy
  146. ################################### Memory ####################################
  147. # Elasticsearch performs poorly when JVM starts swapping: you should ensure that
  148. # it _never_ swaps.
  149. #
  150. # Set this property to true to lock the memory:
  151. #
  152. #bootstrap.mlockall: true
  153. # Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set
  154. # to the same value, and that the machine has enough memory to allocate
  155. # for Elasticsearch, leaving enough memory for the operating system itself.
  156. #
  157. # You should also make sure that the Elasticsearch process is allowed to lock
  158. # the memory, eg. by using `ulimit -l unlimited`.
  159. ############################## Network And HTTP ###############################
  160. # Elasticsearch, by default, binds itself to the 0.0.0.0 address, and listens
  161. # on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node
  162. # communication. (the range means that if the port is busy, it will automatically
  163. # try the next port).
  164. # Set the bind address specifically (IPv4 or IPv6):
  165. #
  166. #network.bind_host: 192.168.0.1
  167. # Set the address other nodes will use to communicate with this node. If not
  168. # set, it is automatically derived. It must point to an actual IP address.
  169. #
  170. #network.publish_host: 192.168.0.1
  171. # Set both 'bind_host' and 'publish_host':
  172. #
  173. #network.host: 192.168.0.1
  174. # Set a custom port for the node to node communication (9300 by default):
  175. #
  176. #transport.tcp.port: 9300
  177. # Enable compression for all communication between nodes (disabled by default):
  178. #
  179. #transport.tcp.compress: true
  180. # Set a custom port to listen for HTTP traffic:
  181. #
  182. #http.port: 9200
  183. # Set a custom allowed content length:
  184. #
  185. #http.max_content_length: 100mb
  186. # Disable HTTP completely:
  187. #
  188. #http.enabled: false
  189. ################################### Gateway ###################################
  190. # The gateway allows for persisting the cluster state between full cluster
  191. # restarts. Every change to the state (such as adding an index) will be stored
  192. # in the gateway, and when the cluster starts up for the first time,
  193. # it will read its state from the gateway.
  194. # There are several types of gateway implementations. For more information, see
  195. # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway.html>.
  196. # The default gateway type is the "local" gateway (recommended):
  197. #
  198. #gateway.type: local
  199. # Settings below control how and when to start the initial recovery process on
  200. # a full cluster restart (to reuse as much local data as possible when using shared
  201. # gateway).
  202. # Allow recovery process after N nodes in a cluster are up:
  203. #
  204. #gateway.recover_after_nodes: 1
  205. # Set the timeout to initiate the recovery process, once the N nodes
  206. # from previous setting are up (accepts time value):
  207. #
  208. #gateway.recover_after_time: 5m
  209. # Set how many nodes are expected in this cluster. Once these N nodes
  210. # are up (and recover_after_nodes is met), begin recovery process immediately
  211. # (without waiting for recover_after_time to expire):
  212. #
  213. #gateway.expected_nodes: 2
  214. ############################# Recovery Throttling #############################
  215. # These settings allow to control the process of shards allocation between
  216. # nodes during initial recovery, replica allocation, rebalancing,
  217. # or when adding and removing nodes.
  218. # Set the number of concurrent recoveries happening on a node:
  219. #
  220. # 1. During the initial recovery
  221. #
  222. #cluster.routing.allocation.node_initial_primaries_recoveries: 4
  223. #
  224. # 2. During adding/removing nodes, rebalancing, etc
  225. #
  226. #cluster.routing.allocation.node_concurrent_recoveries: 2
  227. # Set to throttle throughput when recovering (eg. 100mb, by default 20mb):
  228. #
  229. #indices.recovery.max_bytes_per_sec: 20mb
  230. # Set to limit the number of open concurrent streams when
  231. # recovering a shard from a peer:
  232. #
  233. #indices.recovery.concurrent_streams: 5
  234. ################################## Discovery ##################################
  235. # Discovery infrastructure ensures nodes can be found within a cluster
  236. # and master node is elected. Multicast discovery is the default.
  237. # Set to ensure a node sees N other master eligible nodes to be considered
  238. # operational within the cluster. This should be set to a quorum/majority of
  239. # the master-eligible nodes in the cluster.
  240. #
  241. #discovery.zen.minimum_master_nodes: 1
  242. # Set the time to wait for ping responses from other nodes when discovering.
  243. # Set this option to a higher value on a slow or congested network
  244. # to minimize discovery failures:
  245. #
  246. #discovery.zen.ping.timeout: 3s
  247. # For more information, see
  248. # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html>
  249. # Unicast discovery allows to explicitly control which nodes will be used
  250. # to discover the cluster. It can be used when multicast is not present,
  251. # or to restrict the cluster communication-wise.
  252. #
  253. # 1. Disable multicast discovery (enabled by default):
  254. #
  255. #discovery.zen.ping.multicast.enabled: false
  256. #
  257. # 2. Configure an initial list of master nodes in the cluster
  258. # to perform discovery when new nodes (master or data) are started:
  259. #
  260. #discovery.zen.ping.unicast.hosts: ["host1", "host2:port"]
  261. # EC2 discovery allows to use AWS EC2 API in order to perform discovery.
  262. #
  263. # You have to install the cloud-aws plugin for enabling the EC2 discovery.
  264. #
  265. # For more information, see
  266. # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-ec2.html>
  267. #
  268. # See <http://elasticsearch.org/tutorials/elasticsearch-on-ec2/>
  269. # for a step-by-step tutorial.
  270. # GCE discovery allows to use Google Compute Engine API in order to perform discovery.
  271. #
  272. # You have to install the cloud-gce plugin for enabling the GCE discovery.
  273. #
  274. # For more information, see <https://github.com/elasticsearch/elasticsearch-cloud-gce>.
  275. # Azure discovery allows to use Azure API in order to perform discovery.
  276. #
  277. # You have to install the cloud-azure plugin for enabling the Azure discovery.
  278. #
  279. # For more information, see <https://github.com/elasticsearch/elasticsearch-cloud-azure>.
  280. ################################## Slow Log ##################################
  281. # Shard level query and fetch threshold logging.
  282. #index.search.slowlog.threshold.query.warn: 10s
  283. #index.search.slowlog.threshold.query.info: 5s
  284. #index.search.slowlog.threshold.query.debug: 2s
  285. #index.search.slowlog.threshold.query.trace: 500ms
  286. #index.search.slowlog.threshold.fetch.warn: 1s
  287. #index.search.slowlog.threshold.fetch.info: 800ms
  288. #index.search.slowlog.threshold.fetch.debug: 500ms
  289. #index.search.slowlog.threshold.fetch.trace: 200ms
  290. #index.indexing.slowlog.threshold.index.warn: 10s
  291. #index.indexing.slowlog.threshold.index.info: 5s
  292. #index.indexing.slowlog.threshold.index.debug: 2s
  293. #index.indexing.slowlog.threshold.index.trace: 500ms
  294. ################################## GC Logging ################################
  295. #monitor.jvm.gc.young.warn: 1000ms
  296. #monitor.jvm.gc.young.info: 700ms
  297. #monitor.jvm.gc.young.debug: 400ms
  298. #monitor.jvm.gc.old.warn: 10s
  299. #monitor.jvm.gc.old.info: 5s
  300. #monitor.jvm.gc.old.debug: 2s
  301. ################################## Security ################################
  302. # Uncomment if you want to enable JSONP as a valid return transport on the
  303. # http server. With this enabled, it may pose a security risk, so disabling
  304. # it unless you need it is recommended (it is disabled by default).
  305. #
  306. #http.jsonp.enable: true