SlideShare a Scribd company logo
1 of 77
Download to read offline
ログ基盤を
GCPで運⽤して
IQを下げたい話
古⾕ 遼
2
アジェンダ
•⾃⼰紹介
•ログ基盤の刷新の話
•新基盤の嬉しい話
•ちょっとだけ⾟い話
3
⾃⼰紹介
•古⾕ 遼(ふるたに りょう)
•Supership株式会社
•検索開発グループ
•Backend Team
•ペーペー
4
この発表の位置付け
Minami
Aoyama
Night Vol.1の
詳細版です
https://www.slideshare.net/secret/qOs2jFncsL2ig2
5
IQ 🤔???
•運⽤・活⽤難易度 = IQ
•運⽤・活⽤が難しい
(=IQ⾼い)システムはダメ
•運⽤・活⽤が簡単な
(=IQ低い)システムがいい
•IQ2まで下げような ← ⼤事
6
本題の前に
7
ごめんなさいその1
•スライド⾮公開らしいです
•⼤⼈の事情
•写真のweb公開も⼀応NGで
🙇 なんかアイコンが
ダメらしい
8
ごめんなさいその2
😂👆😂
9
ごめんなさいその2
•基盤の話です
•なぜ分析事例……
🙇
10
懺悔LTかな?
11
始めます
•ここから本題
•よろしくお願いします
🙇
12
サービス成⻑と
ログ分析基盤
13
絶賛成⻑中🙏🙏🙏🙏🙏
検索ソリューション
ASP 提供中
検索エンジン
サジェスト機能
スペラー機能
分析基盤提供https://www.s4p.jp/
14
ログ分析基盤⼤事
•サービスの⽅針決定
•ログの分析からスタート
•KPI
•アドホック集計
•etc…
15
ログ分析基盤⼤事
•サービスへフィードバック
•検索サービスの場合
•検索順位チューニング
•ホットワード抽出
•etc…
16
ログ分析基盤⼤事
•分析基盤は頑健であれ
•無停⽌運⽤
•応答速度維持
•コスト維持
•リカバリ容易
•etc…
17
元気に動くログ分析基盤たち
18
元気なのはええことや
😊
19
平和な⽇々に
忍び寄る影
20
メンテナンスや機能要件の数々
•「HDFSクラスタのディスク容量減ってるで」
•「Verticaの容量減ってるで」
•「ec2のeventでインスタンス再起動必要やで」
•「Redshiftのパフォーマンス悪いで」
•「サービス成⻑しまくってるからログの量が増えるで」
•「リアルタイムな分析の要件が増える(かもしれん)で」
•「分析DBが多すぎてどれ使えばええかわからんで」
•「Vertica死んだで」
•「Hive遅くて使いもんにならんで」
•「分析基盤もコストダウン必要やで」
21
thinking time
🤔
22
課題
•Hadoop
•性能⾯
•Hive集計遅い
•運⽤⾯
•ディスク容量との戦い
•on EC2
•(実際クラスタ死にかけた)
23
課題
•Vertica
•性能⾯
•わりといい感じ
•運⽤⾯
•容量制限あって横展開しづらい
•on EC2
•(実際後に死んだ🙏)
24
課題
•Redshift
•性能⾯
•💵💲💰がいる🤑💸💸💸
•テーブルチューニング⼤変
•運⽤⾯
•無停⽌運⽤できない
•クラスタメンテ中はクエリ打てない
25
⾦払って
運⽤頑張れ感
スケールも⾟い
26
💪😂🍤
🌟TSU 🌟RA 🌟I 🌟 😂😂😂😂😂😂😂😂😂
27
新基盤の予感
😎
よろしい
ならばPOCだ
28
新基盤を考える
29
できました
30
説明(ここからIQの低い話が続きます)
31
環境:EC2 → GCE
•環境をEC2からGCEに
•VM Live Migration
•リブートイベントなんてない
•利⽤時間による⾃動値引き
•リザーブドなんていらんかったんや
•スペック調整(=コスト調整)気軽
32
運⽤コスト低い
😆
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> IQ下がる! <
 ̄Y^Y^Y^Y^Y^Y ̄
33
説明(ここからIQの低い話が続きます)
34
分析DB:Redshift → BigQuery
•分析DBはBigQueryに
•⾼パフォーマンス
•チューニング不要
•運⽤フリー
•容量無制限
•無停⽌
•格安 ← ⼤事
35
ストレージ:HDFS → GCS
•永続ストレージはGCSに
•運⽤フリー
•容量無制限
•無停⽌
36
運⽤コスト低い
🤗
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> IQ下がる! <
 ̄Y^Y^Y^Y^Y^Y ̄
