官术网_书友最值得收藏!

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:

  1. Setup if the node can be master or not:
    node.master: true
  2. 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 is true.

    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 is true. 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.

主站蜘蛛池模板: 龙泉市| 上虞市| 新闻| 江北区| 龙海市| 都昌县| 长春市| 桑植县| 南木林县| 丰原市| 平安县| 西畴县| 岢岚县| 宁远县| 太仆寺旗| 衡南县| 芒康县| 慈溪市| 楚雄市| 郓城县| 绥化市| 简阳市| 延吉市| 崇文区| 韶关市| 灵川县| 金塔县| 海淀区| 西乌| 崇阳县| 井陉县| 海宁市| 县级市| 体育| 台湾省| 邯郸县| 东方市| 上栗县| 东海县| 神池县| 紫云|