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

SLI・SLOを「データ」として活用する

 SLI・SLOを「データ」として活用する

More Decks by 株式会社ビットキー / Bitkey Inc.

Other Decks in Technology

Transcript

  1. Copyright © 2023 Bitkey Inc. All right reserved. 2 Outline

    1. ࣗݾ঺հ 2. αʔϏε঺հ 3. ͸͡Ίʹ 4. SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ 5. SLI/SLOͷσʔλ׆༻ ~ ϙΠϯτ 6. ·ͱΊ
  2. Copyright © 2023 Bitkey Inc. All right reserved. 4 1.

    ࣗݾ঺հ ࡾՏ಺ ୓໵ Takuya Mikouchi 2017 2020 ឯ༨ۂંΛܦͯσʔλίϯαϧاۀͰσʔλΞφϦε τͱͯ͠ͷΩϟϦΞΛελʔτɻ༷ʑͳۀքͷσʔλ ׆༻ϓϩδΣΫτʹैࣄ ϏοτΩʔʹδϣΠϯ σʔλΤϯδχΞɾσʔλΞφϦετͱͯ͠ɺσʔλ ෼ੳج൫ͷߏங͔Βσʔλ׆༻·ͰҰ؏ͯ͠୲౰ ࠷ॳͷϛογϣϯ͸ʮϓϩμΫτ඼࣭ͷఆྔԽʯ ॳΊͯʮSLIɾSLOʯͷੈքʹ৮ΕΔ 2023 SREνʔϜʹ݉຿ ʮSLIɾSLOʯͷӡ༻ΛSREͷϝϯόͱڞʹਪਐ
  3. Copyright © 2023 Bitkey Inc. All right reserved. 8 2.

    αʔϏε঺հ SREͰ͸ɺ ΞϓϦʹΑΔεϚʔτϩοΫ ͷղࢪৣΛ ίΞମݧͱఆΊ͍ͯΔ homehub͸ʮ฻Β͠ʯʹؔΘΔ༷ʑͳମݧΛ࣮ݱ͢Δ
  4. Copyright © 2023 Bitkey Inc. All right reserved. 9 workhub͸ʮಇۭؒ͘ʯͱʮಇ͘ͻͱ΍ۀ຿ʯΛͭͳ͗ɺշదͳ࢓ࣄΛ࣮ݱ͢Δ

    2. αʔϏε঺հ SREͰ͸ɺ ಇ͘৔ॴͷ༧໿΍ɺ༷ʑͳೝ ূํ๏ʹΑΔೖୀࣨΛίΞମ ݧͱఆΊ͍ͯΔ
  5. Copyright © 2023 Bitkey Inc. All right reserved. 11 3.

    ͸͡Ίʹ l4-0͸୯ͳΔσʔλͰ͋Δz ΦϥΠϦʔɾδϟύϯʮ4-0αʔϏεϨϕϧ໨ඪʯͷ1ΑΓࢀর ʢಥવͰ͕͢ʣSLOຊʹ͜Μͳݟग़͠ͷষ͕͋Γ·͢
  6. Copyright © 2023 Bitkey Inc. All right reserved. 12 3.

    ͸͡Ίʹ SLO(SLIؚΉ)͸αʔϏεͷ৴པੑʢ㲈඼࣭ɺຬ଍౓ʣΛ ҡ࣋ɾ޲্͢ΔͨΊͷɺٞ࿦΍ҙࢥܾఆΛੜΈͩ͢”σʔλ”Ͱ͋Δ ͜ͷষͷ಺༰ΛSREతͳ؍఺Ͱղऍͯ͠ΈΔͱ ͦͯ͠࠷ॳ͔Β׬ᘳͳঢ়ଶΛ໨ࢦ͢ͷͰ͸ͳ͘ɺ νϡʔχϯάͯ͠”σʔλ”Λ࡞੒ɾ׆༻͍͖ͯ͠·͠ΐ͏ SLIͷఆٛͷௐ੔ɺܭଌͷௐ੔ɺSLOͷௐ੔ɺόʔϯϨʔτΞϥʔτͷௐ੔etc
  7. Copyright © 2023 Bitkey Inc. All right reserved. 13 3.

    ͸͡Ίʹ SLO(+SLI)͸σʔλͳΜ͔ͩΒɺ Ϗδωεจ຺ͱ͔΋ͬͱ৭ʑͳ͜ͱʹ׆༻ͨ͠Β͍͍͡ΌΜʂʂʂ ʢগ͠झ޲Λม͑ͯʣʮSLO͸୯ͳΔσʔλͰ͋Δʯͱ͍͏จݴͷΈΛɺσʔλΤϯδχΞతͳ؍఺Ͱղऍͯ͠ΈΔͱ
  8. Copyright © 2023 Bitkey Inc. All right reserved. 14 3.

    ͸͡Ίʹ SLO(+SLI)͸σʔλͳΜ͔ͩΒɺ Ϗδωεจ຺ͱ͔΋ͬͱ৭ʑͳ͜ͱʹ׆༻ͨ͠Β͍͍͡ΌΜʂʂʂ ͱ͍͏Θ͚Ͱ࣮ࡍͷऔΓ૊Έ ΍ ϙΠϯτ Λ঺հ͍ͯ͜͠͏ͱࢥ͍·͢ ʢগ͠झ޲Λม͑ͯʣʮSLO͸୯ͳΔσʔλͰ͋Δʯͱ͍͏จݴͷΈΛɺσʔλΤϯδχΞతͳ؍఺Ͱղऍͯ͠ΈΔͱ
  9. Copyright © 2023 Bitkey Inc. All right reserved. 15 3.

    ͸͡Ίʹ ʢͪͳΈʹʣϏοτΩʔͷSREͷऔΓ૊Έʹ͍ͭͯ͸ɺฐࣾͷspeakerdeck͔Βޚཡ͍ͩ͘͞ʂʂʂ ϦϯΫ ϦϯΫ ϦϯΫ ϦϯΫ
  10. Copyright © 2023 Bitkey Inc. All right reserved. 16 4.

    SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ
  11. Copyright © 2023 Bitkey Inc. All right reserved. 17 4.

    SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ ᶃ ΧελϚʔαϙʔτ෦໳ʹͯɺ໰͍߹ΘͤରԠʹSLIΛ׆༻ ɾސ٬ͷݴ͏ʮΧΪ͕։͔ͳ͍ɾ൓Ԡ͕஗͍ʯ ͷ಺༰͸༷ʑͳͷͰώΞϦϯάʹ͕͔͔࣌ؒΔ ྫʣશ͘։͔ͳ͍ɺ80%͸։͘ɺҎલ͸99.9% ͚ͩͬͨͲ࠷ۙ90%ʹͳͬͨ...
 →͜ΕΛఆྔత͔ͭޮ཰తʹ೺Ѳ͍ͨ͠ ɾ໰͍߹ΘͤରԠ׬ྃޙɺސ٬͔Βʮղܾ͠· ͨ͠ʂʯͱฦ৴͕དྷͳ͍͜ͱ͕Α͋͘Δ →࣮ࡍʹ࣏ͬͨͷ͔೺Ѳ͍ͨ͠ Ϗδωε՝୊ɾχʔζ ᶃ ΞϓϦ͔Βͷղৣ੒ޭ཰ ᶄ ަ௨ܥICΧʔυ΍ࣾһূʹΑΔ ղৣ੒ޭ཰ ᶅ إೝূ੒ޭ཰ ᶆ QRίʔυೝূ੒ޭ཰ SLI ࣾ಺؅ཧγεςϜ͔ΒSLI͕ࢀরՄೳʹʂ SLIͷఏڙํ๏ ※staging؀ڥʹμϛʔੜ੒ͨ͠਺஋Ͱ͢ ໰͍߹Θͤདྷͨɻ೔ʹ Αࣦͬͯഊ͢Δ͜ͱ͕ ͋Γͦ͏ͩɻղܾࡦΛ ఏҊ͠Α͏ ฦ৴͸དྷͯͳ͍͚ Ͳɺղܾͨ͠Έ͍ͨ ͩɻɻɻεςʔλε Λʮ׬ྃʯʹ͠Α͏
  12. Copyright © 2023 Bitkey Inc. All right reserved. 18 ސ٬ར༻ঢ়گΛՄࢹԽ͍ͯ͠ΔɺBIπʔϧͰSLI͕ࢀরՄೳʹʂ

    ɾදΛ൴Β͕ޙଓͷΦϖϨʔγϣϯ؅ཧ͠΍͍͢εϓϨουγʔτʹ ɹγʔϜϨεʹΤΫεϙʔτՄೳͳͷͰɺLooker StudioΛ࠾༻͠·ͨ͠ ɾϝλσʔλΛϑϥϯΫʹ͚ͬͭ͘ΕΔ ɹˠϩάʹސ٬໊Λ࣋ͨͤͯͳ͔ͬͨΓɺϏδωεଆ͕ಠࣗ؅ཧ
 ɹ͍ͯ͠Δϝλσʔλ͕͋ͬͨΓ͢ΔͷͰɺͦΕΛ෇༩͍ͯ͠Δ ɹʢDatadogͩͱɺ͜ΕʹʮϦϑΝϨϯεςʔϒϧʯΛ࢖͍ͬͯΔ ɹ͕ɺ͏·͘ӡ༻͕Ͱ͖͍ͯͳ͍ɾɾɾʣ ɾSLI͝ͱʹμογϡϘʔυΛ࡞͍ͬͯΔ ɾσόΠε͝ͱͷSLIΛ೺ѲͰ͖ΔμογϡϘʔυ΋࡞͍ͬͯΔ 4. SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ ᶄ ϓϩΞΫςΟϒΞϓϩʔνʹΑΔސ٬ຬ଍౓޲্ɾղ໿཈ࢭʢtoBྖҬʣ ɾ໰͍߹Θ͕ͤདྷΔલʹɺࠔ͍ͬͯΔސ٬ɺ͏ ·͘࢖͍͑ͯͳ͍ސ٬Λ೺Ѳ͠αϙʔτ͍ͯ͠ ͖͍ͨʢʹϓϩΞΫςΟϒΞϓϩʔνʣ →ࠔ͍ͬͯΔސ٬Λఆྔతʹ೺Ѳ͍ͨ͠ ᶃ ަ௨ܥICΧʔυ΍ࣾһূʹΑΔ ղৣ੒ޭ཰ / ϨΠςϯγ ᶄ إೝূ੒ޭ཰ / ϨΠςϯγ ᶅ QRίʔυೝূ੒ޭ཰ / ϨΠς ϯγ SLI SLIͷఏڙํ๏ ൺֱతɺ੒ޭ཰͕௿ͦ͏ ͩɻࠔΓࣄ͕ແ͍͔࿈བྷ͍ ΕͯΈΑ͏ʂ ͜ͷՕॴͰࣦഊ͕ଟ͍ͱ͍ ͏͜ͱ͸σʔλෆ੔߹͕ൃ ੜͯ͠ΔΜ͡Όɺɺɺ࠶ઃ ఆΛ͓ئ͍͠Α͏ Ϗδωε՝୊ɾχʔζ
  13. Copyright © 2023 Bitkey Inc. All right reserved. 19 4.

    SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ ΞʔΩςΫνϟɿϩάΛBigQueryʹཷΊࠐΉΑ͏ʹ͍ͯ͠Δɻͦ͜ʹଘࡏ͢ΔαʔϏε/ܖ໿σʔλͱඥ෇͚Δ͜ͱͰϏδωε׆༻ʹ଱͑͏ΔΑ͏ʹ͍ͯ͠Δ ▪ղৣɺೝূܥͷSLIͷ؂ࢹํ๏
  14. Copyright © 2023 Bitkey Inc. All right reserved. 20 4.

    SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ ʢݫີʹݴ͏ͱϏδωε׆༻Ͱ͸ͳ͍͕ʣղৣܥͷମݧͰ͸IotσόΠε͕བྷΉಛੑ্ɺϏδωεଆͱڠྗͯ͠ಛघͳʮSLOʯͷӡ༻Λͯ͠·͢ ▪ղৣɺೝূܥͷSLIͷ؂ࢹํ๏
  15. Copyright © 2023 Bitkey Inc. All right reserved. 21 4.

    SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ BLE ൶͕෼ް͍ɾ ి೾Λ௨ͮ͠ Β͍ૉࡐ Bluetooth ͷઃఆ͕ OFF ڑ཭͕ ԕ͍ ి஑͕ ແ͍ ɹిݯ͕ ೖΒͳ͍ IotσόΠεͷೝূɾղৣͱ͍͏ମݧ͸ӈਤͷΑ͏ͳɺ ઃஔ؀ڥ΍σόΠεͷঢ়ଶʹґଘ͢Δͱ͍͏ಛ௃͕͋Δ ͳͷͰͦ΋ͦ΋ಈ࡞͢Δঢ়ଶ*ʹ͋Δ͔ɺ CSʹΑΔঢ়گ೺Ѳ͕ඞཁ ※Luup͞Μ͸σόΠεଆ͕ಈ࡞͢Δঢ়ଶʹ͋Δ͔Λ CMCɿCritical Machine Communicationͱఆٛ͠ɺࢦඪԽ͍ͯ͠Δ ࢀরɿిಈϚΠΫϩϞϏϦςΟͷγΣΞαʔϏεʮLUUPʯʹ͓͚ΔEnabling SLOͷ࣮ફ ʢݫີʹݴ͏ͱϏδωε׆༻Ͱ͸ͳ͍͕ʣղৣܥͷମݧͰ͸IotσόΠε͕བྷΉಛੑ্ɺϏδωεଆͱڠྗͯ͠ಛघͳʮSLOʯͷӡ༻Λͯ͠·͢ ▪IotσόΠε͕བྷΉମݧͷಛ௃
  16. Copyright © 2023 Bitkey Inc. All right reserved. 22 4.

    SLI/SLOͷσʔλ׆༻ ~ ࣄྫ঺հ ᶃΤϥʔόδΣοτͷރׇɺόʔϯϨʔτͷ૿ՃΞϥʔτ ʢDatadog => slackʣ ᶃ ᶄCS͕ΞϥʔτΛ֬ೝ ʢݱ࣮͸SRE͕ΞϥʔτΛղऍ͠ɺCSʹ࿈བྷ͢Δ͜ͱͰޙଓͷௐࠪΛ։࢝ʣ ᶄ ᶅBIπʔϧ΍Datadog͔Βମݧᆝଛ͍ͯ͠Δސ٬Λಛఆɻ ސ٬αϙʔτɾ։ൃௐࠪґཔͳͲͷωΫετΞΫγϣϯΛݕ౼ ʢݱ࣮͸SRE͕ݟͯCSͷΞΫγϣϯΛϑΥϩʔʣ ᶅ ʢݫີʹݴ͏ͱϏδωε׆༻Ͱ͸ͳ͍͕ʣղৣܥͷମݧͰ͸IotσόΠε͕བྷΉಛੑ্ɺϏδωεଆͱڠྗͯ͠ಛघͳʮSLOʯͷӡ༻Λͯ͠·͢ ▪۩ମతͳSLOͷӡ༻ํ๏ ᶅ
  17. Copyright © 2023 Bitkey Inc. All right reserved. 24 🌞

    ׆༻ଆͷѻ͍΍͢͞Λҙࣝ͢Δͱ࢖ͬͯ͘Ε΍͍͢ πʔϧʢࣾ಺؅ཧγεςϜɾBIπʔϧɾεϓϨουγʔτʣɺCUJΛ෼ղͨ͠ϑϩʔਤΛ༻ҙ͠ࢦඪʹର͢Δڞ௨ೝࣝΛৢ੒ 🌞 SLIɾSLOΛݫ֨ʹӡ༻͢ΔΑΓ΋ɺ׆༻ͷϋʔυϧ͕௿͍ͷͰɺՁ஋͕ग़΍͍͢ SRE΍SLIɾSLOʹऔΓ૊ΉͨΊʹձࣾͷঝೝతͳ΋ͷ͕ϋʔυϧʹͳͬͨ৔߹ɺ͜͏͍ͬͨऔΓ૊Έ΋߹ΘͤͯఏҊ͍ͯ͘͠ͱྑ͍͔΋ ʢ※ฐࣾ͸SREͷऔΓ૊Έ΁ͷ౤ࢿʹ͔ͳΓੵۃతͰ͢ʣ ☔ DatadogͷAPM΍RUMΛϕʔεͱͨ͠SLI΋͋Δ͕ɺϏδωεจ຺Ͱ͸·ͩະ׆༻ ϩάͱಉ༷ʹBigQueryͷੈքʹ͍࣋ͬͯ͘΂͖ͳͷ͔ɺ͸ͨ·ͨDatadogΛϏδωεଆͰ΋׆༻Ͱ͖ΔΑ͏ʹࢼߦࡨޡ͍ͯ͘͠΂͖ͳͷ͔ɾɾɾ 5. SLI/SLOͷσʔλ׆༻ ~ ϙΠϯτ औΓ૊Μ্ͩͰͷ ϙΠϯτ ͱ վળ఺
  18. Copyright © 2023 Bitkey Inc. All right reserved. 26 SLOຊͷΑΔͱɺSLIɾSLO͸αʔϏε΍ϓϩμΫτͷ৴པੑΛ

    ҡ࣋ɾ޲্͢ΔͨΊͷɺٞ࿦΍ҙࢥܾఆΛੜΈͩ͢”σʔλ”Ͱ͋Δ ↓ ͱಉ࣌ʹ༷ʑͳ໨తͰ׆༻͢Δ͜ͱ͕ՄೳͰ͋Δ͜ͱ͕Θ͔ͬͨ ↓ ·ͩऔΓ૊Ίͯͳ͍͕ɺΞοϓηϧ΍ΫϩεηϧͷλʔήςΟϯά΁ͷ׆༻ͳͲ SRE͕௚઀తͳച্ʹد༩͢Δ͜ͱ΋Ͱ͖ΔͷͰ͸ͱࢥ͍ͬͯΔ ↓ ࠷ޙʹσʔλਓࡐͱͯ͠ɺ SLIɾSLOͱ͍͏SREͷϓϥΫςΟε͸ૉ੖Β͍͠ͱࢥ͍ͬͯͯɺ ࠓޙ΋SREͷօ͞Μͷ஌ݟΛ͓आΓ͠ͳ͕ΒऔΓ૊ΜͰ͍͖͍ͨ 6. ·ͱΊ
  19. Copyright © 2023 Bitkey Inc. All right reserved. 27 We

    Are Hiring ! Θͨͨͪ͠͸ɺͱ΋ʹಇ͘஥ؒΛืू͓ͯ͠Γ·͢ʂ ৬छͷҰྫͱͯ͠͸... 1. SRE 2. EM 3. SEʢWEBɺϞόΠϧʣ 4. PdM 5. UI/UXσβΠφʔ … ͳͲɺ༷ʑͳϙδγϣϯͰืूதͰ͢ʂ ͝ڵຯ͕͋Ε͹ӈͷQRίʔυ·ͨ͸ɺ X(Twitter):@i_am_miko__ ·Ͱ͝࿈བྷ͍ͩ͘͞ʂ 6. ·ͱΊ