Guest User

2.3.5

a guest
Nov 2nd, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  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 see the documentation for further information on configuration options:
  11. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
  12. #
  13. # ---------------------------------- Cluster -----------------------------------
  14. #
  15. # Use a descriptive name for your cluster:
  16. #
  17. # cluster.name: my-application
  18. #
  19. cluster.name: "graylog2b"
  20. # ------------------------------------ Node ------------------------------------
  21. #
  22. # Use a descriptive name for the node:
  23. #
  24. # node.name: node-1
  25. #
  26. # Add custom attributes to the node:
  27. #
  28. # node.rack: r1
  29. node.name: "graylog2b-server"
  30. node.master: true
  31. node.data: true
  32.  
  33. index.number_of_shards: 1
  34. index.number_of_replicas: 0
  35. #
  36. # ----------------------------------- Paths ------------------------------------
  37. #
  38. # Path to directory where to store the data (separate multiple locations by comma):
  39. #
  40. # path.data: /path/to/data
  41. #
  42. # Path to log files:
  43. #
  44. # path.logs: /path/to/logs
  45. path.data: /logs/index
  46.  
  47. # Path to temporary files:
  48. #
  49. path.work: /logs/work
  50.  
  51. # Path to log files:
  52. #
  53. path.logs: /logs/logfiles
  54.  
  55. # Path to where plugins are installed:
  56. #
  57. path.plugins: /opt/elasticsearch-2.3.2/plugins
  58. # ----------------------------------- Memory -----------------------------------
  59. #
  60. # Lock the memory on startup:
  61. #
  62. # bootstrap.mlockall: true
  63. #
  64. # Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
  65. # available on the system and that the owner of the process is allowed to use this limit.
  66. #
  67. # Elasticsearch performs poorly when the system is swapping the memory.
  68. bootstrap.mlockall: true
  69. #
  70. # ---------------------------------- Network -----------------------------------
  71. #
  72. # Set the bind address to a specific IP (IPv4 or IPv6):
  73. #
  74. # network.host: 192.168.0.1
  75. #
  76. # Set a custom port for HTTP:
  77. #
  78. # http.port: 9200
  79. #
  80. # For more information, see the documentation at:
  81. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
  82. network.bind_host: 10.0.0.29
  83.  
  84. # Set the address other nodes will use to communicate with this node. If not
  85. # set, it is automatically derived. It must point to an actual IP address.
  86. #
  87. network.publish_host: 10.0.0.29
  88.  
  89. # Set both 'bind_host' and 'publish_host':
  90. #
  91. network.host: 10.0.0.29
  92.  
  93. # Set a custom port for the node to node communication (9300 by default):
  94. #
  95. transport.tcp.port: 9300
  96.  
  97. # Enable compression for all communication between nodes (disabled by default):
  98. #
  99. #transport.tcp.compress: true
  100.  
  101. # Set a custom port to listen for HTTP traffic:
  102. #
  103. http.port: 9200
  104. # --------------------------------- Discovery ----------------------------------
  105. #
  106. # Pass an initial list of hosts to perform discovery when new node is started:
  107. # The default list of hosts is ["127.0.0.1", "[::1]"]
  108. #
  109. # discovery.zen.ping.unicast.hosts: ["host1", "host2"]
  110. #
  111. # Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
  112. #
  113. # discovery.zen.minimum_master_nodes: 3
  114. #
  115. # For more information, see the documentation at:
  116. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
  117. discovery.zen.ping.multicast.enabled: false
  118. discovery.zen.ping.unicast.hosts: 10.0.0.29:9300
  119. #
  120. # ---------------------------------- Gateway -----------------------------------
  121. #
  122. # Block initial recovery after a full cluster restart until N nodes are started:
  123. #
  124. # gateway.recover_after_nodes: 3
  125. #
  126. # For more information, see the documentation at:
  127. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
  128. #
  129. # ---------------------------------- Various -----------------------------------
  130. #
  131. # Disable starting multiple nodes on a single system:
  132. #
  133. # node.max_local_storage_nodes: 1
  134. #
  135. # Require explicit names when deleting indices:
  136. #
  137. # action.destructive_requires_name: true
  138.  
  139. #graylog entries from http://docs.graylog.org/en/2.0/pages/configuring_es.html
  140. script.inline: false
  141. script.indexed: false
  142. script.file: false
  143. indices.store.throttle.max_bytes_per_sec: 150mb
  144. # Recover only after the given number of nodes have joined the cluster. Can be seen as "minimum number of nodes to attempt recovery at all".
  145. gateway.recover_after_nodes: 1
  146. # Time to wait for additional nodes after recover_after_nodes is met.
  147. gateway.recover_after_time: 5m
  148. # Inform ElasticSearch how many nodes form a full cluster. If this number is met, start up immediately.
  149. gateway.expected_nodes: 1
Advertisement
Add Comment
Please, Sign In to add comment