Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elastic{ON}Tour Tokyo 2017 - Elasticsearch Deep...

Elastic Co
December 14, 2017

Elastic{ON}Tour Tokyo 2017 - Elasticsearch Deep Dive

Elasticsearch 5.xでどのような機能や変更が行われたのか。アップグレードやスケール、リカバリ、ディスク使用量などの懸念事項について、6.xではどのように進化していくのかを解説します。

Jun Ohtani | Developer, Evangelist| Elastic

Elastic Co

December 14, 2017
Tweet

More Decks by Elastic Co

Other Decks in Technology

Transcript

  1. 5 Elasticsearch 5.x Still ^ •  Keyword ਖ਼نԽ •  ౷Ұ͞ΕͨϋΠϥΠλʔ

    •  ΧςΰϦͳͲʹΑΔ݁Ռͷू໿ •  ྨٛޠʹؔ͢Δվળ •  ݕࡧͷΩϟϯηϧ •  ฒྻ࣮ߦͰ͖Δscroll΍reindex
  2. 6 Elasticsearch 5.x Still ^ •  ਺஋΍೔෇ͷൣғϑΟʔϧυ •  ൣғݕࡧʹؔ͢ΔΫΤϦ࠷దԽ • 

    େྔͷaggsʹؔ͢Δ෼ׂऔಘ •  geo-distanceͷιʔτͷ଎౓޲্ •  geo-ip lookupͷ଎౓޲্ and for logs and for numbers and for geo and ... ^
  3. Cluster UK Master Nodes Data Node Data Node Data Node

    Tribe Node t1 Node Client Cluster US Master Nodes Data Node Data Node Data Node t2 Node Client 8 Tribe Node Merged Cluster State! Kibana
  4. 9 Cross-Cluster Search Cluster UK Master Nodes Data Node Data

    Node Data Node Master/Data Node Cluster US Master Nodes Data Node Data Node Data Node Master/Data Node Kibana Optional dedicated cross-cluster search cluster
  5. © Marie-Lan Nguyen Wikimedia Commons / CC-BY 2.5 11 ओͳ೰Έͷλω͸ʁ

    •  σΟεΫ࢖༻ྔ •  ݎ࿚ੑ΍ϦΧόϦ •  ϝδϟʔόʔδϣϯΞοϓάϨʔυ
  6. © Marie-Lan Nguyen Wikimedia Commons / CC-BY 2.5 12 ओͳ೰Έͷλω͸ʁ

    •  σΟεΫ࢖༻ྔ •  ݎ࿚ੑ΍ϦΧόϦ •  ϝδϟʔόʔδϣϯΞοϓάϨʔυ
  7. 13 Doc Values - ૄͳσʔλ (5.x) Segment 1 ID fname

    lname 1 Shane Connelly 2 Shay Banon 3 Tanya Bragin Segment 2 ID fname lname mi state city 4 Steve Kearns Null Null Boston 5 George Burdell P GA Null 6 Frasier Crane Null WA Seattle Merged Segment 3 Docs fname lname mi state city 1 Shane Connelly Null Null Null 2 Shay Banon Null Null Null 3 Tanya Bragin Null Null Null 4 Steve Kearns Null Null Boston 5 George Burdell P GA Null 6 Frasier Crane Null WA Seattle
  8. © Marie-Lan Nguyen Wikimedia Commons / CC-BY 2.5 16 ओͳ೰Έͷλω͸ʁ

    •  σΟεΫ࢖༻ྔ •  ݎ࿚ੑ΍ϦΧόϦ •  ϝδϟʔόʔδϣϯΞοϓάϨʔυ
  9. 17 ϦΧόϦ (5.x) Segment 1 Segment 1 Segment 2 Segment

    2 Segment 3 Segment 3 Primary Replica
  10. 18 ϦΧόϦ (5.x) Segment 1 Segment 1 Segment 2 Segment

    2 Segment 3 Segment 3 Offline Primary
  11. 19 ϦΧόϦ (5.x) Segment 1 Segment 1 Segment 2 Segment

    4 Segment 3 Primary Segment 1 Segment 2 Segment 3 Offline
  12. 20 ϦΧόϦ (5.x) Segment 1 Segment 1 Segment 2 Segment

    4 Segment 3 Primary Segment 1 Segment 2 Segment 3 Repica ϑΝΠϧίϐʔ
  13. © Marie-Lan Nguyen Wikimedia Commons / CC-BY 2.5 22 ओͳ೰Έͷλω͸ʁ

    •  σΟεΫ࢖༻ྔ •  ݎ࿚ੑ΍ϦΧόϦ •  ϝδϟʔόʔδϣϯΞοϓάϨʔυ
  14. 23 ϝδϟʔόʔδϣϯ ΞοϓάϨʔυͷ໰୊఺ •  Ϋϥελશମ࠶ىಈ == μ΢ϯλΠϜ •  Client/server όʔδϣϯޓ׵ੑ

    (Java) •  σʔλอ࣋ظؒ/ϥΠϑαΠΫϧ •  ଟ͘ͷղܾࠔ೉ͳޓ׵ੑͷͳ͍มߋ •  ܯࠂ͕গͳ͍/ग़ͳ͍ɺ ඇਪ঑ˍޓ׵ੑͷͳ͍มߋ © Famartin Wikimedia Commons / CC-BY 2.5
  15. 24 ϝδϟʔόʔδϣϯ ΞοϓάϨʔυͷ໰୊఺ •  Ϋϥελશମ࠶ىಈ == μ΢ϯλΠϜ •  Client/server όʔδϣϯޓ׵ੑ

    (Java) •  σʔλอ࣋ظؒ/ϥΠϑαΠΫϧ •  ଟ͘ͷղܾࠔ೉ͳޓ׵ੑͷͳ͍มߋ •  ܯࠂ͕গͳ͍/ग़ͳ͍ɺ ඇਪ঑ˍޓ׵ੑͷͳ͍มߋ © Famartin Wikimedia Commons / CC-BY 2.5
  16. 26 ϝδϟʔόʔδϣϯ ΞοϓάϨʔυͷ໰୊఺ •  Ϋϥελશମ࠶ىಈ == μ΢ϯλΠϜ •  Client/server όʔδϣϯޓ׵ੑ

    (Java) •  σʔλอ࣋ظؒ/ϥΠϑαΠΫϧ •  ଟ͘ͷղܾࠔ೉ͳޓ׵ੑͷͳ͍มߋ •  ܯࠂ͕গͳ͍/ग़ͳ͍ɺ ඇਪ঑ˍޓ׵ੑͷͳ͍มߋ © Famartin Wikimedia Commons / CC-BY 2.5
  17. 27 Java high level REST client •  5.6ͰϦϦʔε •  ϝδϟʔόʔδϣϯΞοϓάϨʔυͰར༻

    •  IDE ϑϨϯυϦʔ •  Transport Clientͱಉ༷ͷAPI •  low-level REST client͕ϕʔε •  CRUD & SearchΛαϙʔτ
  18. 28 ϝδϟʔόʔδϣϯ ΞοϓάϨʔυͷ໰୊఺ •  Ϋϥελશମ࠶ىಈ == μ΢ϯλΠϜ •  Client/server όʔδϣϯޓ׵ੑ

    (Java) •  σʔλอ࣋ظؒ/ϥΠϑαΠΫϧ •  ଟ͘ͷղܾࠔ೉ͳޓ׵ੑͷͳ͍มߋ •  ܯࠂ͕গͳ͍/ग़ͳ͍ɺ ඇਪ঑ˍޓ׵ੑͷͳ͍มߋ © Famartin Wikimedia Commons / CC-BY 2.5
  19. 29 σʔλอ࣋ظؒ / ϥΠϑαΠΫϧ: ͲΜͳΦϓγϣϯ͕ʁ ݹ͍σʔλͷ ࡟আ Reindex ͬͦ͜Γ v1.2.0Λ࢖͏...

    •  ΫϥελΛίϯύΫτʹ :) •  อ࣋ظؒͷ࠶ݕ౼ :) •  ΞοϓάϨʔυͰ͖ͳ͍ظؒ :( •  ར༻ͯ͠Δؒ͸࡟আͰ͖ͳ͍ :( •  ࠷৽Ͱศརͳػೳ :) •  σʔλྔʹΑΓ͕͔͔࣌ؒΔ Մೳੑ :( •  ؅ཧ͕༰қͰ͸ͳ͍ :( •  ΋ͬͱ΋ָͳํ๏ʁ •  ηΩϡϦςΟϑΟοΫε͕ ఏڙ͞Εͳ͘ͳΔ :( •  ࠷৽ͷศརػೳ͕࢖͑ͳ͍ :(
  20. 30 Cross Major Version Search v5.6.0 Master Nodes Data Node

    Data Node v6.0.0 Your App Master Nodes Data Node Cross Cluster Client v5.latest
  21. 32 ϝδϟʔόʔδϣϯ ΞοϓάϨʔυͷ໰୊఺ •  Ϋϥελશମ࠶ىಈ == μ΢ϯλΠϜ •  Client/server όʔδϣϯޓ׵ੑ

    (Java) •  σʔλอ࣋ظؒ/ϥΠϑλΠϜ •  ଟ͘ͷղܾࠔ೉ͳޓ׵ੑͷͳ͍มߋ •  ܯࠂ͕গͳ͍/ग़ͳ͍ɺ ඇਪ঑ˍޓ׵ੑͷͳ͍มߋ © Famartin Wikimedia Commons / CC-BY 2.5
  22. 34 6.1ͷ௥Ճػೳ •  Index Splitting •  Composite Aggregation •  Adaptive

    Replica Selection •  Scripted Similarities © Famartin Wikimedia Commons / CC-BY 2.5