Slide 1

Slide 1 text

SRE Λ࣮ݱ͢ΔͨΊͷ૊৫Ϛωδϝϯτ Takeshi Kondo / @chaspy 2022/03/12 6ࣾ߹ಉ SREษڧձ

Slide 2

Slide 2 text

Who am I chaspy chaspy_ Engineering Manager, Site Reliability at Recruit Co., Ltd. Takeshi Kondo https://chaspy.me

Slide 3

Slide 3 text

Who am I chaspy chaspy_ ʢגʣϦΫϧʔτ ϓϩμΫτ౷ׅຊ෦ ϓϩμΫτ։ൃ౷ׅࣨ ϓϩμΫτσΟϕϩοϓϝϯτࣨ ·ͳͼྖҬϓϩμΫτσΟϕϩοϓϝϯτϢχοτ খதߴϓϩμΫτ։ൃ෦ খதߴ̨̧̚άϧʔϓ άϧʔϓϚωʔδϟ Takeshi Kondo https://chaspy.me

Slide 4

Slide 4 text

ࠓ೔࿩͢͜ͱ ϦΫϧʔτάϧʔϓͷ ʮϛογϣϯϚωδϝϯτʯΛ ׆༻ͯ͠։ൃνʔϜͷ SRE Capability शಘ Λࢧԉͨ͠ࣄྫ

Slide 5

Slide 5 text

͋Δ͍͸ (Partially) Embedded / Enabling SRE ͷࣄྫ

Slide 6

Slide 6 text

• ։ൃνʔϜͷ৴པੑʹؔ͢Δ Capability शಘʹ͸2छྨ͋Δ • Embedded SRE (from Pure SRE) / ֎͔Β఻͑Δ • Enabling SRE (in the Team) / ಺͔Β޿͛Δ • ૊৫ن໛ɾϑΣʔζʹΑͬͯ࠷దͳύλʔϯ͕ҟͳΔ • খن໛ / ։ൃॳظϑΣʔζͰ͋Ε͹ Embedded SRE Pattern • தେن໛ / ։ൃνʔϜ͕੒ख़ͯ͘͠Ε͹ Enabling SRE Pattern • ͜ͷ2ͭͷύλʔϯ͸ϚωδϝϯτͰσβΠϯͰ͖Δ • 100/0 Ͱͳ͘”෦෼తʹ”࣮ફ͢Δ͚ͩͰ΋ޮՌ͕͋Δ Tl;dr

Slide 7

Slide 7 text

Disclimer • Management ͷྫͱͯ͠঺հ͠·͕͢ɺ੒Ռ͕ग़ͨͷ͸ ϛογϣϯΛҾ͖ड͚ͯ͘ΕͨϝϯόʔɺSREɺ։ൃνʔϜ ͷօ͞Μͷ͓͔͛Ͱ͢ɻ͍ͭ΋͋Γ͕ͱ͏͍͟͝·͢ʂ

Slide 8

Slide 8 text

Agenda • લఏɿSRE Λ࣮ݱ͢Δͱ͸Ͳ͏͍͏͜ͱ͔ • ྺ࢙͔ΒৼΓฦΔʰελσΟαϓϦʱSRE • ࣄྫɿ(Partially) Embedded / Enabling SRE • ·ͱΊͱࠓޙ

Slide 9

Slide 9 text

Agenda • લఏɿSRE Λ࣮ݱ͢Δͱ͸Ͳ͏͍͏͜ͱ͔ • ྺ࢙͔ΒৼΓฦΔʰελσΟαϓϦʱSRE • ࣄྫɿ(Partially) Embedded / Enabling SRE • ·ͱΊͱࠓޙ

Slide 10

Slide 10 text

SRE Λ࣮ݱ͢Δͱ͸

Slide 11

Slide 11 text

։ൃνʔϜ͕৴པੑΛ ίϯτϩʔϧ͢Δ Capability Λ ਎ʹ͚͍ͭͯΔ͜ͱ

Slide 12

Slide 12 text

ͦ΋ͦ΋ Site Reliability Engineering ͱ͸: Not like this • αʔϏε͕ʮߴ͍৴པੑ (ʹ100%)ʯΛอ͍ͬͯΔ͜ͱ • SLI/SLO ΛकΕ͍ͯΔ͜ͱ • ΦϯίʔϧϩʔςʔγϣϯΛ։ൃνʔϜͰߦ͏͜ͱ https://github.com/twitter/twemoji