37
説明(ここからIQの低い話が続きます)
38
Log Queue:Elasticsearchの導⼊
•ElasticsearchをQueueに
•データ冗⻑化、寿命設定
•IDベースでのログの重複削除
•前段処理でのリトライしやすさ
•Indexベースの絞り込み
•後段処理のリトライ、分岐しやすさ
39
利⽤コスト低い
😇
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> IQ下がる! <
 ̄Y^Y^Y^Y^Y^Y ̄
40
結果
41
⾼IQログ基盤が
42
低IQ基盤になりました
43
運⽤開始
44
当初の懸念
🤔
45
当初の懸念
🤔
って
ログ件数が跳ねても
耐えるの???
46
現実
🙃
数K record/sとか
頻発しても
余裕で耐える
47
ログ基盤はエコシステムになりました
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> 圧倒的安定感 💪 <
 ̄Y^Y^Y^Y^Y^Y ̄
48
利⽤者の声
49
喜びの声
BigQueryになって
BIツールの
レスポンスが
爆速になった!
😀
50
喜びの声
移⾏後の環境で
システムトラブル
⼀度も起きてない!😀
51
喜びの声
BigQueryと
SpreadSheetの
連携超捗る!😀
52
喜びの声
ログ分析基盤の
運⽤費⽤が
⼤幅削減!😀
53
IQ下がるといいことしかないな
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> 圧倒的勝利 💪 <
 ̄Y^Y^Y^Y^Y^Y ̄
54
IQはきっと⼀桁まで減っただろう
😇👍
55
現状
分析基盤刷新で
IQ80くらいまで
下がりました!😀
56
思ったよりIQ下がってない?
🤔
IQ80は
⾼くない?
57
⾟さはなくはない
58
案外曲者
59
ケース1
GAEでインシデントが発⽣しました。
5XX系のエラーレートが⾼まっています。
🤔わたし
なるほど。
でも今はGAEを使ってないから問題ないよね。
GCP
Loadタスク失敗したで。
特にアナウンスはしないけど5XX系エラー増えるで。
BQ
60
GAEの⾵邪がBQにうつったとでも⾔うのだろうか
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> 圧倒的波及 <
 ̄Y^Y^Y^Y^Y^Y ̄
61
対策
•しばらく待って再実⾏
•⼤抵、安定するのは数時間後😢
•インシデント復旧から15分は不安定
•焦らず待つ(でも焦らされる😢)
•アラート⾶びまくり
62
ケース2
どんなクエリでも投げておいでや。
秒で返事するで。
🤔わたし
ログからサービスのスコアデータを作ろう。
ちょっと⼤きめのクエリを投げるぞ。
すまんな……
今腹痛いから返事せえへんで……
BQ
BQ
63
せめて500エラー返して
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> 圧倒的無⾔ <
 ̄Y^Y^Y^Y^Y^Y ̄
64
対策
•⼤抵即再実⾏でOK
•タイムアウト + 再実⾏を仕込む
•Quotaや課⾦に注意…😢
65
要するに
_⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> 気まぐれさん <
 ̄Y^Y^Y^Y^Y^Y ̄
66
ちょっと⾟い
•サービスに直結は⾟い
•BQこけても⼤丈夫に作る必要性
😂
67
ちなみに
_⼈⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> GCSも気まぐれさん <
 ̄Y^Y^Y^Y^Y^Y^Y ̄
68
Why Google Cloud Platform???!!!!
•マネージドサービス弱い?
•AWSはここまでエラーない印象
😂
69
とはいえ
70
それでも楽なのは間違いない
•タイムアウト + 再実⾏
•単純な⽅法で回避可能
•再実⾏だらけにはなるが……
•Queueのクッション性で耐える
•基盤⾃体は安定
•特にGCEの安定感すごい
71
要するに
•ログ基盤の要件
(⼤体)満たせました
👍👍👍
72
まとめ
73
運⽤楽になりました
_⼈⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> GCPでIQ下がった! <
 ̄Y^Y^Y^Y^Y^Y^Y ̄
😇
74
でも本当は
😇
_⼈⼈⼈⼈⼈⼈⼈⼈⼈⼈_
> IQもっと下げたい! <
 ̄Y^Y^Y^Y^Y^Y^Y ̄
75
おわりです
•ご清聴ありがとうございます
•IQ下げる⽅法募集中です
🙇
76
宣伝枠
77
宣伝枠
検索ソリューション
ASP 提供中
検索エンジン
サジェスト機能
スペラー機能
分析基盤提供https://www.s4p.jp/

More Related Content

Recently uploaded

SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものですiPride Co., Ltd.
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdftaisei2219
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNetToru Tamaki
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Danieldanielhu54
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A surveyToru Tamaki
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...Toru Tamaki
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Yuma Ohgami
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略Ryo Sasaki
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムsugiuralab
 

Recently uploaded (9)

SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

ログ基盤をGDPで運用してIQを下げたい話(Supership 古谷遼)