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 consult the documentation for further information on configuration options:
11 # https://www.elastic.co/guide/en/elasticsearch/reference/index.html
12 #
13 # ---------------------------------- Cluster -----------------------------------
14 #
15 # Use a descriptive name for your cluster:
16 #
17 cluster.name: hna-es 
18 #
19 # ------------------------------------ Node ------------------------------------
20 #
21 # Use a descriptive name for the node:
22 #
23 node.name: hna-es-1 
24 #
25 # Add custom attributes to the node:
26 #
27 #node.attr.rack: r1
28 #
29 # ----------------------------------- Paths ------------------------------------
30 #
31 # Path to directory where to store the data (separate multiple locations by comma):
32 #
33 #path.data: /var/lib/elasticsearch
34 path.data: /data/components/elasticsearch 
35 #
36 # Path to log files:
37 #
38 path.logs: /data/logs/elasticsearch
39 #path.logs: /var/log/elasticsearch
40 #
41 # ----------------------------------- Memory -----------------------------------
42 #
43 # Lock the memory on startup:
44 #
45 #bootstrap.memory_lock: true
46 #
47 # Make sure that the heap size is set to about half the memory available
48 # on the system and that the owner of the process is allowed to use this
49 # limit.
50 #
51 # Elasticsearch performs poorly when the system is swapping the memory.
52 #
53 # ---------------------------------- Network -----------------------------------
54 #
55 # Set the bind address to a specific IP (IPv4 or IPv6):
56 #
57 network.host: 0.0.0.0 
58 #
59 # Set a custom port for HTTP:
60 #
61 http.port: 9200
62 #
63 # For more information, consult the network module documentation.
64 #
65 # --------------------------------- Discovery ----------------------------------
66 #
67 # Pass an initial list of hosts to perform discovery when new node is started:
68 # The default list of hosts is ["127.0.0.1", "[::1]"]
69 #
70 discovery.zen.ping.unicast.hosts: ["192.168.100.130"]
71 #
72 # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
73 #
74 #discovery.zen.minimum_master_nodes: 3
75 #
76 # For more information, consult the zen discovery module documentation.
77 #
78 # ---------------------------------- Gateway -----------------------------------
79 #
80 # Block initial recovery after a full cluster restart until N nodes are started:
81 #
82 #gateway.recover_after_nodes: 3
83 #
84 # For more information, consult the gateway module documentation.
85 #
86 # ---------------------------------- Various -----------------------------------
87 #
88 # Require explicit names when deleting indices:
89 #
90 #action.destructive_requires_name: true
91 # ---------------------------------- X-pack-----------------------------------
92 xpack.ssl.key: /etc/elasticsearch/config/hna-es-1/hna-es-1.key
93 xpack.ssl.certificate: /etc/elasticsearch/config/hna-es-1/hna-es-1.crt
94 xpack.ssl.certificate_authorities: /etc/elasticsearch/config/ca/ca.crt
95 xpack.security.transport.ssl.enabled: true
96 xpack.ssl.verification_mode: certificate 
elasticsearch1.yml

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-09-10
  • 2021-08-31
  • 2022-02-28
  • 2021-07-02
猜你喜欢
  • 2021-10-01
  • 2021-09-20
  • 2021-07-21
  • 2022-12-23
  • 2021-06-08
  • 2021-12-28
相关资源
相似解决方案