Slide 13

Slide 13 text

ͦ΋ͦ΋ Site Reliability Engineering ͱ͸: Like this! • αʔϏε͕ʮϢʔβ͕ظ଴͢Δ৴པੑʯΛอ͍ͬͯΔ͜ͱ • SLI/SLO Λઃఆ͠ɺඇػೳཁ݅ͱػೳཁ݅ͷ༏ઌ౓ܾఆͷ ࢦඪͱͯ͠׆༻͍ͯ͠Δ • SLO ҧ൓͕ൃੜͨ͠ͱ͖ʹద੾ʹରॲͰ͖ΔΑ͏ͳϞχλ Ϧϯάํ๏ͱϙϦγʔ͕νʔϜͰಉҙ͞Ε͍ͯΔ • ্ه͕ఆظతʹݟ௚͞Ε͍ͯΔ https://github.com/twitter/twemoji

Slide 14

Slide 14 text

։ൃνʔϜ͕৴པੑΛίϯτϩʔϧ͢Δ Capability Λ਎ʹ͚ͭΔ: Like this! SRE ։ൃ νʔϜ ։ൃνʔϜͷ৴པੑʹ ؔ͢Δ Capability औಘ Λࢧԉ͢Δ ࣗ෼ͨͪͷαʔϏεͷ ৴པੑΛࣗ෼ͨͪͰί ϯτϩʔϧͰ͖͍ͯΔ

Slide 15

Slide 15 text

Team Topologies • 4ͭͷνʔϜύλʔϯ • Stream Aligned • Platform • Enabling • Complicated Subsystem • 3ͭͷίϛϡχέʔγϣϯύλʔϯ • Collaboration • X as a Service • Facilitation https://pub.jmam.co.jp/book/b593881.html

Slide 16

Slide 16 text

։ൃνʔϜ͕৴པੑΛίϯτϩʔϧ͢Δ Capability Λ਎ʹ͚ͭΔ: Like this! SRE ։ൃ νʔϜ ։ൃνʔϜͷࣗݾ׬݁ ԽΛࢧ͑Δϓϥοτ ϑΥʔϜͱจԽΛ࡞Δ Platform Team Enabling Team Stream Aligned Team ։ൃνʔϜ͸ࣗ෼ͨͪͰඞཁͳ ΋ͷΛࣗ෼ͨͪͰ༻ҙͰ͖Δ = self-contained / ࣗݾ׬݁Խ

Slide 17

Slide 17 text

SRE Team ͷ Vision / Mission / Values https://blog.studysapuri.jp/entry/sre-vision-mission-values

Slide 18

Slide 18 text

Mission ࣗݾ׬݁νʔϜ͕ϓϩμΫ τΛૉૣ҆͘શʹಧ͚ଓ͚ ΔͨΊͷϓϥοτϑΥʔϜ ͱจԽΛ࡞Δ

Slide 19

Slide 19 text

Agenda • લఏɿSRE Λ࣮ݱ͢Δͱ͸Ͳ͏͍͏͜ͱ͔ • ྺ࢙͔ΒৼΓฦΔʰελσΟαϓϦʱSRE • ࣄྫɿ(Partially) Embedded / Enabling SRE • ·ͱΊͱࠓޙ

Slide 20

Slide 20 text

ʢͦͷલʹʣ ϓϩμΫτ঺հ

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

ྺ࢙͔ΒৼΓฦΔ ʰελσΟαϓϦʱSRE

Slide 25

Slide 25 text

ྺ࢙͔ΒৼΓฦΔʰελσΟαϓϦʱSRE • 2019: Application Platform Λ Kubernetes ΁Ҡ؅ • 2020: Microservices Readiness ͷ੔උ • αʔϏεΦʔφʔγοϓͷࡦఆ • Design Doc / Production Readiness Checklist • Self-services Infrastructure (terraform monorepo) • SLI/SLO • 2021: SLI/SLO ӡ༻Λ։ൃνʔϜʹ׬શҠৡ Platform Team ͱͯ͠ Platform Λ ࡞͍ͬͯΔ Enabling Team ͱͯ͠ ։ൃ૊৫ʹ SLI/SLO ͳͲͷΧϧνϟʔৢ੒

