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

Dapr の概念と実装から学ぶ
Observability への招待

nwiizo
February 28, 2022

Dapr の概念と実装から学ぶ
Observability への招待

Observability Conference 2022 2022/03/11(Fri)
Dapr の概念と実装から学ぶ
Observability への招待
https://event.cloudnativedays.jp/o11y2022/talks/1353

nwiizo

February 28, 2022
Tweet

More Decks by nwiizo

Other Decks in Technology

Transcript

  1. "CPVUεϦʔγΣΠΫ  w 43&ࢧԉٕज़ࢧԉαʔϏε w ٕज़ྗ͕ٻΊΒΕΔྖҬͰ๛෋ͳܦݧΛ࣋ͭ43&͕ू·ͬͨνʔϜʹΑΔ 
 ٕज़ࢧԉαʔϏεͰ͢ɻ w ηΩϡϦςΟ੬ऑੑ਍அαʔϏε

    w ܦݧ๛෋ͳηΩϡϦςΟઐ໳Ո͕وࣾͷ՝୊ʹ߹ΘͤͨηΩϡϦςΟରࡦΛ 
 ࢧԉ͢ΔαʔϏεͰ͢ɻ w Ϋϥ΢υܕ&5-σʔλύΠϓϥΠϯαʔϏε w σʔλϕʔεɾετϨʔδɾΞϓϦέʔγϣϯͳͲɺ͋ΒΏΔσʔλΛ 
 ౷߹ɾ࿈ܞ͢Δ͜ͱͰɺσʔλΛ׆༻ͨ͠Ϗδωεมֵʹߩݙ͠·͢ɻ w ϋΠεΩϧϑϦʔϥϯε঺հαʔϏε w ϓϩͷݱ໾ΤϯδχΞूஂ͕࠷దͳΤϯδχΞΛ঺հ͢Δ 
 ϑϦʔϥϯεΤϯδχΞ঺հαʔϏεͰ͢
  2. "CPVU4SFBLF 43&ࢧԉٕज़ࢧԉ 4SFBLF͸ۚ༥ɾҩྍɾಈը഑৴ɾ"*ɾήʔϜͳͲٕज़ྗ͕ٻΊΒΕΔྖҬͰ๛෋ͳܦݧΛ࣋ͭ43&͕ू·ͬͨνʔϜ ʹΑΔٕज़ࢧԉαʔϏεͰ͢ɻઓུࡦఆ͔Βઃܭɾߏஙɾӡ༻ɺ4BB4ఏڙ·Ͱɺ෯޿͍ྖҬΛαϙʔτ͠·͢ɻ  Sreake ྲྀ SRE Roadmap SRE

    ͷ։࢝ ·ͣ͸খ͘͞ɻ ޮՌ͕࠷େݶʹग़Δͱ͜Ζ ͔Βίπίπͱ࢝ΊΑ͏ SRE νʔϜͷఆٛ ૊৫ʹ͋ͬͨ SRE Λఆٛ͠Α͏ SRE࣮ફ SLIɾSLO ͷઃఆ Toil ࡟ݮ (ࣗಈԽਪਐ) SRE ͷൃలͱܧଓ SREͷจԽ͕ਁಁ͢Δ 
 Error Budget Λݩʹ
 ۀ຿Λίϯτϩʔϧ͍ͯ͘͠
  3. 4SFBLFͷΤϯδχΞʹΑΔٕज़ࢧԉ ٕज़ઓུ͔Βઃܭɺߏஙɺӡ༻·Ͱϫϯετοϓࢧԉ͢Δٕज़ࢧԉαʔϏε  ٕज़ઓུ ίϯαϧςΟϯά ߏங / ࣮૷ ࢧԉ Ξηεϝϯτ

    ʢύϑΥʔϚϯε / ηΩϡϦςΟʣ ӡ༻ࢧԉ γεςϜ ઃܭ .VMUJ$MPVE΍$MPVE/BUJWFͳઌਐతٕज़ٴͼେن໛ͳαʔϏεӡ༻ʹڧΈΛ࣋ͭΤϯδχΞʹΑΔٕज़ࢧԉ ϕϯμʔతͳ໾ׂͰ͸ͳ͘ʮ͓٬༷ͷνʔϜϝϯόʔʯͱ͍͏ཱͪҐஔͰ࠷৽ٕज़ͷఏҊ͔Βӡ༻ࢧԉ·ͰΛτʔλϧͰ
  4. %BQSͱ͸ʁ %BQSͷ໨ࢦ͢ͱ͜Ζ ͋ΒΏΔݴޠ΍ϑϨʔϜϫʔΫΛ࢖༻ͯ͠ɺ 
 ෼ࢄΞϓϦέʔγϣϯΛهड़͢Δ͜ͱ͕Մೳ ϕετϓϥΫςΟεͷϏϧσΟϯάϒϩοΫΛఏڙ͢Δ͜ͱͰɺϚΠΫϩαʔ Ϗε 
 ΞϓϦέʔγϣϯͷߏஙͰ։ൃऀ͕௚໘͢Δࠔ೉ͳ໰୊Λղܾ ίϛϡχςΟओಋͰɺΦʔϓϯ͔ͭϕϯμʔχϡʔτϥϧͰ͋Δ͜ͱ

    ৽ͨͳߩݙऀͷ֫ಘ Φʔϓϯ"1*ʹΑΔҰ؏ੑͱϙʔλϏϦςΟͷఏڙ Ϋϥ΢υ΍ΤοδͳͲɺϓϥοτϑΥʔϜʹͱΒΘΕͳ͍ ϕϯμϩοΫΠϯ͢Δ͜ͱͳ͘ɺ֦ுੑͱϓϥάΠϯՄೳͳίϯϙʔωϯτΛ ఏڙ͢Δ ߴ͍ύϑΥʔϚϯεͱܰྔԽʹΑΓɺ*P5΍ΤοδͷγφϦΦΛՄೳʹ͢Δ ࣮ߦ࣌ʹґଘ͢Δ͜ͱͳ͘ɺطଘͷίʔυ͔ΒΠϯΫϦϝϯλϧʹ࠾༻Ͱ͖Δ  IUUQTEPDTEBQSJPDPOUSJCVUJOHSPBENBQ
  5. ,VCFSOFUFT্Ͱಈ࡞͢Δ%BQS EBQSPQFSBUPS %BQSͷίϯϙʔωϯτΞοϓσʔτͱ ,VCFSOFUFTαʔϏεΤϯυϙΠϯτΛ؅ཧ EBQSTJEFDBSJOKFDUPS %BQSͷαΠυΧʔΛ஫ೖ͠·͢ EBQQMBDFNFOU ΞΫλʔΠϯελϯεΛϙουʹϚοϓ͢Δ 
 ϚοϐϯάςʔϒϧΛ࡞੒͠·͢

    EBQSTFOUSZ αʔϏεؒͷN5-4Λ؅ཧ͠ɺೝূہͱͯ͠ػೳ  IUUQTEPDTEBQSJPPQFSBUJPOTIPTUJOHLVCFSOFUFTLVCFSOFUFTPWFSWJFX IUUQTHJUIVCDPNLVCFSOFUFTTJHTDPOUSPMMFSSVOUJNF
  6. ϏϧσΟϯάϒϩοΫ αʔϏεؒݺͼग़͠ ঢ়ଶ؅ཧ 1VC4VC όΠϯμʔ ΞΫλʔ Մ؍ଌੑ γʔΫϨοτͷ؅ཧ ߏ੒ઃఆ 

    IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLT ػೳ͕·ͩগͳ͍ͷͰ͜Ε͚ͩͰ 
 શͯΧόʔ͢Δͷ͸·ͩ೉͍͠ͱࢥ͏
  7. %BQS4FOUSZNFUSJDT EBQS@TFOUSZ@DFSU@TJHO@SFRVFTU@SFDFJWFE@UPUBMɿ ड৴ͨ͠$43ͷ਺ɻ EBQS@TFOUSZ@DFSU@TJHO@TVDDFTT@UPUBMɿ ੒ޭͨ͠ূ໌ॻͷൃߦͷ਺ɻ EBQS@TFOUSZ@DFSU@TJHO@GBJMVSF@UPUBMɿ $43ʹॺ໊͢Δͱ͖ʹൃੜͨ͠Τϥʔͷ਺ɻ EBQS@TFOUSZ@TFSWFSDFSU@JTTVF@GBJMFE@UPUBMɿ αʔόʔͷ5-4ূ໌ॻͷൃߦʹࣦഊͨ͠ճ਺ɻ EBQS@TFOUSZ@JTTVFSDFSU@DIBOHFE@UPUBMɿ

    ൃߦऀূ໌ॻ·ͨ͸Ωʔ͕มߋ͞Εͨ৔߹ͷൃߦऀূ໌ॻͷߋ৽ճ਺ EBQS@TFOUSZ@JTTVFSDFSU@FYQJSZ@UJNFTUBNQɿ ൃߦऀϧʔτূ໌ॻͷ༗ޮظݶ͕੾ΕΔ6/*9λΠϜελϯϓʢඵ୯Ґʣɻ  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHTFOUSZNPOJUPSJOHNFUSJDTHP
  8. %BQS3VOUJNFNFUSJDTcH31$NFUSJDT H31$4FSWFSNFUSJDT EBQS@HSQD@JP@TFSWFS@SFDFJWFE@CZUFT@QFS@SQD@ ɿ ϝιου͝ͱͷ31$͝ͱͷड৴όΠτ਺ͷ෼෍ɻ EBQS@HSQD@JP@TFSWFS@TFOU@CZUFT@QFS@SQD@ ɿ ϝιου͝ͱͷ31$͝ͱͷ߹ܭૹ৴όΠτ਺ͷ෼෍ɻ EBQS@HSQD@JP@TFSWFS@TFSWFS@MBUFODZ@ ɿ

    αʔόʔͷϨΠςϯγʔͷϛϦඵ୯Ґͷ෼෍ʢϝιουผʣɻ EBQS@HSQD@JP@TFSWFS@DPNQMFUFE@SQDTɿ ϝιου͓Αͼεςʔλε͝ͱͷ31$ͷ਺ɻ  IUUQTHJUIVCDPNDFOTVTJOTUSVNFOUBUJPOPQFODFOTVTHPCMPCNBTUFSQMVHJOPDHSQDTFSWFS@NFUSJDTHP IUUQTHJUIVCDPNDFOTVTJOTUSVNFOUBUJPOPQFODFOTVTHPCMPCNBTUFSQMVHJOPDHSQDDMJFOU@NFUSJDTHP
  9. %BQSͷ5SBDJOHʹ͍ͭͯ %BQSͷ5SBDJOHʹؔͯ͠͸ 5SBDJOH5PPM͕ଘࡏ͢Δͱςϯγϣϯ্͕͕Δ 
 ݁ہ͸ɺϩά΍ઃఆϑΝΠϧΛಡΉ͜ͱͷํ͕ଟ͍ ΋ͬͱแׅతʹݟͨΓ܏޲ΛݟΔࡍʹඞཁͦ͏ʜ  "QQͷ5SBDJOH͸ ࣗલͷ࣮૷ͱ 


    %BQSEͱͷڠۀ͕͋Δ 
 ͜͜͸࿩͞ͳ͍ BOOPUBUJPOT EBQSJPDPO fi Hl[JQLJOz IUUQTHJUIVCDPNEBQSRVJDLTUBSUTCMPCNBTUFSPCTFSWBCJMJUZ3&"%.&NE [JQLJOͷઃఆ
  10. %BQSͷ5SBDJOHʹ͍ͭͯ  %BQSE͕USBDF*EΛੜ੒ͯ͠ͷ 
 ௨৴Λ௥͍ͬͯ͘͜ͱͰ࣮ݱ "11ଆͰ΋ར༻ՄೳͰ͸͋Δ͕ 8$ͷར༻͕ඞཁ [JQLJOͷઃఆ < <

    \ USBDF*EDECFECCED  JEEFB  LJOE$-*&/5  OBNFDBMMMPDBMIFMMPUSBDJOHOFXPSEFS  UJNFTUBNQ  EVSBUJPO  MPDBM&OEQPJOU\ TFSWJDF/BNFIFMMPUSBDJOH  JQW ^  UBHT\ EBQSBQJ1045WJOWPLFIFMMPUSBDJOHNFUIPEOFXPSEFS  EBQSQSPUPDPMIUUQ  EBQSTUBUVT@DPEF  OFUQFFSOBNFIFMMPUSBDJOH  PQFODFOTVTTUBUVT@EFTDSJQUJPO0,  SQDTFSWJDF4FSWJDF*OWPDBUJPO ^ ^ > > IUUQT[JQLJOJP[JQLJOBQJ IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLTPCTFSWBCJMJUZXDUSBDJOH