Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

02. ElasticSearch : Distributed Cluster

495 views

Published on

02. ElasticSearch : Distributed Cluster

Published in: Data & Analytics
  • Be the first to comment

02. ElasticSearch : Distributed Cluster

  1. 1. ElasticSearch Distributed Cluster http://elastic.openthinklabs.com/
  2. 2. An Empty Cluster
  3. 3. Cluster Health GET /_cluster/health { "cluster_name": "openthinklabs", "status": "green", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes": 1, "active_primary_shards": 0, "active_shards": 0, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 0, "delayed_unassigned_shards": 0, "number_of_pending_tasks": 0, "number_of_in_flight_fetch": 0 }
  4. 4. Add an Index PUT /blogs { "settings" : { "number_of_shards" : 3, "number_of_replicas" : 1 } }
  5. 5. A single-node cluster with an index GET /_cluster/health { "cluster_name": "openthinklabs", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes": 1, "active_primary_shards": 4, "active_shards": 4, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 4, "delayed_unassigned_shards": 0, "number_of_pending_tasks": 0, "number_of_in_flight_fetch": 0 }
  6. 6. Add Failover
  7. 7. Scale Horizontally
  8. 8. Then Scale Some More PUT /blogs/_settings { "number_of_replicas" : 2 }
  9. 9. Coping With Failure Cluster after killing one node
  10. 10. Referensi ● ElasticSearch, The Definitive Guide, A Distributed Real-Time Search and Analytics Engine, Clinton Gormely & Zachary Tong, O’Reilly

×