Hi there. In this topic we will install Elasticsearch cluster which will be contain two nodes.
1. Download Elasticsearch (further ES) deb package, install it and make ES config:
apt-get install -y openjdk-7-jre && dpkg -i elasticsearch-0.90.7.deb
Hello. In this topic I'll put explanation of ES shards and replicas. I'll find it on http://stackoverflow.com. Thank a lot in advance Luca Cavanna for explanation.
When you download elasticsearch and start it up you create an elasticsearch node which tries to join an existing cluster if available or creates a new one. Let's say you created your own new cluster with a single node, the one that you just started up. We have no data, therefore we need to create an index.
When you create an index (an index is automatically created when you index the first document as well) you can define how many shards it will be composed of. If you don't spe...