Slide 26

Slide 26 text

૊৫ن໛ͷਪҠ ։ൃऀ 43& ։ൃऀ͸ελσΟαϓϦɾQuipper ྆ํͷɺWeb Engineer (frontend&backend) ͷ਺ɻNative ͸আ֎͍ͯ͠Δɻ

Slide 27

Slide 27 text

2021೥ɺEnabling SRE Λ։ൃνʔϜ಺͔Β࡞ΔΑ͏ઓུมߋ • ʮ৴པੑʯΛऔΓר͘։ൃ૊৫ͷঢ়گ͕ΑΓΞϓϦέʔγϣϯɾ υϝΠϯʹಛԽͨ͠໰୊ʹͳΓͭͭ͋ͬͨ • ෛՙࢼݧ • υϝΠϯಛԽͷ Pod Auto Scaling • Frontend Performance ͷଌఆ ͓Αͼ SLI/SLO ͷվળ • QA ࣗಈԽ • 1ͭͷ SRE Team ͕ Enabling Team ͱͯ͠ৼΔ෣͏ΑΓɺ։ൃ νʔϜ಺ʹ Enabling SRE Λ࡞Δํ޲ʹઓུมߋ https://blog.studysapuri.jp/entry/2022/02/17/sre-study-session

Slide 28

Slide 28 text

։ൃνʔϜ಺ Enabling SRE Λ࡞Δ

Slide 29

Slide 29 text

։ൃνʔϜ಺ Enabling SRE Λ࡞Δ

Slide 30

Slide 30 text

2020೥ࠒͷঢ়گ SRE ։ൃ νʔϜ ։ൃ νʔϜ Facilitating Facilitating Enabling Team Stream Aligned Team

Slide 31

Slide 31 text

2022೥ݱࡏ SRE ։ൃνʔϜ Facilitation SRE mem ber mem ber mem ber Facilitation ϑϥΫλϧతʹͳΔ Platform Team Enabling Team Stream Aligned Team Enabling SRE X as a Service

Slide 32

Slide 32 text

Pure SRE vs Embedded SRE https://www.slideshare.net/newrelic/sreiously-de fi ning-the-principles-habits-and-practices-of-site-reliability-engineering-112178269

Slide 33

Slide 33 text

2020೥ࠒͷঢ়گ SRE ։ൃ νʔϜ ։ൃ νʔϜ Facilitating Facilitating Pure SRE

Slide 34

Slide 34 text

2022೥ݱࡏ SRE ։ൃνʔϜ Facilitating SRE mem ber mem ber mem ber Facilitating ϑϥΫλϧతʹͳΔ Pure SRE Embedded SRE X as a Service

Slide 35

Slide 35 text

Agenda • લఏɿSRE Λ࣮ݱ͢Δͱ͸Ͳ͏͍͏͜ͱ͔ • ྺ࢙͔ΒৼΓฦΔʰελσΟαϓϦʱSRE • ࣄྫɿ(Partially) Embedded / Enabling SRE • ·ͱΊͱࠓޙ

Slide 36

Slide 36 text

ࠓ೔࿩͢͜ͱ ϦΫϧʔτάϧʔϓͷ ʮϛογϣϯϚωδϝϯτʯΛ ׆༻ͯ͠։ൃνʔϜͷ SRE Capability शಘ Λࢧԉͨ͠ࣄྫ

Slide 37

Slide 37 text

͋Δ͍͸ (Partially) Embedded / Enabling SRE ͷࣄྫ

Slide 38

Slide 38 text

ϛογϣϯϚωδϝϯτ https://github.com/twitter/twemoji

Slide 39

Slide 39 text

ϦΫϧʔτͷϛογϣϯϚωδϝϯτ • ϝϯόʔͷ Will / Can / Must ΛϚωʔδϟͱ͢Γ߹ΘͤΔ • ֤ϛογϣϯ͸ׂ߹ɾ಺༰ɾୡ੒ج४Λ߹ҙ͞ΕΔ • ϛογϣϯͷϨϙʔτϥΠϯ͸ඞͣ͠΋௚ଐͷνʔϜϚωʔ δϟͰ͋Δඞཁ͸ͳ͍

