Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Monitoring Elasticsearch

You're reading from   Monitoring Elasticsearch

Arrow left icon
Product type Paperback
Published in Jul 2016
Publisher Packt
ISBN-13 9781784397807
Length 180 pages
Edition 1st Edition
Arrow right icon
Authors (3):
Arrow left icon
Dan Noble Dan Noble
Author Profile Icon Dan Noble
Dan Noble
Pulkit Agrawal Pulkit Agrawal
Author Profile Icon Pulkit Agrawal
Pulkit Agrawal
Mahmoud Lababidi Mahmoud Lababidi
Author Profile Icon Mahmoud Lababidi
Mahmoud Lababidi
Arrow right icon
View More author details
Toc

Cluster setup

This section covers configuring a three-node Elasticsearch cluster and loading it with Twitter data.

Cluster configuration

Setting up an Elasticsearch cluster is simple. All nodes in the cluster should be on the same local network and have the same version of Java and Elasticsearch installed. For our cluster, we'll use three Ubuntu Linux 14.04 virtual hosts: elasticsearch-node-01, elasticsearch-node-02, and elasticsearch-node-03.

After installing Elasticsearch on all hosts, update the elasticsearch.yml configuration file on each, as follows:

  • The configuration for elasticsearch-node-01 is as follows:
    cluster.name: my_elasticsearch_cluster
    node.name: "elasticsearch-node-01"
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: ["elasticsearch-node-02", "elasticsearch-node-03"]
    index.routing.allocation.disable_allocation: false
    cluster.routing.allocation.enable : all
  • The configuration for elasticsearch-node-02 is as follows...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime