Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#FFBDAD

Starting October 11, 2024 (Zephyr Enterprise 8.2), the Zephyr Enterprise documentation moved from its current location on Atlassian to a dedicated, standalone Zephyr Enterprise documentation page. Please see: https://support.smartbear.com/zephyr-enterprise/docs/en/zephyr-enterprise/zephyr-installation-and-upgrade-guides/zephyr-on-premise-production-installation/set-up-zephyr-data-center-cluster/2--install-and-configure-elasticsearch.html

To be able to work with Zephyr Data Center, you need to install and configure Elasticsearch -- a search and analytics engine -- on a separate node. Depending on the number of concurrent users who will work with the Data Center, you may need to set up one Elasticsearch node or a cluster of nodes (see Recommended Configurations).

Note
  • The latest Zephyr Enterprise release supports Elasticsearch 7.16.2 and 8.6.2

  • If you use an Elasticsearch cluster, there is no need to use an external load balancer, as Elasticsearch used in a cluster has the load balancing capability.

To install Elasticsearch on Windows (on a single node or

...

cluster nodes):

  1. Download Elasticsearch 7.16.2 or Elasticsearch 8.6.2 (the ZIP archive).

...

3. Configure the {elasticsearch}\config\elasticsearch.yml file:
For more details on the configuration for-
Single node- refer to the details in ES 8.6.2 or ES 7.16.2
Cluster nodes - refer to the details in ES 8.6.2 or ES 7.16.2

...

.

...

2

...

4. Start the service by running the elasticsearch-7.16.2{elasticsearch}\bin\elasticsearch.bat file.

To install Elasticsearch on Linux (on a single node or on cluster nodes):

1.Download Elasticsearch 7.16.2 or Elasticsearch 8.6.2 (the RPM archive), or run the following command in the Linux command prompt:
For 8.6.2 use the link- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-78.166.2-x86_64.rpm

2. In the Linux command prompt, run one of the following commands to install Elasticsearch:
For 8.6.2 - sudo rpm -ivh elasticsearch-78.166.2-x86_64.rpm
sudo yum localinstall elasticsearch-78.166.2-x86_64.rpm

3. Configure the etc\elasticsearch\elasticsearch.yml file:

Expand
titleFor a single node

Specify the following properties in the elasticsearch.yml file:

Code Block
languageyaml
cluster.name: zephyr
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 192.168.0.1
xpack.security.enabled: false
discovery.seed_hosts: ["192.168.0.1"]
http.port: 9200
indices.query.bool.max_clause_count: 9024
Expand
titleFor a cluster
Note
  • The number of Elasticsearch nodes you use in a cluster should be odd. That is, the minimum number of nodes you can use in a cluster is 3.

  • To avoid split-brain, you need to specify an appropriate value for the discovery.zen.minimum_master_nodes parameter. To determine it, follow the rule N/2+1, where N is the number of nodes in the cluster. In a three-node cluster, the parameter should be set to 2 (3/2+1=2 - rounded down to the nearest integer).

1. Specify the following properties in the elasticsearch.yml file on all Elasticsearch nodes (replace the IPs with your IPs):

Elasticsearch node 1:

Code Block
languageyaml
#ESNode 1 (192.168.0.1)

cluster.name: zephyr
node.name: node-1
node.master: true
node.data: true
http.port: 9200
bootstrap.memory_lock: false
network.host: 192.168.0.1
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024

Elasticsearch node 2:

Code Block
languageyaml
#ESNode 2 (192.168.0.2)

cluster.name: zephyr
node.name: node-2
node.master: true
node.data: true
http.port: 9200
bootstrap.memory_lock: false
network.host: 192.168.0.2
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024

Elasticsearch node 3:

Code Block
languageyaml
#ESNode 3 (192.168.0.3)

cluster.name: zephyr
node.name: node-3
http.port: 9200
node.master: true
node.data: true
bootstrap.memory_lock: false
network.host: 192.168.0.3
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
xpack.security.enabled: false
indices.query.bool.max_clause_count: 9024
Info

discovery.seed_hosts should list all the IPs and ports used in the cluster.

2. After creating all the nodes, delete the /var/lib/elasticsearch/nodes folder on all the nodes, then restart.

...

For more details on configuration for-
Single node- refer to the details in ES 8.6.2
Cluster nodes - refer to the details in ES 8.6.2

4. Start Elasticsearch. The way you start and stop it depends on whether your system uses SysV init or systemd.

...


< Prev Step Next Step >

See Also

Set Up Zephyr Data Center
/wiki/spaces/ZE/pages/1558445859