[Elastic] Install elasticsearch cluster
[elasticsearch install - linux Version]
Node별로 $ES_HOME/config/elasticsearch.yml을 아래와 같이 설정한다.
[node1]
cluster.name: elastic-poc
node.name: elastic-node1
path.data: /home/pocuser/elastic-node1/elasticsearch/data
path.logs: /home/pocuser/elastic-node1/elasticsearch/logs
network.host: 1.234.25.136
http.port: 49100
transport.port: 49110
discovery.seed_hosts: ["1.234.25.136:49110", "1.234.25.136:49210", "1.234.25.136:49310"]
cluster.initial_master_nodes: ["elastic-node1", "elastic-node2", "elastic-node3"]
node.master: true
node.data: true
node.ingest: true
xpack.license.self_generated.type : trial
xpack.security.enabled: true
xpack.security.audit.enabled: true
[node2]
cluster.name: elastic-poc
node.name: elastic-node2
path.data: /home/pocuser/elastic-node2/elasticsearch/data
path.logs: /home/pocuser/elastic-node2/elasticsearch/logs
network.host: 1.234.25.136
http.port: 49200
transport.port: 49210
discovery.seed_hosts: ["1.234.25.136:49110", "1.234.25.136:49210", "1.234.25.136:49310"]
cluster.initial_master_nodes: ["elastic-node1", "elastic-node2", "elastic-node3"]
node.master: true
node.data: true
node.ingest: true
xpack.license.self_generated.type : trial
xpack.security.enabled: true
xpack.security.audit.enabled: true
[node3]
cluster.name: elastic-poc
node.name: elastic-node3
path.data: /home/pocuser/elastic-node3/elasticsearch/data
path.logs: /home/pocuser/elastic-node3/elasticsearch/logs
network.host: 1.234.25.136
http.port: 49300
transport.port: 49310
discovery.seed_hosts: ["1.234.25.136:49110", "1.234.25.136:49210", "1.234.25.136:49310"]
cluster.initial_master_nodes: ["elastic-node1", "elastic-node2", "elastic-node3"]
node.master: true
node.data: true
node.ingest: true
xpack.license.self_generated.type : trial
xpack.security.enabled: true
xpack.security.audit.enabled: true
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-7.6.2-linux-x86_64.tar.gz.sha512
tar -xzf elasticsearch-7.6.2-linux-x86_64.tar.gz
cd elasticsearch-7.6.2/
node별로 설치한다.
[elasticsearch configuration for a cluster]
Node별로 $ES_HOME/config/elasticsearch.yml을 아래와 같이 설정한다.
[node1]
cluster.name: elastic-poc
node.name: elastic-node1
path.data: /home/pocuser/elastic-node1/elasticsearch/data
path.logs: /home/pocuser/elastic-node1/elasticsearch/logs
network.host: 1.234.25.136
http.port: 49100
transport.port: 49110
discovery.seed_hosts: ["1.234.25.136:49110", "1.234.25.136:49210", "1.234.25.136:49310"]
cluster.initial_master_nodes: ["elastic-node1", "elastic-node2", "elastic-node3"]
node.master: true
node.data: true
node.ingest: true
xpack.license.self_generated.type : trial
xpack.security.enabled: true
xpack.security.audit.enabled: true
[node2]
cluster.name: elastic-poc
node.name: elastic-node2
path.data: /home/pocuser/elastic-node2/elasticsearch/data
path.logs: /home/pocuser/elastic-node2/elasticsearch/logs
network.host: 1.234.25.136
http.port: 49200
transport.port: 49210
discovery.seed_hosts: ["1.234.25.136:49110", "1.234.25.136:49210", "1.234.25.136:49310"]
cluster.initial_master_nodes: ["elastic-node1", "elastic-node2", "elastic-node3"]
node.master: true
node.data: true
node.ingest: true
xpack.license.self_generated.type : trial
xpack.security.enabled: true
xpack.security.audit.enabled: true
[node3]
cluster.name: elastic-poc
node.name: elastic-node3
path.data: /home/pocuser/elastic-node3/elasticsearch/data
path.logs: /home/pocuser/elastic-node3/elasticsearch/logs
network.host: 1.234.25.136
http.port: 49300
transport.port: 49310
discovery.seed_hosts: ["1.234.25.136:49110", "1.234.25.136:49210", "1.234.25.136:49310"]
cluster.initial_master_nodes: ["elastic-node1", "elastic-node2", "elastic-node3"]
node.master: true
node.data: true
node.ingest: true
xpack.license.self_generated.type : trial
xpack.security.enabled: true
xpack.security.audit.enabled: true
댓글
댓글 쓰기