Skip to content

gokhansengun/docker-elasticsearch-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Creates a Elasticsearch Cluster consisting of 2 client, 3 master and 3 data nodes using Docker.

CAUTION: You will need at least 2 GB of free memory allocated to Docker daemon to be able to get cluster up and running.

Usage

Creating Cluster

Run make all to for the Elasticsearch cluster with all the nodes.

Indexing a Sample Dataset

Dataset is generated using mockaroo, it is fun, you should use it too.

Run make load-dataset to index a dataset of 1K documents.

Querying the Cluster Status

Run make query-cluster-health to query the cluster.

Todo

  • Add head plugin to Client nodes to visualize nodes and shards
  • Create different variations (1 client, 2 master and 2 data nodes or 2 client, 3 master and 8 data nodes, etc) for different uses
  • Try failover scenarios

About

Elasticsearch Cluster Example using Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published