Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

02. ElasticSearch : Distributed Cluster

501 vues

Publié le

02. ElasticSearch : Distributed Cluster

Publié dans : Données & analyses
  • Soyez le premier à commenter

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

×