Slide 40

Slide 40 text

ϦΫϧʔτͷϛογϣϯϚωδϝϯτ EM Mem ber Mem ber Mem ber Mem ber ϛογϣϯͷ 30%Λ SRE ؔ܎ ͷ΋ͷʹઃఆ SRE ։ൃνʔϜ

Slide 41

Slide 41 text

۩ମతʹͲΜͳϛογϣϯΛઃఆ͔ͨ͠ • ։ൃνʔϜϝϯόʔʢதֶߨ࠲ϦχϡʔΞϧͷ։ൃʣ • ΠϯϑϥྖҬͷࣗݾ׬݁Խͷਪਐ 30% • ϓϩμΫτ։ൃͷͨΊͷϛογϣϯ 70% • SRE ϝϯόʔ • ։ൃνʔϜͷ։ൃऀੜ࢈ੑͷαϙʔτ 20% • Production Release ͷαϙʔτ 20% • SRE ͷͨΊͷϛογϣϯ 60% https://studysapuri.jp/course/junior/

Slide 42

Slide 42 text

ϦΫϧʔτͷϛογϣϯϚωδϝϯτ EM Mem ber Mem ber ΠϯϑϥྖҬͷ ࣗݾ׬݁Խͷਪ ਐ(30%) SRE ։ൃνʔϜ ϓϩμΫτ։ൃʹؔ͢Δ ϛογϣϯ(70%) ։ൃऀੜ࢈ੑ/ Production Release ͷ αϙʔτ(40%) / (ଞ60%)

Slide 43

Slide 43 text

Ϛωʔδϟ͕΍ͬͨ͜ͱ • ֤ϝϯόʔͱͷఆظతͳ 1on1 • ϛογϣϯͷதؒৼΓฦΓ • ϛογϣϯΛՄࢹԽ͢ΔϛογϣϯπϦʔͷ࡞੒ • ϛογϣϯͷ૬ޓઆ໌ͷ৔ͷઃఆ

Slide 44

Slide 44 text

ϛογϣϯΛՄࢹԽ͢ΔϛογϣϯπϦʔ https://blog.studysapuri.jp/entry/2022/02/25/sre-mission-tree

Slide 45

Slide 45 text

Կ͕ى͖ͨͷ͔(1) • ੜ࢈ੑվળαΠΫϧͷՃ଎ • ՝୊ͷٵ্͍͛ -> ࣮૷ -> ϑΟʔυόοΫ -> վળͷαΠΫϧ͕Ճ଎

Slide 46

Slide 46 text

Կ͕ى͖ͨͷ͔(2) • SRE Culture ͷ఻ൖɿϓϨϞʔςϜͷ࣮ࢪ https://blog.studysapuri.jp/entry/pre-mortem

Slide 47

Slide 47 text

Կ͕ى͖ͨͷ͔(3) • ΞϥʔτϋϯυϦϯάͷαϙʔτ • Alert ͦͷ΋ͷͷઆ໌ɺௐࠪํ๏͸ SRE ͕αϙʔτ • ରԠͦͷ΋ͷ͸։ൃνʔϜͰ࣮ࢪ

Slide 48

Slide 48 text

݁ՌͲ͏ͳ͔ͬͨ • େ͖ͳো֐ͳ͘ελσΟαϓϦதֶߨ࠲ͷϑϧϦχϡʔΞϧ ͕ϦϦʔε • ։ൃνʔϜͰΞϥʔτରԠ࣮ݱ https://studysapuri.jp/course/junior/ https://github.com/twitter/twemoji

Slide 49

Slide 49 text

ࠓճ΍ͬͨ͜ͱ͸ͳΜͩͬͨͷ͔ SRE ։ൃνʔϜ SRE mem ber mem ber mem ber Facilitation Pure SRE (։ൃνʔϜ಺) (Partially) Enabling SRE SRE (Partially) Embedded SRE ͱͯ͠Ҡಈ

Slide 50

Slide 50 text

