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

SREの車窓から

6ed12627fec46a135f1bce5d56f3568e?s=47 nwiizo
August 11, 2021

 SREの車窓から

GeekGig #1 〜Goと私の一年〜
https://showcase-gig.connpass.com/event/217914/

6ed12627fec46a135f1bce5d56f3568e?s=128

nwiizo

August 11, 2021
Tweet

Transcript

  1. ೥݄೔(FFL(JHʙ(PͱࢲͷҰ೥ʙ!OXJJ[P 43&ͷं૭͔Β ΤϯδχΞϦϯάͱ͍͏௕ཱྀͰͲΕʹ৐Δͷ͔ʁ ΋͘͠͸৐Βͳ͍ͷ͔ʁ

  2. "CPVU4IBLF w 43&ࢧԉٕज़ࢧԉ w 4SFBLF͸ۚ༥ɾҩྍɾಈը഑৴ɾ"*ɾήʔϜͳͲٕज़ྗ͕ٻΊΒΕΔྖҬͰ๛෋ͳܦݧΛ࣋ͭ43&͕ू·ͬͨνʔϜ ʹΑΔٕज़ࢧԉαʔϏεͰ͢ɻઓུࡦఆ͔Βઃܭɾߏஙɾӡ༻ɺ4BB4ఏڙ·Ͱɺ෯޿͍ྖҬΛαϙʔτ͠·͢ɻ  Sreake ྲྀ SRE

    Roadmap SRE ͷ։࢝ ·ͣ͸খ͘͞ɻ ޮՌ͕࠷େݶʹग़Δͱ͜Ζ ͔Βίπίπͱ࢝ΊΑ͏ SRE νʔϜͷఆٛ ૊৫ʹ͋ͬͨ SRE Λఆٛ͠Α͏ SRE࣮ફ SLIɾSLO ͷઃఆ Toil ࡟ݮ (ࣗಈԽਪਐ) SRE ͷൃలͱܧଓ SREͷจԽ͕ਁಁ͢Δ Error Budget Λݩʹ
 ۀ຿Λίϯτϩʔϧ͍ͯ͘͠ ଞʹ΋͍͔ͭ͘ͷࣄۀΛ΍͍ͬͯͨΓ͢Δ͕
  3. 43&ͷ࣮ફ಺༰ ྫ  • ؂ࢹج൫ಋೖ ◦Loggin g ◦Monitorin g ◦AP

    M • SLI / SLO ͷఆٛ • ӡ༻ମ੍੔උ ◦ΠϯγσϯτରԠɾ؅ཧ ◦ޮՌతͳΞϥʔτ • IaC (Infrastructure as Code ) ◦ߏ੒؅ཧͷ඼࣭νΣοΫ ◦GitOps • CI/CD ಋೖ ◦σϓϩΠͷࣗಈԽ ◦ίʔυ඼࣭ɾ੬ऑੑͷݕࠪ ◦DevSecOp s • ΞϓϦέʔγϣϯͷύοέʔδԽ ◦ίϯςφ • ύϑΥʔϚϯε෼ੳ ◦෼ࢄτϨʔγϯά ◦ෛՙࢼݧ ◦ΧΦεγφϦΦࢼݧ ্هͷΑ͏ͳಋೖࢧԉΛߦͳ͓ͬͯΓɺ OXJJ[P΋ۀ຿ͱ֤༷ͯࣾ͠ͱҰॹʹ43&ʹؔ͢Δ΍͍͖ͬͯΛ΍͍ͬͯΔ
  4. (PͱࢲͷҰ೥ͱ͍͏͜ͱͰ 2ࠓ೥͸ࢲ͕(PݴޠͰԿΛ͍͔ͯͨ͠ʁ "΄΅શͯͰ(PݴޠΛར༻͍ͯ͠Δ Ұࡢ೥͙Β͍͔Βن໛ײͰ1ZUIPO΍γΣϧεΫϦϓτΛબ୒͢Δͱ͍͏৔໘͕ݮΓ·ͨ͠ɻ 
 GJTI γΣϧ؀ڥʹ௚઀Өڹ͕͋Δ΋ͷ΍ࣗ෼ͰϥΠϒϥϦʔͷ։ൃ͕ඞཁͰͦΕΒ͕ 
 ໘ന͘ͳͦ͞͏ͳ৔߹Ҏ֎͸શͯ(PݴޠͰ࣮૷͢ΔΑ͏ʹͳΓ·ͨ͠ɻ ࠷ۙͰ͸ɺݸਓ։ൃͷੜ࢈ੑͷ؍఺͔Β΋׳Εͷ͓͔͛Ͱ(PݴޠҰ୒ʹͳͬͯΔ

  5. ෼͔͠ͳ͍ͷͰ લஔ͖΋ͦͦ͜͜ʹ 
 ຊ୊ʹߦ͔Ͷ͹

  6. 43&͕(Pݴޠʹ৮ΕΔͱྑ͍͜ͱ ࣗಈԽ ίϥϘϨʔγϣϯ ղ૾౓

  7. ࣗಈԽ w ָ͍ͨ͠ͱ͍͏Լ৺Ͱ͢ɻશͯͷ࡞ۀ͸ࣗಈԽ͞Εͯ΄͍͠ɻ͔͠͠ɺ։ൃεΩ ϧͳ͠Ͱ͸ਖ਼֬ʹࣗಈԽͰ͖ͣɺӡ༻εΩϧͳ͠Ͱ͸ਖ਼ࣗ͘͠ಈԽͰ͖·ͤΜɻ ͍͍॥؀Λ࡞Γ͍ͨɻ w ࡢࠓͷӡ༻๊͕͑ΔࣗಈԽ͸ιϑτ΢ΣΞνʔϜͷ֩৺Ͱ͋ΔܧଓతͳσϓϩΠ ΍ٛ຿Ͱ͋ΔܧଓతσϦόϦʔ͚ͩͰ͸͋Γ·ͤΜɻ͔͠΋ɺ͜ͷ෼໺ʹશͯ ͷ໰୊ΛҰڍʹղܾͯ͘͠ΕΔΧϦεϚతͳπʔϧ͸ଘࡏͤͣɻ͍͔ͭ͘ͷπʔ ϧΛ߹Θͤͯར༻͢Δ͜ͱʹͳΓɺ(Pݴޠ͸͞·͟·ͳπʔϧʹରԠ͓ͯ͠Γ

    ·͢ ͪͳΈʹɺγΣϧεΫϦϓτͷ஌ࣝ͸େࣄ ɻࣗ࡞Մೳɻ w Ϋϥ΢υωΠςΟϒͳੈքͰ͸ϓϩάϥϚϒϧʹ੍ޚͰ͖Δ 
 ൣғ͕(Pݴޠͩͱ޿͍ 
  8. ίϥϘϨʔγϣϯ w ։ൃऀʹ͸ӡ༻εΩϧ͕ඞཁͰ͢ɻ൴Βͷ੹೚͸ίʔυΛॻ͘͜ͱ͚ͩͰ͸ͳ͘ɺγε ςϜΛຊ൪؀ڥʹσϓϩΠͯ͠ΞϥʔτΛ؂ࢹ͢Δ͜ͱͰ͢ɻಉ༷ʹӡ༻ऀʹ΋։ൃͷ εΩϧ͕ඞཁͰ͢ɻຊ൪ΞϥʔτΛ؂ࢹ͢Δ͜ͱ͚ͩͰ͸ͳ͘ɺෆ۩߹͕ىͬͨ࣌͜ͷ ࣄ৅ͷೝࣝɺίʔυͷಛఆɺมߋͳͲͰ͖Ε͹ྑ͍ؔ܎ʹͳΔΜͰ͸ͳ͍Ͱ͠ΐ͏͔ʁ w ΋͠ɺ։ൃνʔϜͱӡ༻νʔϜ͕ಉ͡ϓϩάϥϛϯάݴޠͰ։ൃ͍ͯͨ͠Βૉ੖Β͍͠ ͱࢥ͍·ͤΜ͔ ·͊ͲΜͳݴޠͰ΋͍͍͚Ͳ

    ʁɻͦΕͦ͜ɺॻ੶Ͱ͔͠จࣈͱͯ͠ೝ ͔ࣝͯ͠͠ͳ͍։ൃνʔϜͱӡ༻νʔϜؒͷ૒ํ޲ͷίϥϘϨʔγϣϯ͕ൃشͤ͞ΕΔ ͷͰ͸ͳ͍Ͱ͠ΐ͏͔ʁ։ൃͱӡ༻͕ڠྗͯ͠πʔϧ΍஌ࣝ͸։ൃͱӡ༻ͷؒͷ͢΂ͯ Λ૒ํ޲ʹੜ͔͞Εͯ੒ޭ͸໿ଋ͞Εͨײ͕͖ͯ͡͠·ͤΜ͔ʁ 
  9. ղ૾౓ w (PͰ։ൃ͞Εͨੈքͷૉ੖Β͍͠πʔϧ΍ϛυϧ΢ΣΞͷ࣮૷͕ಡΊΔͱࣗ ෼ͷνʔϜͷ։ൃ΍ӡ༻ͷ໾ʹཱͭ͜ͱ΍ࣗ෼ࣗ਎ͷ࣮ྗʹͳΔ͜ͱ΋ଟ͘ ྑ͍॥؀͕·ΘΔΑ͏ʹͳΔɻ w ݱࡏɺ43&΍ΠϯϑϥΤϯδχΞ͕࢖͏ଟ͘ͷπʔϧ΍ϛυϧ΢ΣΞ͕(Pݴ ޠͰ։ൃ͞Ε͍ͯΔɻͦͷͨΊɺ(Pݴޠಛ༗ͷΤϥʔ΍ϩάͷϝοηʔδʹ ׳Ε͓ͯ͘͜ͱʹΑͬͯࠓ·ͰɺෆࢥٞͰҙຯͷͳ͔ͬͨจࣈྻ͕։ൃऀ͔Β ͷϝοηʔδʹݟ͖͑ͯͯσόοά࣌΍໰୊ൃੜ࣌ʹඇৗʹ໾ʹཱͪ·ͨ͠ɻ

    w πʔϧ΍ϛυϧ΢ΣΞΛ࢖͍ͬͯΔ࣌ͷղ૾౓͕άοͱ্͕ͬͨؾ͕͢Δ 
  10. %0/& ߴධՁˍνϟϯωϧొ࿥͓Ͷ͕͍͠·͢