- ElasticSearch Cookbook
- Alberto Paro
- 262字
- 2021-04-02 10:09:58
Setting up different node types (advanced)
ElasticSearch is a native designed for the cloud, so when you need to release a production environment with a huge number of records and you need high availability and good performance, you need to aggregate more nodes in a cluster.
ElasticSearch allows defining different types of nodes to balance and improve overall performances.
Getting ready
You need a working ElasticSearch installation.
How to do it...
For an advance cluster setup, there are some parameters that must be configured to define different node types. These parameters are in config
/elasticsearch.yml
and they can be set with the following steps:
- Setup if the node can be master or not:
node.master: true
- Setup if a node must contain data or not:
node.data: true
How it works...
The working of different nodes types is as follows:
node.master
: This parameter defines that the node can become master for the cloud. The default value for this parameter istrue
.A master node is an arbiter for the cloud: it takes a decision about shard management, it keeps cluster status and it's the main controller of every index action.
node.data
: This allows you to store data in the node. The default value for this parameter istrue
. This node will be a worker that indexes and searches data.
Mixing these two parameters, it's possible to have different node types:

The more frequently used node type is the first one, but if you have a very big cluster or special needs, you can differentiate the scopes of your nodes to better serve searches and aggregations.
- 發(fā)布!設(shè)計(jì)與部署穩(wěn)定的分布式系統(tǒng)(第2版)
- Ansible權(quán)威指南
- 精解Windows 8
- 深入理解eBPF與可觀測(cè)性
- Android物聯(lián)網(wǎng)開發(fā)細(xì)致入門與最佳實(shí)踐
- Mastering Reactive JavaScript
- Windows 7應(yīng)用入門與技巧
- 計(jì)算機(jī)系統(tǒng)的自主設(shè)計(jì)
- 從實(shí)踐中學(xué)習(xí)Windows滲透測(cè)試
- Learning BeagleBone
- 鴻蒙HarmonyOS手機(jī)應(yīng)用開發(fā)實(shí)戰(zhàn)
- Getting Started with UDK
- BuddyPress Theme Development
- Mastering Azure Serverless Computing
- 計(jì)算機(jī)系統(tǒng)平臺(tái)