Elasticsearch requires configuration and settings file changes made consistently across the Elasticsearch cluster.
On each Elasticsearch node, run the provided configuration script (
/usr/share/caringo-elasticsearch-search/bin/configure_elasticsearch_with_swarm_search.py
), which automates the configuration changes described below.Resume the installation, to turn on the service if no customizations below are needed: Installing Elasticsearch
Proceed as follows if any settings need to be customized, such as to change Elasticsearch's
path.data
(data directory). Edit the configuration file directly and update log files accordingly.
Customizing Elasticsearch
...
Info |
---|
Caution
|
Elasticsearch Config File
...
| Provide the cluster a unique name. Do not use periods in the name.
| |||||
---|---|---|---|---|---|---|
| Setting node.name is optional. Elasticsearch supplies a node name if not set. Do not use periods in the name. | |||||
| Assign a specific hostname or IP address, which requires clients to access the ES server using that address. Update
| |||||
| Set to the list of node names/IPs in the cluster, include ES servers. Multicast is disabled by default. | |||||
| Set to (number of master-eligible nodes / 2, rounded down) + 1 Prevents split-brain scenarios by setting the minimum number of ES nodes online before deciding on electing a new master. | |||||
| Add and set to the number of nodes in the ES cluster. Recovery of local shards starts as soon as this number of nodes have joined the cluster. It falls back to the | |||||
| Set to the minimum number of ES nodes started before going in to operation status. This example is for a 4-node cluster. | |||||
| Add to support queries with very large result sets (it limits start/from and size in queries). Elasticsearch accepts values up to 2 billion, but more than 50,000 consumes excessive resources on the ES server. | |||||
| For best performance, set how often the translog is fsynced to disk and committed, regardless of write operations. | |||||
| For best performance, change to | |||||
| Set to lock the memory on startup to guarantee Elasticsearch never swaps does not swap (swapping makes it perform poorlyleads to poor performance). Verify enough system memory resources are available for all processes running on the server. The RPM installer makes these edits to
| |||||
| Add to increase the indexing bulk queue size to compensate for bursts of high indexing activity that can exceed Elasticsearch’s rate of indexing. | |||||
| (SwarmNFS users only) Add to support dynamic scripting. | |||||
| Add to support metrics in the Swarm Storage UI. | |||||
| By default, path.data goes to
|
...