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
SLOのある生活を始めよう
Search
株式会社ビットキー / Bitkey Inc.
PRO
October 08, 2021
Technology
1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SLOのある生活を始めよう
株式会社ビットキー / Bitkey Inc.
PRO
October 08, 2021
More Decks by 株式会社ビットキー / Bitkey Inc.
See All by 株式会社ビットキー / Bitkey Inc.
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
190
Flutter × BLE Centralを自前Pluginで実装する設計パターン - MethodChannel / EventChannelで作る双方向ブリッジの実践 / Building Custom Flutter BLE Central Plugins: Bidirectional Bridging with Method & Event Channels
bitkey
PRO
0
470
Swift&Xcodeのバージョンアップにまつわる怖かった思い出 / Scary Memories of Swift and Xcode Updates
bitkey
PRO
0
240
iOS/Androidの二刀流エンジニアがFlutter & TypeScriptへ越境後の現在地 - Flutterがメインになって見えた景色と現在の醍醐味 / Dual-Platform Mobile Engineer Shifts to Flutter & TypeScript - The View and Real Thrill of Going Flutter-First
bitkey
PRO
0
660
個人開発で育てる「大規模設計の苗床」 - AI時代の1人開発から始める業務への知識接続 / The Seedbed for Large-Scale Design - From AI-Era Solo Projects to Professional Knowledge
bitkey
PRO
1
590
失敗を経て、Harness Engineering で 大切にしたいことを考える / Learning from Failure: What Matters in Harness Engineering
bitkey
PRO
1
650
AI Adaptable なテストを整える工夫 / Ways to Make Your Tests AI-Adaptable
bitkey
PRO
3
400
人が担う「価値」とは?これからの「QA」とは / Human Value and the Future of Quality Assurance
bitkey
PRO
0
370
キャリア25年目にしてTypeScript に出会うまで - 「型」を通じて振り返るプログラミング言語遍歴 / Meeting TypeScript After 25 Years in Tech - Looking Back at My Programming Language Journey Through "Types"
bitkey
PRO
2
580
Other Decks in Technology
See All in Technology
継続的なAIコスト最適化
bgpat
1
340
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
110
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
200
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.4k
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
パッチ更新でterraform initが落ちた日
grimoh
1
140
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
420
Featured
See All Featured
30 Presentation Tips
portentint
PRO
1
430
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Making the Leap to Tech Lead
cromwellryan
135
10k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Bash Introduction
62gerente
615
220k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Become a Pro
speakerdeck
PRO
31
6.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
From π to Pie charts
rasagy
1
400
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
So, you think you're a good person
axbom
PRO
2
2.2k
Transcript
- ݈શͳαʔϏεΛࢦͯ͠ - SLOͷ͋Δੜ׆Λ࢝ΊΑ͏
·ͩ SLO Λಋೖ͍ͯ͠ͳ͍ਓ͚ͷϙΠϯτ • SLO͕Կʹʹཱͭͷ͔ɺͲ͏ͬͯ SLO ͷ͋Δੜ׆Λ࢝ΊΕྑ͍͔ ◦ ۩ମతʹγϯϓϧʹ SLO
Λಋೖ͢Δํ๏Λհ ͢Ͱʹ SLO Λಋೖ͍ͯ͠Δਓ͚ͷϙΠϯτ • ࠷ޙͷํʹཧ͢ΔSLO ͷӡ༻Ͱಘͨݟͱࠓޙͷల ◦ 1ؒͷӡ༻Ͱʮ͜͏ͨ͠ํ͕ྑ͔ͬͨʯ͜ͱͳͲΛڞ༗ 2 0. ൃදͷϙΠϯτ
Outline 1. ࣗݾհ/bitkey platform ͷհ 2. platform ͱͯ͠ٻΊΒΕͨ͜ͱ 3. SLO
ΛܾΊΑ͏ʂ 4. SLO Λӡ༻͠Α͏ʂ 5. ·ͱΊ + α 3 3
ϏοτΩʔೖࣾ ࠷ॳͷϦϦʔεͱ΄΅ಉ࣌ظʹೖࣾ “ΧΪ” ͷϓϥοτϑΥʔϜ: bitkey platform ͷ։ൃΛ ୲( “Bitkey ϩάΠϯ”
ػೳͷ։ൃͳͲ ) ERPϕϯμೖࣾ ERPͷձܭϞδϡʔϧ։ൃʹଐ ػೳͷఏҊɾઃܭɾ࣮Λ୲ ϞδϡʔϧશମͷCIͷཧΛ୲ ߴڮ యੜ Takahashi Noriki 2016 2017 2019 FinTech ܥελʔτΞοϓͰΠϯλʔϯγοϓ ӈࠨΘ͔Βͳ͍ͳ͕Βɺe-Tax ͷϝοηʔδ֬ ೝػೳͳͲΛ࣮ ΤϯδχΞͱͯ͠ͷ࠷ॳͷҰา 2021 bitkey platform ͷ։ൃ/อकɾӡ༻ ࠷ॳͷϦϦʔε͔Β2ͨͬͨ bitkey platform Λ ΑΓ݈શͳαʔϏε։ൃΛܧଓͰ͖ΔΑ͏ʹฃಆத
1. ෯͘ར༻͞ΕΔplatform: bitkey platform 5 • homehub: ࣗͷΧΪ ◦ ྫ:
bitkey platform Λར༻ͯ͠Ոͷ൶ͷσδλϧΩʔΛੜ • workhub: ΦϑΟεͷΧΪ ◦ ྫ: bitkey platform Λར༻ͯ͠ΦϑΟεೖؗ༻ͷNFCΧʔυೝূͷͨΊͷใΛੜ • exphub: ΠϕϯτͷΧΪ ◦ ྫ: bitkey platform Λར༻ͯ͠ϥΠϒ༻ͷإೝূͷͨΊͷใΛੜ → ෯͘ར༻͞ΕΔ bitkey platform
platform ͱͯ͠ٻΊΒΕͨͷ 6 6
෯͘ΘΕΔ platform ʹٻΊΒΕͨͷ 7 7 2. platform ͱͯ͠ٻΊΒΕͨͷ
൚༻తͳػೳ܈ 8 8 2. platform ͱͯ͠ٻΊΒΕͨͷ
൚༻తͳػೳ܈ ͚ͩ͡Όͳ͍ 9 9 2. platform ͱͯ͠ٻΊΒΕͨͷ
൚༻తͳػೳ܈ ͚ͩ͡Όͳ͍ + ػೳͷܧଓతͳఏڙ(Մ༻ੑ) 10 10 2. platform ͱͯ͠ٻΊΒΕͨͷ
ͭ·Γ 11 11 2. platform ͱͯ͠ٻΊΒΕͨͷ
γεςϜ(platform)ͷ߹ “Մ༻ੑ͕͚Εੜ͖͍͚ͯͳ͍ɻ ػೳ͕ͳ͚Εੜ͖͍ͯ͘ࢿ͕֨ͳ͍ɻ” 12 12 2. platform ͱͯ͠ٻΊΒΕͨͷ
ਓؒ(୳ఁ)ͷ߹ “ڧ͘ͳ͚Εੜ͖͍͚ͯͳ͍ɻ ༏͘͠ͳ͚Εੜ͖͍ͯ͘ࢿ͕֨ͳ͍ɻ” 13 13 2. platform ͱͯ͠ٻΊΒΕͨͷ
ਓؒ(୳ఁ)ͷ߹ “ڧ͘ͳ͚Εੜ͖͍͚ͯͳ͍ɻ ༏͘͠ͳ͚Εੜ͖͍ͯ͘ࢿ͕֨ͳ͍ɻ” 14 14 2. platform ͱͯ͠ٻΊΒΕͨͷ by ϑΟϦοϓɾϚʔϩ
ཁ͢Δʹ 15 15 2. platform ͱͯ͠ٻΊΒΕͨͷ
Մ༻ੑͷͨΊͷอक։ൃ ػೳॆ࣮ͷͨΊͷػೳ։ൃ 16 16 2. platform ͱͯ͠ٻΊΒΕͨͷ
Մ༻ੑͷͨΊͷอक։ൃ ػೳॆ࣮ͷͨΊͷػೳ։ൃ ྆ํͱେࣄ 17 17 2. platform ͱͯ͠ٻΊΒΕͨͷ
͔͠͠ ྆ऀʹτϨʔυΦϑͷ͕ؔ͋Δ 18 18 2. platform ͱͯ͠ٻΊΒΕͨͷ
19 2. platform ͱͯ͠ٻΊΒΕͨͷ ػೳ։ൃ อक ։ൃ
ᶃ อक։ൃ͢Δ͕࣌ؒͳ͘ͳΔ ᶄ อकର૿Ճ & γεςϜͷෆ҆ఆԽ → อक։ൃͷඞཁੑͷ૿Ճ 20 2.
platform ͱͯ͠ٻΊΒΕͨͷ ػೳ։ൃ อक ։ൃ
ᶃ อक։ൃ͢Δ͕࣌ؒͳ͘ͳΔ ᶄ อकର૿Ճ & γεςϜͷෆ҆ఆԽ → อक։ൃͷඞཁੑͷ૿Ճ 21 2.
platform ͱͯ͠ٻΊΒΕͨͷ ػೳ։ൃ อक ։ൃ
όϥϯε͕औΓʹ͍͘ 22 22 2. platform ͱͯ͠ٻΊΒΕͨͷ
όϥϯε͕औΕͳ͘ͳΔͱ... 23 23 2. platform ͱͯ͠ٻΊΒΕͨͷ
24 2. platform ͱͯ͠ٻΊΒΕͨͷ ػೳ։ൃ อक ։ൃ
25 2. platform ͱͯ͠ٻΊΒΕͨͷ ػೳ։ൃ อक ։ൃ • ΠϯγσϯτൃੜϦεΫ্͕ •
Πϯγσϯτͷஹީ͕͔ͭΊͳ͍ • ΠϯγσϯτͷஹީΛ௫Μͩͱͯ͠ɺػೳ։ൃ͕༏ઌ͞Εͯ͠·͏
26 2. platform ͱͯ͠ٻΊΒΕͨͷ ػೳ։ൃ อक ։ൃ • ΠϯγσϯτൃੜϦεΫ্͕ •
Πϯγσϯτͷஹީ͕͔ͭΊͳ͍ • ΠϯγσϯτͷஹީΛ௫Μͩͱͯ͠ɺػೳ։ൃ͕༏ઌ͞Εͯ͠·͏ → “ੜ͖͍͚ͯͳ͍”
27 2. platform ͱͯ͠ٻΊΒΕͨͷ อक։ൃ ػೳ ։ൃ
28 2. platform ͱͯ͠ٻΊΒΕͨͷ อक։ൃ ػೳ ։ൃ • ػೳ͕ग़ͯ͜ͳ͍
29 2. platform ͱͯ͠ٻΊΒΕͨͷ อक։ൃ ػೳ ։ൃ • ػೳ͕ग़ͯ͜ͳ͍ →
“ੜ͖͍ͯ͘ࢿ͕֨ͳ͍”
྆ऀͷόϥϯεΛऔΔͨΊͷ”πʔϧ” 30 30 2. platform ͱͯ͠ٻΊΒΕͨͷ
྆ऀͷόϥϯεΛऔΔͨΊͷ“πʔϧ” SLO 31 31 2. platform ͱͯ͠ٻΊΒΕͨͷ
SLO ͱ 32 32 2. platform ͱͯ͠ٻΊΒΕͨͷ
SLO(αʔϏεϨϕϧඪ) ͱ • γεςϜͷ݈શੑͷඪج४ ◦ ݈શੑͷࢦඪͷྫ ▪ Քಇ(≒ Մ༻ੑ) ▪
ύϑΥʔϚϯε ▪ … ◦ ͜ͷൃදͰγϯϓϧʹ͢ΔͨΊʹɺओʹՄ༻ੑʹϑΥʔΧε ◦ ਓؒͰ͍͏ͱʮԿΛපؾͱఆ͢Δ͔ʯͷج४ͷΑ͏ͳͷ 33 2. platform ͱͯ͠ٻΊΒΕͨͷ
SLO(αʔϏεϨϕϧඪ) ͱ • γεςϜͷ݈શੑͷඪج४ ◦ ݈શੑͷࢦඪͷྫ ▪ Քಇ(≒ Մ༻ੑ) ▪
ύϑΥʔϚϯε ▪ … ◦ ͜ͷൃදͰγϯϓϧʹ͢ΔͨΊʹɺओʹՄ༻ੑʹϑΥʔΧε ◦ ਓؒͰ͍͏ͱʮԿΛපؾͱఆ͢Δ͔ʯͷج४ͷΑ͏ͳͷ 34 2. platform ͱͯ͠ٻΊΒΕͨͷ
SLO ͷظ͞ΕΔޮՌʁ 35 35 2. platform ͱͯ͠ٻΊΒΕͨͷ
ᶃ ϢʔβʔʹఏڙͰ͖Δ݈શੑͷظ Λࣔ͢͜ͱ͕Ͱ͖Δɻ 36 36 2. platform ͱͯ͠ٻΊΒΕͨͷ
ᶄ ػೳ։ൃͱอक։ൃͷόϥϯεͷج४Λ νʔϜ֎ͱೝࣝΛ߹ΘͤΔ ͜ͱ͕Ͱ͖Δɻ 37 37 2. platform ͱͯ͠ٻΊΒΕͨͷ
SLO ͱ͍͏ “πʔϧ” Λ Ͳ͏͍ͬͯ͜ͳ͢ͷʁ 38 38 2. platform ͱͯ͠ٻΊΒΕͨͷ
ᶃ ·ͣ SLO(ඪ) ΛܾΊͯ ᶄ ϧʔϧʹଇͬͯӡ༻͢Δ 39 39 2. platform
ͱͯ͠ٻΊΒΕͨͷ
·ܾͣΊΔͱ͜Ζ͔Β 40 40 2. platform ͱͯ͠ٻΊΒΕͨͷ
SLO ΛܾΊΑ͏ʂ 41 41
ʮΑ͠ɺ͡Ό͋৭ʑௐܾͯΊΔͧʯ 42 42 3. SLO ΛܾΊΑ͏ʂ
ʮϏδωε্ͷΠϯύΫτͱରԠ͍ͯ͠ͳ͚ΕͳΒͳ͍...ʯ ʮSLO Մ༻ੑ͚ͩ͡Όͳ͘...ʯ ʮError Budget ௨ৗͷ༧ࢉͱߟ͍͚͑ͯͳ͍ͷͰ͋ͬͯ...ʯ ʮ·ͣɺSLI ͕͋ͬͯɺͦͯ͠ɺSLA ͱ SLO
ҧ͍ͬͯͯ...ʯ ʮxxx ͳͷ SLO ͱ͍͑ͳ͍ʯ ʮ৺తSLO ͱ͍͏ߟ͑ํ͋Γ...ʯ 43 43 3. SLO ΛܾΊΑ͏ʂ
ʮΉɺ͍͠...ʯ 44 44 3. SLO ΛܾΊΑ͏ʂ
ʮSLO࡞Δࣗ৴͕ͳ͘ͳ͖ͬͯͨ...ʯ 45 45 3. SLO ΛܾΊΑ͏ʂ
ʮ͏ͪͷνʔϜʹɺ·ͩྑ͍͔ͳʯ 46 46 3. SLO ΛܾΊΑ͏ʂ
ཱͪࢭ·Δͷ·ͩૣ͍ 47 47 3. SLO ΛܾΊΑ͏ʂ
ࠔͬͨͱ͖ͷ࠷ॳͷҰา 48 48 3. SLO ΛܾΊΑ͏ʂ
ࠔͬͨͱ͖ͷ࠷ॳͷҰา → Մ༻ੑͷSLOΛ·ͣઃఆ͢Δ 49 49 3. SLO ΛܾΊΑ͏ʂ
SLO ΛܾΊΔͨΊͷཁૉ ᶃ ࢦඪ ᶄ ج४ ᶅ ظؒ 50 50
3. SLO ΛܾΊΑ͏ʂ
ᶃ ࢦඪ 51 51 3. SLO ΛܾΊΑ͏ʂ
Մ༻ੑ 52 52 3. SLO ΛܾΊΑ͏ʂ
Մ༻ੑͬͯͲ͏ͬͯఆٛ͢Ε... 53 53 3. SLO ΛܾΊΑ͏ʂ
Մ༻ੑͬͯͲ͏ͬͯఆٛ͢Ε... 54 54 3. SLO ΛܾΊΑ͏ʂ
Web ͳΒ͜ΕͰOK 2xx Ϩεϙϯε / (2xx + 5xx)Ϩεϙϯε 55 55
3. SLO ΛܾΊΑ͏ʂ
ᶄ ج४ 56 56 3. SLO ΛܾΊΑ͏ʂ
99.99%? 99.9% Ͱेʁ Ϗδωε্ͷΠϯύΫτͲ͏ͩΖ͏... 57 57 3. SLO ΛܾΊΑ͏ʂ
99.99%? 99.9% Ͱेʁ Ϗδωε্ͷΠϯύΫτͲ͏ͩΖ͏... 58 58 3. SLO ΛܾΊΑ͏ʂ
໎͏ͳΒ 99% ͰܾΊଧͪͰOKʂ 59 59 3. SLO ΛܾΊΑ͏ʂ
ᶅ ظؒ 60 60 3. SLO ΛܾΊΑ͏ʂ
࢛ظͰ͍͜͏ʂ 61 61 3. SLO ΛܾΊΑ͏ʂ
SLO ΛܾΊΔͨΊͷཁૉ ᶃ ࢦඪ: Մ༻ੑ(= 2xx ͷׂ߹) ᶄ ج४: 99%
ᶅ ظؒ: ࢛ظ 62 62 3. SLO ΛܾΊΑ͏ʂ
SLO ͕ܾ·ͬͨʂ 63 63 3. SLO ΛܾΊΑ͏ʂ
SLO ͕ܾ·ͬͨʂ 64 64 3. SLO ΛܾΊΑ͏ʂ
SLO ͷࢦඪ ࢉग़Ͱ͖ΔΑ͏ʹ͓ͯ͜͠͏ 65 65 3. SLO ΛܾΊΑ͏ʂ
Մ༻ੑͷࢦඪͷࢉग़ํ๏ 66 66 3. SLO ΛܾΊΑ͏ʂ
Մ༻ੑͷࢦඪͷࢉग़ํ๏ ᶃ ϨεϙϯεͷϩάΛు͖ग़͢Α͏ʹΞϓϦέʔγϣϯʹઃఆ • HTTP ͷεςʔλείʔυ͕Θ͔ΔΑ͏ʹ͓͚ͯ͠े ᶄ ϩάΛूܭͯ͠ɺՄ༻ੑ Λܭࢉ •
ूܭύλʔϯ ◦ [ຖ] ۙ7ؒΛूܭ → ࠷ۙͷ݈શੑ͕Θ͔Δ ◦ [࢛ظ͝ͱ] ࢛ظશମΛूܭ → SLO ͷ“݁Ռ”͕Θ͔Δ 67 3. SLO ΛܾΊΑ͏ʂ
Մ༻ੑͷࢦඪͷࢉग़ํ๏(GCPͷҰྫ) ᶃ ϨεϙϯεͷϩάΛు͖ग़͢Α͏ʹΞϓϦέʔγϣϯʹઃఆ • Cloud Load Balancing ར༻ͳΒɺCloud Logging Ͱඪ४Ͱग़͍ͯΔͷͰՃͷઃఆෆཁ
ᶄ ϩάΛूܭͯ͠ɺՄ༻ੑ Λܭࢉ • Cloud Logging → Cloud Monitoring ͷ࿈ܞͰ࣮ݱՄೳ 68 3. SLO ΛܾΊΑ͏ʂ Monitoring Cloud Load Balancing Logging
Մ༻ੑͷࢦඪͷࢉग़ํ๏(GCPͷҰྫ) ᶄ ϩάΛूܭͯ͠ɺՄ༻ੑ Λܭࢉ • [ҙ] ίϯιʔϧը໘Ͱઃఆͮ͠Β͍ • ࢀߟࢿྉʹ͋ΔΑ͏ʹCLI͔ΒΔͷָ͕ 69
3. SLO ΛܾΊΑ͏ʂ ࢀߟ1: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/lb-metrics ࢀߟ2: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/using-api#slo-create
ೝূɾ४උ 70 3. SLO ΛܾΊΑ͏ʂ ࢀߟ1: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/lb-metrics ࢀߟ2: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/using-api#slo-create
αʔϏεͷ࡞ 71 3. SLO ΛܾΊΑ͏ʂ ࢀߟ1: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/lb-metrics ࢀߟ2: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/using-api#slo-create
SLOͷ࡞ 72 3. SLO ΛܾΊΑ͏ʂ ࢀߟ1: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/lb-metrics ࢀߟ2: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/using-api#slo-create
SLOͷ࡞: Մ༻ੑͷࢦඪ(serviceLevelIndicator)ͷࢦఆ 73 3. SLO ΛܾΊΑ͏ʂ ࢀߟ1: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/lb-metrics ࢀߟ2: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/using-api#slo-create
SLOͷ࡞: Մ༻ੑͷࢦඪ(serviceLevelIndicator)ͷࢦఆ 74 3. SLO ΛܾΊΑ͏ʂ ࢀߟ1: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/lb-metrics ࢀߟ2: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/using-api#slo-create
SLOͷ࡞: Մ༻ੑͷࢦඪ(serviceLevelIndicator)ͷࢦఆ 75 3. SLO ΛܾΊΑ͏ʂ ࢀߟ1: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/lb-metrics ࢀߟ2: https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/using-api#slo-create
ରͷϩʔυόϥϯγϯάͷ໊শ `gcloud compute url-maps list`
Մ༻ੑͷࢦඪͷࢉग़ํ๏(GCPͷҰྫ) ᶄ ϩάΛूܭͯ͠ɺՄ༻ੑ Λܭࢉ • Cloud Logging → Cloud Monitoring
ͷ࿈ܞͰ࣮ݱՄೳ • Cloud Monitoring > αʔϏε 76 3. SLO ΛܾΊΑ͏ʂ
Մ༻ੑͷࢦඪͷࢉग़ํ๏(GCPͷҰྫ) ᶄ ϩάΛूܭͯ͠ɺՄ༻ੑ Λܭࢉ • Cloud Logging → Cloud Monitoring
ͷ࿈ܞͰ࣮ݱՄೳ • Cloud Monitoring > αʔϏε 77 3. SLO ΛܾΊΑ͏ʂ
ʮΉΉɺ·ͨԿ͔େมͦ͏ͩͳʯ 78 78 3. SLO ΛܾΊΑ͏ʂ
ʮΉΉɺ·ͨԿ͔େมͦ͏ͩͳʯ 79 79 3. SLO ΛܾΊΑ͏ʂ
ίϚϯυ࡞͓͖ͬͯ·ͨ͠ 80 80 3. SLO ΛܾΊΑ͏ʂ
https://github.com/nrnrk/gcp-slo-create 81 81 3. SLO ΛܾΊΑ͏ʂ
ͳʹͱ͋Ε 82 82 3. SLO ΛܾΊΑ͏ʂ
SLO ͷࢦඪͷ࣮͕औΕͨʂ 83 83 3. SLO ΛܾΊΑ͏ʂ
SLO ͷࢦඪͷ࣮͕औΕͨʂ 84 84 3. SLO ΛܾΊΑ͏ʂ
࣍ɺSLO ͱ࣮Ͱӡ༻͠Α͏ʂ 85 85 3. SLO ΛܾΊΑ͏ʂ
SLO Λӡ༻͠Α͏ʂ 86 86
ᶃ SLO ʹج͍ͮͨߦಈ • ఆΊͨSLOʹج͍ͮͯߦಈ͢Δ ◦ SLO ʹҧ͍ͯ͠ͳ͍͜ͱΛ֬ೝ͢Δ ◦ SLO
ʹҧͨ͠߹ʹΞΫγϣϯΛऔΔ • ຖ ᶄ SLO ࣗମͷৼΓฦΓ& ߋ৽ • ఆΊͨSLOࣗମΛৼΓฦΓɺߋ৽͢Δ ◦ SLO ߴ͗͢ͳ͍͔͗͢ͳ͍͔ ◦ SLO ͕࣮ࡍͷϢʔβʔͷظͱ߹͍ͬͯΔ͔ • ࢛ظʹ1ճ 4. SLO Λӡ༻͠Α͏ʂ 87
ᶃ SLO ʹج͍ͮͨߦಈ ຖΔ͜ͱ • SLO ʹҧ͍ͯ͠ͳ͍͔ΛνΣοΫ • νʔϜͷσΠϦʔMTGͰͷ࣮ࢪ͕͓͢͢Ί ۓٸ࣌ͷ४උ
• SLO ʹҧ͍ͯͨ͠Βɺػೳ։ൃͳͲΛͱΊͯҧͷղফΛ࠷༏ઌʹ͢Δ • νʔϜͷଋࣄʹ͓ͯ͘͠ 4. SLO Λӡ༻͠Α͏ʂ 88
ᶄ SLO ࣗମͷৼΓฦΓ& ߋ৽ • SLO ࣗମͱӡ༻ํ๏ΛৼΓฦΔ ◦ ࢛ظʹ1ճ ◦
ϙΠϯτ ▪ ظؒதSLO ୡͰ͖͔ͨʁ ▪ SLO ߴ͗͢ͳ͍͔ʁ͗͢ͳ͍͔ʁ ▪ SLO ͷӡ༻͕Ϣʔβʔͷຬͱਖ਼͘͠ରԠ͍ͯ͠Δ͔ʁ ▪ ࢦඪద͔ʁ • ৼΓฦΓΛجʹ࣍ͷSLOΛઃఆ ◦ ඪΛ্͛ΔɾԼ͛Δ / ࢦඪΛՃɾআͳͲ ʮͱΓ͋͑ͣɺՄ༻ੑΛʯͱ࢝Ίͨஈ֊͔ΒঃʑʹϨϕϧΞοϓ͍ͯ͘͜͠ͱ͕Ͱ͖Δ 4. SLO Λӡ༻͠Α͏ʂ 89
1ؒͷӡ༻ͯ͠ಘͨݟ • ϦΫΤετ͕গͳ͍ঢ়ଶͰɺՄ༻ੑͷSLOͷج४Λ্͍͚͛͗ͯ͢ͳ͍ʂ ◦ ۃʹ͍͏ͱɺ1ݸΤϥʔ͕ى͖ͨΒ SLO ҧʹͳͬͯ͠·͏ ◦ ϦΫΤετ͕গͳ͍ঢ়ଶͰɺ99.9% →
99.99% Ͱରͯ͠ຬ্͕Βͳ͍ • ಛʹࢦඪͷΛԼ͛Δ͜ͱ͕Θ͔͍ͬͯΔಛఆͷΤϯυϙΠϯτࠞͥͳ͍ʂ ◦ ಛఆͷΤϯυϙΠϯτ͕ୟ͔ΕΔසͱSLOҧ͕తʹඥͮ͘ → ੍ޚͰ͖ͳ͍ • 4xx ΤϥʔՄ༻ੑͷࢦඪʹೖΕͳ͍ʂ ◦ 4xx Τϥʔฦ͍͢͠ͷͰɺ࣮ଶΑΓࢦඪ͕ߴ͘ग़Δ • rate limit (ΞΫηεͷྲྀྔ੍ݶ) Ͱ SLO ΑΓ੍ޚ͘͢͠ͳΔʂ ◦ ࣾαʔϏε͔ΒͷΞΫηεํ๏ʹΑͬͯɺࢦඪ͕ӨڹΛड͚͍͢ঢ়ଶΛආ͚Δ 4. SLO Λӡ༻͠Α͏ʂ 90
࣍ͷεςοϓ • PMF(Product Market Fit) ͷਪਐ ◦ bitkey platform →
ࣾผαʔϏε → ΤϯυϢʔβʔ ͱ͍͏ܗʹͳΔͷͰɺΤϯυϢʔβʔͷ ຬͱ bitkey platform ͰऔΕΔࢦඪ(Մ༻ੑɾϨΠςϯγͳͲ)ΛରԠ͚͕͍͠ ◦ Մ༻ੑɾϨΠςϯγʹՃ͑ͯɺඞཁʹԠͯ͡ࢦඪͷՃɾվྑΛ࣮ࢪ༧ఆ 4. SLO Λӡ༻͠Α͏ʂ 91
·ͱΊ + α 92 92
SLO ͷޮ༻ • ػೳ։ൃɾอक։ൃ(ӡ༻)ͷόϥϯεΛνʔϜ֎ͱೝࣝΛ߹ΘͤΒΕΔ • ӡ༻Λϧʔϧʹ͢Δ͜ͱͰɺଐਓԽΛ͗ɺνʔϜͱ݈ͯ͠શͳαʔϏε։ൃ͕Ͱ͖Δ SLO ͷ͋Δੜ׆ • ·ͣઃఆ͢Δ͜ͱ͔ΒΔͱ͡Ί͍͢
◦ ໎ͬͨΒԿߟ͑ͣՄ༻ੑ99%͔Β࢝ΊΕྑ͍ ͓·͚ • SLOಋೖޙʹ᷿ͷهࣄΛݺΜͰৼΓฦΓʹ׆͔͢͜ͱͰਐԽͤ͞Δ͜ͱ͕Ͱ͖Δ • ൃදऀQiita ʹ SLO ҧࣗମΛҰఆͷ༏ઌॱҐΛकΓͭͭɺݮΒ͢ࢪࡦʹ͍ͭͯॻ͖·ͨ͠ ◦ https://qiita.com/nrnrk/items/2711d5669d7674d6cc1a 5. ·ͱΊ + α 93
94