Advertisement
Guest User

Untitled

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