Guest User

Elasticsearch Configuration

a guest
Jun 14th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 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: graylog-production
  18. #
  19. # ------------------------------------ Node ------------------------------------
  20. #
  21. # Use a descriptive name for the node:
  22. #
  23. node.name: graylog2-server
  24. #
  25. # Add custom attributes to the node:
  26. #
  27. # node.rack: r1
  28. #
  29. # ----------------------------------- Paths ------------------------------------
  30. #
  31. # Path to directory where to store the data (separate multiple locations by comma):
  32. #
  33. # path.data: /path/to/data
  34. #
  35. # path.logs: /path/to/logs
  36. #
  37. # ----------------------------------- Memory -----------------------------------
  38. #
  39. # Lock the memory on startup:
  40. #
  41. # bootstrap.memory_lock: true
  42. #
  43. # Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
  44. # available on the system and that the owner of the process is allowed to use this limit.
  45. #
  46. # Elasticsearch performs poorly when the system is swapping the memory.
  47. #
  48. # ---------------------------------- Network -----------------------------------
  49. #
  50. # Set the bind address to a specific IP (IPv4 or IPv6):
  51. #
  52. network.host: 192.168.217.67
  53. #
  54. # Set a custom port for HTTP:
  55. #
  56. http.port: 9200
  57. #
  58. # For more information, see the documentation at:
  59. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
  60. #
  61. # --------------------------------- Discovery ----------------------------------
  62. #
  63. # Pass an initial list of hosts to perform discovery when new node is started:
  64. # The default list of hosts is ["127.0.0.1", "[::1]"]
  65. #
  66. # discovery.zen.ping.unicast.hosts: ["host1", "host2"]
  67. #
  68. # Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
  69. #
  70. discovery.zen.minimum_master_nodes: 1
  71. #
  72. # For more information, see the documentation at:
  73. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
  74. #
  75. # ---------------------------------- Gateway -----------------------------------
  76. #
  77. # Block initial recovery after a full cluster restart until N nodes are started:
  78. #
  79. gateway.recover_after_nodes: 1
  80. #
  81. # For more information, see the documentation at:
  82. # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
  83. #
  84. # ---------------------------------- Various -----------------------------------
  85. #
  86. # Disable starting multiple nodes on a single system:
  87. #
  88. node.max_local_storage_nodes: 1
  89. #
  90. # Require explicit names when deleting indices:
  91. #
  92. # action.destructive_requires_name: true
Advertisement
Add Comment
Please, Sign In to add comment