Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Elasticsearch on EC2からAmazon Elasticsearch Serv...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ikuwow
September 15, 2016
Technology
3.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Elasticsearch on EC2からAmazon Elasticsearch Serviceに 移行してだいぶ楽になった話
ikuwow
September 15, 2016
More Decks by ikuwow
See All by ikuwow
意外と使える! Alibaba Cloud
ikuwow
0
250
teratailの解析基盤をEFKで作っていろいろ楽しい話
ikuwow
0
930
UNIXという考え方
ikuwow
1
2.1k
技術書紹介 パーフェクトPHP
ikuwow
0
2.2k
みんなもMiddlemanで技術ブログ作って幸せになろう!
ikuwow
0
1k
PHPサイバーテロの技法 書籍紹介
ikuwow
0
1k
Other Decks in Technology
See All in Technology
bpf_arenaとstruct_opsを使うのが難しかった話
masu_mi
0
210
DBTS2026 盛り上がってますか!?Databricksが実現するAI時代のデータ基盤
akuwano
1
190
「AIチャットからもできないの?」と言われたら ~業務アプリをMCP対応するときの認証・認可の勘所
oidfj
0
110
リアクションエンジニア ― 小さなリアクションから、話しかけやすい組織をつくる ―
ryuguyana
1
130
An Introduction to Context Ontology Accelerator (teaching AI agents what your data means)
inariku
PRO
1
110
セキュリティ専任チームなしで攻撃を先回りするSREが実践したSIEM on Amazon OpenSearch Service
cscengineer
PRO
0
580
AI時代に求められる優秀なTechLeadの振る舞い
pospome
11
15k
令和の今、あらためて IAM を考える。アクセスキーを「無くせない現実」との向き合い方
kazzpapa3
0
450
IBC 2026 動画技術関連レポート / IBC 2026 Report
cyberagentdevelopers
PRO
2
440
お客様の「やりたい」の先を見通す合意形成プロセス ~裏にある課題と不安を解きほぐすコツ~
yukakoseki
0
110
慶應義塾大学 AI実践05 論文執筆の仕組み化
keio_smilab
PRO
7
3.7k
[dbts2026]数十PBの超巨大データ×AI活用を支えるSnowflakeの実力〜大規模環境におけるアーキテクチャと運用のリアル〜
y_matsubara
0
110
Featured
See All Featured
How to build a perfect <img>
jonoalderson
1
6.2k
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
790
Utilizing Notion as your number one productivity tool
mfonobong
4
640
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
520
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
420
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
3
1.2k
Transcript
Elasticsearch on EC2͔Β Amazon Elasticsearch Serviceʹ Ҡߦ͍ͯͩ͠Ϳָʹͳͬͨ @ikuwow 2016/09/15 ू·ͬtail
#6
ࣗݾհ • όοΫΤϯυͷPHPͰͷ։ ൃɺAWSGCPͷॾʑͷΠ ϯϑϥ·ΘΓத৺ʹ͍ΖΜ ͳ͜ͱΛ͍ͬͯ·͢ • SoftwareDesignʹʮΞϓϦ ΤϯδχΞͷͨΊͷΠϯϑ ϥೖʯͱ͍͏࿈ࡌΛ࢝Ί
·ͨ͠ @ikuwow ग़ ز
teratailͰͷੳ Elasticsearch + Kibana Redshift + Tableau
Elastic search + Kibanaͱ • Elasticsearch: จॻͷશจ ݕࡧϩάͷੳʹར༻ ͞ΕΔݕࡧΤϯδϯʢε ΩʔϚϨεʣ
• Kibana: Elasticsearchͷϑ ϩϯτΤϯυͱͯ͠ײ తͳૢ࡞ͰσʔλΛ؆୯ ʹूܭՄࢹԽ͕ߦ͑Δ
গ͠લͷߏ node.master: false node.data: false node.master: true node.data: true node.master:
false node.data: false node.master: true node.data: true Amazon Redshift Amazon S3 teratailͷதͷਓ ४ϦΞϧλΠϜՄࢹԽ KPIΛਂ͘ՄࢹԽ όονॲཧ
Կ͕ى͔ͬͨ͜ • ʮ҆ఆՔಇͦ͠͏ͩ͠ɺΠϯελϯεҰݸ૿ ͯ͠replica૿ͤΔΑ͏ʹͯ͠ΈΑͬͱ̇ʯ
Loadingͷ··ฦͬͯ͜ͳ͍ʁʂ
Πϯελϯε͕ɾɾɾ • CPU༻͕100%ʹ ுΓ͍͍ͯΔ
cluster_health status: red { "cluster_name" : "elasticsearch", "status" : "
red", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 1061, "active_shards" : 1061, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 3488, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 23.32380743020444 } ͔͠Ϋϥελ͕ͯ͠Δ
ͭΒ͍ • ΫϥελཧָͪΜͩͱࢥͬͨΒͦΜͳ͜ͱແ͔ͬͨʂ • ؾָʹϊʔυ૿͢ͱམͪΔ • ͍͘ΒεϖοΫ্͛ͯͨΓͳ͍ • ΘΓͱࢁͷΠϯελϯεΛཧ •
ΠϯλʔϑΣʔεͱؚ͔Ί • EBSͷ্ʹݐͯͨΜ͔ͩΒॏ͍
ͦΜͳ͋Δɾɾɾ
None
͏͔͠ͳ͍
Amazon Elasticsearch Service • AWSͷElasticsearchͷ ϚωʔδυαʔϏε • ؆୯ʹσϓϩΠɺૢ࡞ɺ εέʔϧ
ࠓͷߏ teratailͷதͷਓ ४ϦΞϧλΠϜՄࢹԽ Amazon Redshift Amazon S3 KPIΛਂ͘ՄࢹԽ
εέʔϧΞτ͕༰қ • ϊʔυ 5 => 6
ઃఆ؆୯ ϊʔυܾΊͯ access policy ܾΊΔ͚ͩ
ͻͨ͢Βָʂ
ͦͷଞ͍͍ͱࢥͬͨͱ͜Ζ • ͻͨ͢Βָ • ΠϯελϯεҰͭҰͭཧ͠ͳ͍͍ͯ͘ • མͪͳ͍҆৺ײ • ͨ·ʹhung up͢Δ͜ͱ͋ΔΈ͍͚ͨͩͲ
• Instance Storageར༻Մೳ • AWSΤίγεςϜʹ͋ΔͷͰखؒͳ͠
ͬͯΈͯײͨܽ͡ • ΞΫηεݩ੍ݶ͕໘ • άϩʔόϧͳΤϯυϙΠϯτ͚͕ͩҰ͕ͭ͋ͯΘΕΔ • VPCະରԠͰɺΞΫηεϙϦγʔͰIPΞυϨεɺIAMͰͷ੍ݶ͕ओ • AWS Lambda͔ΒϦΫΤετૹΔͷ͕ඇৗʹ໘…
• ϓϥάΠϯͷՃ͕Ͱ͖ͳ͍ • Timelion, Sense, Elasticsearch-head, ElastAlert, … • ͑ͳ͍APIΤϯυϙΠϯτ͕͋Δ • /_reindex, /_reroute etc.
·ͱΊ • ୯७ʹཧରखָ͕ؒʹͳͬͨʂʂ • ؾܰʹΦʔϓϯͳElasticsearchΛѻ͍͍ͨͳΒ ͍͕ͭ͜Φεεϝ • VPCରԠͱElasticsearch 5.0ରԠ͕ͨΕ Δɾɾɾ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠
@ikuwow