ࠓճ΍ͬͨ͜ͱ͸ͳΜͩͬͨͷ͔ SRE ։ൃνʔϜ SRE mem ber mem ber mem ber Facilitating Pure SRE (։ൃνʔϜ಺) (Partially) Enabling SRE SRE (Partially) Embedded SRE ͱͯ͠Ҡಈ

Slide 51

Slide 51 text

ࠓճ΍ͬͨ͜ͱ͸ͳΜͩͬͨͷ͔ SRE ։ൃνʔϜ SRE mem ber mem ber mem ber Collaboration Pure SRE (։ൃνʔϜ಺) (Partially) Enabling SRE SRE (Partially) Embedded SRE ͱͯ͠Ҡಈ

Slide 52

Slide 52 text

ࠓճͷύλʔϯͷߟ࡯ • Enabling SRE ʹΑΔ Facilitating ͸”த”͔Β࡞Δํ͕ྑ͍ • ΑΓ։ൃνʔϜͷӡ༻ελΠϧʹ͋ͬͨܗͰద༻Ͱ͖Δ • ٕज़తͳ࣮૷͸ Platform ʹৄ͍͠ Pure SRE ͕”֎”͔Β Embedded ͞Εͯ Collaboration ͨ͠ํ͕ྑ͍ • ArgoCD, GitHub Actions ͳͲ Infrastructure ͸ Pure SRE ͕ৄ͍͠ • ՝୊ൃݟɺ࣮૷ɺϑΟʔυόοΫαΠΫϧΛߴ଎ʹճ͢͜ͱͰΑΓྑ ͍ Platform ͕ఏڙͰ͖Δ

Slide 53

Slide 53 text

Agenda • લఏɿSRE Λ࣮ݱ͢Δͱ͸Ͳ͏͍͏͜ͱ͔ • ྺ࢙͔ΒৼΓฦΔʰελσΟαϓϦʱSRE • ࣄྫɿ(Partially) Embedded / Enabling SRE • ·ͱΊͱࠓޙ

Slide 54

Slide 54 text

• ։ൃνʔϜͷ৴པੑʹؔ͢Δ Capability शಘʹ͸2छྨ͋Δ • Embedded SRE (from Pure SRE) / ֎͔Β఻͑Δ • Enabling SRE (in the Team) / ಺͔Β޿͛Δ • ૊৫ن໛ɾϑΣʔζʹΑͬͯ࠷దͳύλʔϯ͕ҟͳΔ • খن໛ / ։ൃॳظϑΣʔζͰ͋Ε͹ Embedded SRE Pattern • தେن໛ / ։ൃνʔϜ͕੒ख़ͯ͘͠Ε͹ Enabling SRE Pattern • ͜ͷ2ͭͷύλʔϯ͸ϚωδϝϯτͰσβΠϯͰ͖Δ • 100/0 Ͱͳ͘”෦෼తʹ”࣮ફ͢Δ͚ͩͰ΋ޮՌ͕͋Δ Tl;dr

Slide 55

Slide 55 text

ࠓޙ͸͞Βʹ։ൃνʔϜͷεέʔϥϏϦςΟͷͨΊʹҎԼʹऔΓ૊Ή • SRE Capability शಘࢧԉ • ϛογϣϯϚωδϝϯτʹΑΔ։ൃνʔϜ಺ Enabling SRE ͷ࠾༻ • SRE ੒ख़౓Ξηεϝϯτͷ࡞੒ɾ࣮ࢪ • SRE ஌ࣝɾٕज़शಘͷͨΊͷΦϯϘʔσΟϯάࢧԉ • Developer Success / ։ൃੜ࢈ੑ޲্ࢧԉ • Platform Λ Product ͱͯ͠։ൃ͢Δ • Developer Support ࠓճͷࣄྫ

Slide 56

Slide 56 text

Special Thanks • @kyontan • As Embedded SRE • @ravelll • As Enabling SRE • ʰελσΟαϓϦʱதֶߨ࠲ϑϧϦχϡʔΞϧʹؔΘͬͨશͯͷਓ • SRE νʔϜϝϯόʔ

Slide 57

Slide 57 text

Thank you! chaspy chaspy_ Engineering Manager, Site Reliability at Recruit Co., Ltd. Takeshi Kondo https://chaspy.me

Slide 58

Slide 58 text

͓·͚ɿSRE ੒ख़౓Ξηεϝϯτ