Advertisement
Guest User

Untitled

a guest
Nov 11th, 2011
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.35 KB | None | 0 0
  1. ##################### ElasticSearch Configuration  #####################
  2. # Managed by Puppet
  3. # DO NOT EDIT
  4.  
  5. ################################### Cluster ###################################
  6.  
  7. # Cluster name identifies your cluster for auto-discovery. If you're running
  8. # multiple clusters on the same network, make sure you're using unique names.
  9. #
  10. cluster.name: esdev1_cluster
  11.  
  12. #################################### Node #####################################
  13.  
  14. # Node names are generated dynamically on startup, so you're relieved
  15. # from configuring them manually. You can tie this node to a specific name:
  16. #
  17. # node.name: "Franz Kafka"
  18.  
  19. # Every node can be configured to allow or deny being eligible as the master,
  20. # and to allow or deny to store the data.
  21. #
  22. # Allow this node to be eligible as a master node (enabled by default):
  23. #
  24. node.master: true
  25. #
  26. # Allow this node to store data (enabled by default):
  27. #
  28. node.data: true
  29.  
  30. # A node can have generic attributes associated with it, which can later be used
  31. # for customized shard allocation filtering, or allocation awareness. An attribute
  32. # is a simple key value pair, similar to node.key: value, here is an example:
  33. #
  34. node.rack: rack314
  35.  
  36. #################################### Index ####################################
  37.  
  38. # Set the number of shards (splits) of an index (5 by default):
  39. #
  40. index.number_of_shards: 8
  41.  
  42.  
  43. # Set the number of replicas (additional copies) of an index (1 by default):
  44. #
  45. index.number_of_replicas: 1
  46.  
  47. # Field Data Cache (Faceting)
  48. index.cache.field.type: soft
  49. index.cache.field.max_size: 25000
  50.  
  51. # Stats API refresh interval
  52. index.cache.stats.refresh_interval: 5s
  53.  
  54. # Index Buffer
  55. indices.memory.index_buffer_size: 10%
  56.  
  57. # Dynamic Mappings
  58. index.mapper.dyanmic: false
  59.  
  60. # After how many operations to flush. Defaults to 5000
  61. index.translog.flush_threshold_ops: 200000
  62.  
  63. # Merge Factor
  64. index.merge.policy.merge_factor: 10
  65.  
  66. # Minimim merge size for segments. Defaults to 1.6mb
  67. index.merge.policy.min_merge_size: 2.7mb
  68.  
  69. #################################### Paths ####################################
  70.  
  71. # Path to directory containing configuration (this file and logging.yml):
  72. #
  73. path.conf: /etc/elasticsearch
  74.  
  75. # Path to directory where to store index data allocated for this node.
  76. #
  77. path.data: /data/0/elasticsearch,/data/1/elasticsearch,/data/2/elasticsearch,/data/3/elasticsearch,/data/4/elasticsearch,/data/5/elasticsearch,/data/6/elasticsearch,/data/7/elasticsearch
  78.  
  79. # Path to temporary files:
  80. #
  81. path.work: /tmp/elasticsearch
  82.  
  83. # Path to log files:
  84. #
  85. path.logs: /var/log/elasticsearch
  86.  
  87. # Path to where plugins are installed:
  88. #
  89. path.plugins: /usr/share/java/elasticsearch/plugins
  90.  
  91. ################################### Memory ####################################
  92.  
  93. # ElasticSearch performs poorly when JVM starts swapping: you should ensure that
  94. # it _never_ swaps.
  95. #
  96. # Set this property to true to lock the memory:
  97. #
  98. bootstrap.mlockall: true
  99.  
  100. # Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set
  101. # to the same value, and that the machine has enough memory to allocate
  102. # for ElasticSearch, leaving enough memory for the operating system itself.
  103. #
  104. # You should also make sure that the ElasticSearch process is allowed to lock
  105. # the memory, eg. by using `ulimit -l unlimited`.
  106.  
  107.  
  108. ############################## Network And HTTP ###############################
  109.  
  110. # ElasticSearch, by default, binds itself to the 0.0.0.0 address, and listens
  111. # on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node
  112. # communication. (the range means that if the port is busy, it will automatically
  113. # try the next port).
  114.  
  115. # Set the bind address specifically (IPv4 or IPv6):
  116. #
  117. # network.bind_host: 192.168.0.1
  118.  
  119. # Set the address other nodes will use to communicate with this node. If not
  120. # set, it is automatically derived. It must point to an actual IP address.
  121. #
  122. # network.publish_host: 192.168.0.1
  123.  
  124. # Set both 'bind_host' and 'publish_host':
  125. #
  126. # network.host: 192.168.0.1
  127.  
  128. # Set a custom port for the node to node communication (9300 by default):
  129. #
  130. # transport.port: 9300
  131.  
  132. # Enable compression for all communication between nodes (disabled by default):
  133. #
  134. # transport.tcp.compress: true
  135.  
  136. # Set a custom port to listen for HTTP traffic:
  137. #
  138. # http.port: 9200
  139.  
  140. # Set a custom allowed content length:
  141. #
  142. http.max_content_length: 100mb
  143.  
  144. # Disable HTTP completely:
  145. #
  146. # http.enabled: false
  147.  
  148.  
  149. ################################### Mappings ###################################
  150.  
  151. # Turn off dynamic mapping
  152. index.mapper.dynamic: false
  153.  
  154. ################################### Gateway ###################################
  155.  
  156. # The gateway allows for persisting the cluster state between full cluster
  157. # restarts. Every change to the state (such as adding an index) will be stored
  158. # in the gateway, and when the cluster starts up for the first time,
  159. # it will read its state from the gateway.
  160.  
  161. # There are several types of gateway implementations. For more information,
  162. # see <http://elasticsearch.org/guide/reference/modules/gateway>.
  163.  
  164. # The default gateway type is the "local" gateway (recommended):
  165. #
  166. gateway.type: local
  167.  
  168. # Settings below control how and when to start the initial recovery process on
  169. # a full cluster restart (to reuse as much local data as possible).
  170.  
  171. # Allow recovery process after N nodes in a cluster are up:
  172. #
  173. gateway.recover_after_nodes: 3
  174.  
  175. # Set the timeout to initiate the recovery process, once the N nodes
  176. # from previous setting are up (accepts time value):
  177. #
  178. gateway.recover_after_time: 5m
  179.  
  180. # Set how many nodes are expected in this cluster. Once these N nodes
  181. # are up, begin recovery process immediately:
  182. #
  183. gateway.expected_nodes: 3
  184.  
  185. ############################# Recovery Throttling #############################
  186.  
  187. # These settings allow to control the process of shards allocation between
  188. # nodes during initial recovery, replica allocation, rebalancing,
  189. # or when adding and removing nodes.
  190.  
  191. # Set the number of concurrent recoveries happening on a node:
  192. #
  193. # 1. During the initial recovery
  194. #
  195. cluster.routing.allocation.node_initial_primaries_recoveries: 4
  196. #
  197. # 2. During adding/removing nodes, rebalancing, etc
  198. #
  199. cluster.routing.allocation.node_concurrent_recoveries: 4
  200.  
  201. # Set to throttle throughput when recovering (eg. 100mb, by default unlimited):
  202. #
  203. indices.recovery.max_size_per_sec: 0
  204.  
  205. # Set to limit the number of open concurrent streams when
  206. # recovering a shard from a peer:
  207. #
  208. indices.recovery.concurrent_streams: 5
  209.  
  210.  
  211. ################################## Discovery ##################################
  212.  
  213. # Discovery infrastructure ensures nodes can be found within a cluster
  214. # and master node is elected. Multicast discovery is the default.
  215.  
  216. # Set to ensure a node sees N other master eligible nodes to be considered
  217. # operational within the cluster. Set this option to a higher value (2-4)
  218. # for large clusters:
  219. #
  220. discovery.zen.minimum_master_nodes: 1
  221.  
  222. # Set the time to wait for ping responses from other nodes when discovering.
  223. # Set this option to a higher value on a slow or congested network
  224. # to minimize discovery failures:
  225. #
  226. discovery.zen.ping.timeout: 10s
  227.  
  228. # 1. Disable multicast discovery (enabled by default):
  229. #
  230. discovery.zen.ping.multicast.enabled: false
  231. discovery.zen.ping.multicast.group: 224.2.2.4
  232. discovery.zen.ping.multicast.port: 54328
  233. discovery.zen.ping.multicast.ttl: 3
  234.  
  235.  
  236.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement