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. ೥݄೔0CTFSWBCJMJUZ$POGFSFODF!OXJJ[P %BQSͷ֓೦ͱ࣮૷͔ΒֶͿ 
 0CTFSWBCJMJUZ΁ͷট଴

  2. @nwiizo 26ࡀ ݽಠ੒ਓஉੑ 4৞൒ͷ෦԰ʹ͸ݒਨόʔ͕͋Γ ɹேɺى͖ δϜ΁ߦ͖ ຊΛಡΜͰ ࢓ࣄΛͯ͠ ɹ໷ɺ࠶ͼ δϜ΁ߦ͖

    ຊΛಡΜͰ ຾Δ͚ͩ ૐཿͷΑ͏ͳੜ׆Λͯ͠·͢
  3. ΞδΣϯμ w εϦʔγΣΠΫ ޿ࠂ  w %BQSͱ͸ʁ w %BQSͰͷ0CTFSWBCJMJUZ࣮૷

  4. εϦʔγΣΠΫʹ͍ͭͯ

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

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

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

    ʢύϑΥʔϚϯε / ηΩϡϦςΟʣ ӡ༻ࢧԉ γεςϜ ઃܭ .VMUJ$MPVE΍$MPVE/BUJWFͳઌਐతٕज़ٴͼେن໛ͳαʔϏεӡ༻ʹڧΈΛ࣋ͭΤϯδχΞʹΑΔٕज़ࢧԉ ϕϯμʔతͳ໾ׂͰ͸ͳ͘ʮ͓٬༷ͷνʔϜϝϯόʔʯͱ͍͏ཱͪҐஔͰ࠷৽ٕज़ͷఏҊ͔Βӡ༻ࢧԉ·ͰΛτʔλϧͰ
  8. 4SFBLF43&ಋೖఆணԽࢧԉ &OUFSQSJTFΛத৺ʹ༷ʑͳۀछۀքͰ43&Λ࣮ફ͖ͯͨ͠ 
 φϨοδΛ׆͔ͨ͠43&νʔϜͷಋೖٴͼఆணԽΛߦ͍·͢  43&ͷ૊੒43&จԽͷఆணԽͷҝͷࢧԉ ͓٬༷ͷ૊৫ʹద߹ͨ͠43&ͷಋೖΛࢧԉ IUUQTTSFBLFDPNDPOUBDU ͓໰͍߹ͤ

  9. 4FDVSJGZ 4FDVSJGZʢηΩϡϦϑΝΠʣͱ͸ 4FDVSJGZʢηΩϡϦϑΝΠʣ͸ɺ਍அର৅Λొ࿥͢ΔͱΫϥ΢υ্Ͱ੬ऑੑ਍அΛ 
 ࣮ࢪɺ਍அ݁ՌҰཡͱվળํ๏Λ෼͔Γ΍͘͢ఏࣔ͠·͢ 4FDVSJGZ։ൃʹ͓͚Δ૝͍ اۀ͕ɺ։ൃɾϦϦʔεεϐʔυΛམͱͣ͞ɺखܰʹʢඅ༻ɾ࣌ؒΛ͔͚ͣʣࣾ಺ͰηΩϡϦςΟ਍அΛ࣮ࢪ 
 ʢʹ%FW4FD0QTΛ࣮ݱʣ͠ɺαʔϏεΛఏڙ͢Δ͜ͱ͕ɺاۀɾΤϯυϢʔβʔͷརӹΛ࠷େԽ͍ͯ͘͜͠ͱʹͳΔͱ ߟ͍͑ͯ·͢ɻ͜ΕΛՄೳʹ͢Δπʔϧʮ4FDVSJGZʢηΩϡϦϑΝΠʣʯΛ։ൃ

     Beta ൛ ແঈఏڙ࣮ࢪதʂʂ
  10. ࿩͞ͳ͍͜ͱ $MPVE/BUJWFͳ0CTFSWBCJMJUZ %BQSͰͷΞϓϦέʔγϣϯ࣮૷ ৄࡉͳγεςϜΞʔΩςΫνϟ ຊ೔͓࿩͢Δ಺༰ ࿩͢͜ͱ %BQSͱ͸ʁ %BQSͷ֤छػೳ %BQSͷ0CTFSWBCJMJUZʹ͍ͭͯ 

  11. %BQSͱ͸ʁ

  12. %BQSͱ͸ʁ %JTUSJCVUFE"QQMJDBUJPO3VOUJNFͷུ 
 %BQSͷಛ௃ αΠυΧʔ EBQSE ʹΑΓ೚ҙͷ։ൃݴޠ΍ϑϨʔϜϫʔΫͰ։ൃՄೳ ϕετϓϥΫςΟεΛϏϧσΟϯάϒϩοΫͱͯ͠ఏڙ 

  13. %BQSʹ͓͚ΔαΠυΧʔΞʔΩςΫνϟ %BQSͷଟ༷ੑ %BQSαΠυΧʔʹΑΓɺ)551H31$Ͱͷ௨ ৴͕ՄೳͰ͋Ε͹։ൃ͕Ͱ͖Δ ެࣜ4%,΋ఏڙ͞Ε͍ͯΔ +BWBTEL 1ZUIPOTEL %PUOFUTEL +TTEL (PTEL

    $QQTEL 1)14%, 8*13VTUTEL 
  14. %BQSͱ͸ʁ %BQSͷ໨ࢦ͢ͱ͜Ζ ͋ΒΏΔݴޠ΍ϑϨʔϜϫʔΫΛ࢖༻ͯ͠ɺ 
 ෼ࢄΞϓϦέʔγϣϯΛهड़͢Δ͜ͱ͕Մೳ ϕετϓϥΫςΟεͷϏϧσΟϯάϒϩοΫΛఏڙ͢Δ͜ͱͰɺϚΠΫϩαʔ Ϗε 
 ΞϓϦέʔγϣϯͷߏஙͰ։ൃऀ͕௚໘͢Δࠔ೉ͳ໰୊Λղܾ ίϛϡχςΟओಋͰɺΦʔϓϯ͔ͭϕϯμʔχϡʔτϥϧͰ͋Δ͜ͱ

    ৽ͨͳߩݙऀͷ֫ಘ Φʔϓϯ"1*ʹΑΔҰ؏ੑͱϙʔλϏϦςΟͷఏڙ Ϋϥ΢υ΍ΤοδͳͲɺϓϥοτϑΥʔϜʹͱΒΘΕͳ͍ ϕϯμϩοΫΠϯ͢Δ͜ͱͳ͘ɺ֦ுੑͱϓϥάΠϯՄೳͳίϯϙʔωϯτΛ ఏڙ͢Δ ߴ͍ύϑΥʔϚϯεͱܰྔԽʹΑΓɺ*P5΍ΤοδͷγφϦΦΛՄೳʹ͢Δ ࣮ߦ࣌ʹґଘ͢Δ͜ͱͳ͘ɺطଘͷίʔυ͔ΒΠϯΫϦϝϯλϧʹ࠾༻Ͱ͖Δ  IUUQTEPDTEBQSJPDPOUSJCVUJOHSPBENBQ
  15. ෼ࢄγεςϜʹ͓͚ΔσβΠϯύλʔϯͷҰͭ αΠυΧʔ͸ɺΞϓϦέʔγϣϯίϯςφΛ֦ுͯ͠ɺػೳΛ௥ Ճ͠·͢ɻαΠυΧʔΛ࢖༻ͯ͠طଘͷϨΨγʔΞϓϦέʔγϣ ϯͳͲʹ΋ద༻Ͱ͖·͢ɻಉ༷ʹɺ͜ΕΒΛ࢖༻ͯ͠ɺҰൠతͳ ػೳͷ࣮૷Λඪ४Խ͢ΔίϯςφΛ࡞੒͢Δ͜ͱ΋Ͱ͖·͢ɻ  αΠυΧʔύλʔϯͱ͸ʁ

  16. ,VCFSOFUFT্Ͱಈ࡞͢Δ%BQS EBQSPQFSBUPS %BQSͷίϯϙʔωϯτΞοϓσʔτͱ ,VCFSOFUFTαʔϏεΤϯυϙΠϯτΛ؅ཧ EBQSTJEFDBSJOKFDUPS %BQSͷαΠυΧʔΛ஫ೖ͠·͢ EBQQMBDFNFOU ΞΫλʔΠϯελϯεΛϙουʹϚοϓ͢Δ 
 ϚοϐϯάςʔϒϧΛ࡞੒͠·͢

    EBQSTFOUSZ αʔϏεؒͷN5-4Λ؅ཧ͠ɺೝূہͱͯ͠ػೳ  IUUQTEPDTEBQSJPPQFSBUJPOTIPTUJOHLVCFSOFUFTLVCFSOFUFTPWFSWJFX IUUQTHJUIVCDPNLVCFSOFUFTTJHTDPOUSPMMFSSVOUJNF
  17. ϏϧσΟϯάϒϩοΫ ϏϧσΟϯάϒϩοΫ Ұൠతʹ͸γεςϜΞʔΩςΫνϟΛߏ੒͢Δཁૉ %BQSͰ͸ར༻Մೳͳػೳ܈ͷ͜ͱΛࢦ͢৔߹͕ଟ͍ ϚΠΫϩαʔϏεͷϕετϓϥΫςΟεΛମܥԽͯ͠ػೳͱ࣮ͯ͠૷͞ΕͯΔ αΠυΧʔͷ)551H31$Λݺͼग़ͯ͜͠ΕΒΛར༻͢Δ͜ͱ͕Ͱ͖Δ ίϯϙʔωϯτ ϏϧσΟϯάϒϩοΫͰར༻͞ΕΔػೳϞδϡʔϧ ҰͭҎ্ͷෳ਺ͷίϯϙʔωϯτΛ࢖༻Մೳ *'͕༻ҙ͞Ε͍ͯΔͷͰ͜ΕΒʹ߹ΘͤͯػೳΛ࣮૷

    ౷Ұ͞ΕͨΤϯυϙΠϯτ͕ར༻Ͱ͖ΔͷͰΞϓϦଆʹෳࡶੑΛ๊͑ࠐ·ͳ͍  IUUQTHJUIVCDPNEBQSDPNQPOFOUTDPOUSJC IUUQTEPDTEBQSJPDPODFQUTCVJMEJOHCMPDLTDPODFQU
  18. ϏϧσΟϯάϒϩοΫ ೥݄ͰͭͷϏϧσΟϯάϒϩοΫ͕༻ҙ͞Ε͍ͯΔ 

  19. %BQSͷ֤छػೳ

  20. ϏϧσΟϯάϒϩοΫ αʔϏεؒݺͼग़͠ ঢ়ଶ؅ཧ 1VC4VC όΠϯμʔ ΞΫλʔ Մ؍ଌੑ γʔΫϨοτͷ؅ཧ ߏ੒ઃఆ 

    IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLT ػೳ͕·ͩগͳ͍ͷͰ͜Ε͚ͩͰ 
 શͯΧόʔ͢Δͷ͸·ͩ೉͍͠ͱࢥ͏
  21. αʔϏεؒͰͷݺͼग़͠ w αʔϏεؒͰϝιουΛ௚઀ɺ҆શʹݺͼग़࣮ͯ͠ߦ͠·͢  ࢿྉ༻ެࣜυΩϡϝϯτ͕࠷ߴͳͷͰಡΜ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FSWJFX ࢿྉ༻ެࣜυΩϡϝϯτ͕࠷ߴͳͷͰಡΜͰ DMJFOU3FHJTUFS"DUPS3FNJOEFS DUYDPOUFYU$POUFYU JO 3FHJTUFS"DUPS3FNJOEFS3FRVFTU 

    DMJFOU3FHJTUFS"DUPS5JNFS DUYDPOUFYU$POUFYU JO 3FHJTUFS"DUPS5JNFS3FRVFTU
  26. Մ؍ଌੑ Մ؍ଌੑͷγεςϜʹ͍ͭͯ 5SBDJOH͸ࣗಈ͔खಈ͔બ୒ αʔϏεؒͰτϨʔείϯςΩετΛ ࣗಈͰੜ੒ͯ͠఻೻ τϨʔείϯςΩετΛੜ੒͠ɺτϨ ʔείϯςΩετΛผͷαʔϏεʹ఻ ೻͕ඞཁ -PHHJOH͸ͦΕͧΕ .FUSJD͸αΠυΧʔ͔ΒऔಘՄೳ

     IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLTPCTFSWBCJMJUZUSBDJOHPWFSWJFX ࢿྉ༻ެࣜυΩϡϝϯτ͕࠷ߴͳͷͰಡΜͰ
  27. γʔΫϨοτͷ؅ཧ ֎෦γεςϜ΁ΞΫηε͢ΔͨΊͷ,FZ΍5PLFOΛ؅ཧ ֎෦࿈ܞ΋͋Γ  IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLTTFDSFUTTFDSFUTPWFSWJFX ࢿྉ༻ެࣜυΩϡϝϯτ͕࠷ߴͳͷͰಡΜͰ DMJFOU(FU4FDSFU DUY TUPSFOBNF TFDSFUOBNF

    PQU
  28. ߏ੒ઃఆ ઀ଓ৘ใ΍ΤϯυϙΠϯτͳͲΛ؅ཧ  IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLTDPO fi HVSBUJPODPO fi HVSBUJPOBQJPWFSWJFX ࢿྉ༻ެࣜυΩϡϝϯτ͕࠷ߴͳͷͰಡΜͰ DMJFOU(FU$PO

    fi HVSBUJPO*UFN DUY TUPSF/BNF LFZ PQU EBQSHPTEL͸ରԠத
  29. %BQSͷ0CTFSWBCJMJUZʹ͍ͭͯ

  30. 0CTFSWBCJMJUZͷ͓͞Β͍ 5FMFNFUSZ 0CTFSWBCJMJUZΛ࣮ݱ͢ΔπʔϧʹٻΊΒΕΔཁૉ .FUSJDT αʔϏεΛఆྔతʹ਺஋ͱͯ͠ܭଌ -PHHJOH ίϯϙʔωϯτʹର͢ΔΠϕϯτΛه࿥ 5SBDJOH ϦΫΤετʹର͢ΔΠϕϯτΛه࿥ 

    IUUQTEPDTEBQSJPDPODFQUTPCTFSWBCJMJUZDPODFQU
  31. %BQSͷ0CTFSWBCJMJUZʹ͍ͭͯ  .FUSJDT -PHHJOH 5SBDJOH .FUSJDT -PHHJOH 5SBDJOH %BQSͷ֤ཁૉʹ͍ͭͯͷ঺հ ,VCFSOFUFTҎ֎ͷج൫Ͱͷݕূٴͼௐࠪ͸࣮ࢪ͍ͯ͠ͳ͍

  32. %BQSͷ0CTFSWBCJMJUZͷಛ௃ʹ͍ͭͯ %BQSΛར༻͢Δ͜ͱͰ0CTFSWBCJMJUZͷඪ४Խ αΠυΧʔσβΠϯύλʔϯʹ࣮ͯ૷ %BQS͸αΠυΧʔͷػೳΛར༻ͯ͠ 
 0CTFSWBCJMJUZͷػೳ΋֦ு͓ΑͼɺػೳΛ௥Ճ 
 %BQS͸ΞϓϦʹରͯ͠αΠυΧʔΛ࢖༻ͯ͠ 
 0CTFSWBCJMJUZͷҰൠԽඪ४Խ

    
  33. %BQSͷ0CTFSWBCJMJUZͷઃఆʹ͍ͭͯ ,VCFSOFUFT4JEFDBSͷ%BQSͷߏ੒ͱ 
 ΞϓϦέʔγϣϯͷΦϓγϣϯΛઃఆ͢Δ͜ͱ͕ 
 BOOPUBUJPOTΛར༻ͯ͠Ͱ͖·͢ɻ ·ͨɺ֤छͷઃఆ͸$3%ʹ࣮ͯߦ͞Ε͍ͯͯ 
 ZBNMʹͯઃఆՄೳ 


     IUUQTEPDTEBQSJPPQFSBUJPOTDPO fi HVSBUJPODPO fi HVSBUJPOPWFSWJFX IUUQTHJUIVCDPNEBQSEBQSUSFFNBTUFSDIBSUTEBQSDSET
  34. %BQSͷ.FUSJDT

  35. %BQSͷ.FUSJDTʹ͍ͭͯ %BQSͷಈ࡞ΛΑΓਂ͘ཧղ͢Δҝʹ.FUSJDTΛར༻͢Δ͜ͱ͕Ͱ͖Δ 
 %BQSαΠυΧʔϓϩΩγͰ͸.FUSJDT͕σϑΥϧτͰ͸ແޮ 
 EBQSTJEFDBSJOKFDUPS͕ઃఆΛಡΈऔΓσϓϩΠͯ͘͠ΕΔ 
  BOOPUBUJPOT EBQSJPFOBCMFNFUSJDTUSVF

    EBQSJPNFUSJDTQPSU "QQͷ.FUSJDT͸ ࣗલͷ࣮૷͕ඞཁ 
 ͜͜͸࿩͞ͳ͍ IUUQTEPDTEBQSJPPQFSBUJPOTNPOJUPSJOHNFUSJDTHSBGBOB
  36. %BQSNFUSJDT %BQSͷ.FUSJDT͸σϑΥϧτͰԼهͷΑ͏ͳ΋ͷΛऔಘ͠·͢ %BQSϝτϦοΫ໊͸[email protected]͔Β࢝·Γ·͢ %BQS$PNNPONFUSJDT %BQS0QFSBUPSNFUSJDT %BQS4JEFDBS*OKFDUPSNFUSJDT %BQS1MBDFNFOUNFUSJDT %BQS4FOUSZNFUSJDT %BQS3VOUJNFNFUSJDT 

    IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSEPDTEFWFMPQNFOUEBQSNFUSJDTNE
  37. %BQS$PNNPONFUSJDT ԼهͷΑ͏ͳϥΠϒϥϦʔΛར༻͍ͯ͠Δ [email protected]  QSPNFUIFVTQSPDFTTDPMMFDUPS IUUQTHJUIVCDPNQSPNFUIFVT[email protected]CMPCNBJOQSPNFUIFVT[email protected]HP [email protected]  QSPNFUIFVTHPDPMMFDUPS IUUQTHJUIVCDPNQSPNFUIFVT[email protected]CMPCNBJOQSPNFUIFVT[email protected]HP

    
  38. %BQS0QFSBUPSNFUSJDT [email protected]@[email protected]@UPUBMɿ ࡞੒͞ΕͨEBQSαʔϏεͷ૯਺ɻ [email protected]@[email protected]@UPUBMɿ ࡟আ͞ΕͨEBQSαʔϏεͷ૯਺ɻ [email protected]@[email protected]@UPUBMɿ ߋ৽͞ΕͨEBQSαʔϏεͷ૯਺ɻ  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHPQFSBUPSNPOJUPSJOHNFUSJDTHP

  39. %BQS4JEFDBS*OKFDUPSNFUSJDT [email protected]@[email protected][email protected]ɿ αΠυΧʔΠϯδΣΫγϣϯϦΫΤετͷ૯਺ɻ [email protected]@[email protected][email protected]ɿ ੒ޭͨ͠αΠυΧʔΠϯδΣΫγϣϯͷ૯਺ɻ [email protected]@[email protected][email protected]ɿ ࣦഊͨ͠αΠυΧʔΠϯδΣΫγϣϯͷ૯਺ɻ  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHJOKFDUPSNPOJUPSJOHNFUSJDTHP

  40. %BQS1MBDFNFOUNFUSJDT BDUPSपΓ [email protected]@[email protected]ɿ ϓϨʔεϝϯταʔϏεʹใࠂ͞Εͨϗετͷ૯਺ɻ [email protected]@[email protected]ɿ ϓϨʔεϝϯταʔϏεʹใࠂ͞ΕͨΞΫλʔϥϯλΠϜͷ૯਺ɻ  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHQMBDFNFOUNPOJUPSJOHNFUSJDTHP

  41. %BQS4FOUSZNFUSJDT [email protected]@[email protected]@[email protected]@UPUBMɿ ड৴ͨ͠$43ͷ਺ɻ [email protected]@[email protected]@[email protected]ɿ ੒ޭͨ͠ূ໌ॻͷൃߦͷ਺ɻ [email protected]@[email protected]@[email protected]ɿ $43ʹॺ໊͢Δͱ͖ʹൃੜͨ͠Τϥʔͷ਺ɻ [email protected]@[email protected]@[email protected]ɿ αʔόʔͷ5-4ূ໌ॻͷൃߦʹࣦഊͨ͠ճ਺ɻ [email protected]@[email protected]@UPUBMɿ

    ൃߦऀূ໌ॻ·ͨ͸Ωʔ͕มߋ͞Εͨ৔߹ͷൃߦऀূ໌ॻͷߋ৽ճ਺ [email protected]@[email protected]@UJNFTUBNQɿ ൃߦऀϧʔτূ໌ॻͷ༗ޮظݶ͕੾ΕΔ6/*9λΠϜελϯϓʢඵ୯Ґʣɻ  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHTFOUSZNPOJUPSJOHNFUSJDTHP
  42. %BQS3VOUJNFNFUSJDTc$PNQPOFOU $PNQPOFOU [email protected]@[email protected]ɿ ਖ਼ৗʹϩʔυ͞Εͨίϯϙʔωϯτͷ਺ [email protected]@[email protected]@UPUBMɿ ॳظԽ͞Εͨίϯϙʔωϯτͷ਺ [email protected]@[email protected]@[email protected]ɿ ίϯϙʔωϯτͷॳظԽͷࣦഊͷ਺  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHEJBHOPTUJDT[email protected]HP

  43. %BQS3VOUJNFNFUSJDTc4FDVSJUZ 4FDVSJUZ [email protected]@[email protected]@UPUBMɿ ੒ޭͨ͠N5-4ΦʔηϯςΟέʔλʔͷॳظԽͷ਺ɻ [email protected]@[email protected]@[email protected]ɿ N5-4ΦʔηϯςΟέʔλʔͷॳظԽͷࣦഊͷ਺ [email protected]@[email protected]@[email protected]@UPUBMɿ ੒ޭͨ͠ϫʔΫϩʔυূ໌ॻϩʔςʔγϣϯͷ਺ [email protected]@[email protected]@[email protected]@[email protected]ɿ ࣦഊͨ͠ϫʔΫϩʔυূ໌ॻͷϩʔςʔγϣϯͷ਺

     IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHEJBHOPTUJDT[email protected]HP
  44. %BQS3VOUJNFNFUSJDTc"DUPST "DUPST [email protected]@[email protected]@[email protected]ɿ ϓϨʔεϝϯταʔϏε΁ͷ੒ޭͨ͠εςʔλεϨϙʔτͷ਺ɻ [email protected]@[email protected]@[email protected]@UPUBMɿ ϓϨʔεϝϯταʔϏε΁ͷࣦഊͨ͠εςʔλεϨϙʔτͷ਺ [email protected]@[email protected]@[email protected]@UPUBMɿड৴ͨ͠ΞΫλʔ഑ஔςʔϒϧૢ࡞ͷ਺ɻ [email protected]@[email protected]@UPUBMɿΞΫλʔͷϦόϥϯεཁٻͷ਺ɻ [email protected]@[email protected]@UPUBMɿΞΫλʔͷΞΫςΟϒԽͷ਺ɻ [email protected]@[email protected]@[email protected]ɿΞΫλʔͷΞΫςΟϒԽͷࣦഊͷ਺ɻ

    [email protected]@[email protected]@UPUBMɿ੒ޭͨ͠ΞΫλʔͷඇΞΫςΟϒԽͷ਺ɻ [email protected]@[email protected]@[email protected]ɿࣦഊͨ͠ΞΫλʔͷඇΞΫςΟϒԽͷ਺ɻ  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHEJBHOPTUJDT[email protected]HP
  45. %BQS3VOUJNFNFUSJDTcH31$NFUSJDT H31$4FSWFSNFUSJDT [email protected]@[email protected]@[email protected]@[email protected]@ ɿ ϝιου͝ͱͷ31$͝ͱͷड৴όΠτ਺ͷ෼෍ɻ [email protected]@[email protected]@[email protected]@[email protected]@ ɿ ϝιου͝ͱͷ31$͝ͱͷ߹ܭૹ৴όΠτ਺ͷ෼෍ɻ [email protected]@[email protected]@[email protected]@ ɿ

    αʔόʔͷϨΠςϯγʔͷϛϦඵ୯Ґͷ෼෍ʢϝιουผʣɻ [email protected]@[email protected]@[email protected]ɿ ϝιου͓Αͼεςʔλε͝ͱͷ31$ͷ਺ɻ  IUUQTHJUIVCDPNDFOTVTJOTUSVNFOUBUJPOPQFODFOTVTHPCMPCNBTUFSQMVHJOPDHSQD[email protected]HP IUUQTHJUIVCDPNDFOTVTJOTUSVNFOUBUJPOPQFODFOTVTHPCMPCNBTUFSQMVHJOPDHSQD[email protected]HP
  46. %BQS3VOUJNFNFUSJDTcH31$NFUSJDT H31$$MJFOUNFUSJDT [email protected]@[email protected]@[email protected]@[email protected]ɿ ϝιου͝ͱͷ31$͝ͱʹૹ৴͞ΕΔόΠτͷ෼෍ɻ [email protected]@[email protected]@SFD[email protected]@[email protected]@ ɿ ϝιου͝ͱͷ31$͝ͱʹड৴ͨ͠όΠτͷ෼෍ɻ [email protected]@[email protected]@[email protected]@ ɿ ϝιου͓Αͼεςʔλε͝ͱͷ31$ͷ਺ɻ

     IUUQTHJUIVCDPNDFOTVTJOTUSVNFOUBUJPOPQFODFOTVTHPCMPCNBTUFSQMVHJOPDHSQD[email protected]HP IUUQTHJUIVCDPNDFOTVTJOTUSVNFOUBUJPOPQFODFOTVTHPCMPCNBTUFSQMVHJOPDHSQD[email protected]HP
  47. %BQS3VOUJNFNFUSJDTc)551NFUSJDT 4FSWFS.FUSJDT [email protected]@[email protected]@DPVOUɿ αʔόʔͰ։࢝͞Εͨ)551ϦΫΤετͷ਺ [email protected]@[email protected]@CZUFTɿ αʔόʔͰ$POUFOU-FOHUIʢඇѹॖʣͱͯ͠ઃఆ͞Ε͍ͯΔ৔߹ͷ)551ϦΫΤετͷຊจαΠζ [email protected]@[email protected]@CZUFTɿ αʔόʔͷ)551Ԡ౴ຊจαΠζʢඇѹॖʣɻ [email protected]@[email protected]ɿ αʔόʔͰͷ)551ϦΫΤετͷΤϯυπʔΤϯυͷϨΠςϯγɻ

     IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHEJBHOPTUJDT[email protected]HP
  48. %BQSͷNFUSJDT EBQSEBQSQLHNFUSJDT EBQSEBQSQLHEJBHOPTUJDTʹ 
 EBQSEBQSQLH NPOJUPSJOHNFUSJDTHPͳͲ.FUSJDTͷ࣮૷ PQFODFOTVT͔ΒPQFO5FMFNFUSZ΁ͷҠߦ͸ܭըతʹߦΘΕ͍ͯΔ  IUUQTHJUIVCDPNEBQSEBQSCMPCNBTUFSQLHNFUSJDTFYQPSUFSHP

  49. %BQSͷ-PHHJOH

  50. %BQSͷ-PHHJOHʹ͍ͭͯ %BQSͰ͸ɺ͢΂ͯͷ%BQSϓϩηεʢϥϯλΠϜ͓ΑͼγεςϜαʔϏεʣ͸ 
 ίϯιʔϧʹॻ͖ࠐΈ·͢ɻϓϨʔϯςΩετ·ͨ͸+40/ܗࣜͷ͍ͣΕ͔ͱ ͯ͠TUEPVUʹߏ଄ԽϩάΛੜ੒͠·͢ɻ  "QQͷ-PHHJOH͸ ࣗલͷ࣮૷͕ඞཁ 
 ͜͜͸࿩͞ͳ͍

    IUUQTHJUIVCDPNEBQSLJUUSFFNBJOMPHHFS %BQSEͷ-PHHJOH͸ σϑΥϧτͰ༗ޮ 1MBOF KTPOͷબ୒Մೳ BOOPUBUJPOT EBQSJPMPHBTKTPOlUSVF
  51. %BQSMPHHJOHc-PHTDIFNB %BQSE͸ΞϓϦଆͰผ్ੜ੒͕ඞཁͱͳΔ 
 -PHDPMMFDUPST΍4FBSDIFOHJOFT͸೚ҙͷ΋ͷΛ࢖༻Մೳ EBQSLJUͷMPHHFS഑Լʹ͋Δ-PHHFSͷ 
 ઃఆΛར༻͍ͯ͠Δ  IUUQTEPDTEBQSJPPQFSBUJPOTNPOJUPSJOHMPHHJOHMPHTMPHTDIFNB

  52. %BQSMPHHJOHc-PHTDIFNB %BQSʹ΋MPHMFWFM͕͋Δ  IUUQTEPDTEBQSJPPQFSBUJPOTUSPVCMFTIPPUJOHMPHTUSPVCMFTIPPUJOH 1.error 2.warn 3.info 4.debug %BQSE΋֤छΦϖϥʔλʔ΋ 


    ͜ͷϩάϨϕϧͰϩάͷग़ྗΛ 
 ߦ͏ͷͰઃఆ͕ඞཁ
  53. %BQSͷ5SBDJOH

  54. %BQSͷ5SBDJOHʹ͍ͭͯ %BQSͷτϨʔεػೳΛ࢖༻ͯ͠ɺ 
 ෼ࢄΞϓϦέʔγϣϯͷՄࢹԽͰ͖Δ %BQS͸ɺ)551H31$ϛυϧ΢ΣΞ Λ%BQSαΠυΧʔʹ௥Ճ͠·͢ɻϛυ ϧ΢ΣΞ͸ɺ͢΂ͯͷ%BQS͓ΑͼΞϓ ϦέʔγϣϯτϥϑΟοΫΛΠϯλʔη ϓτ͠ɺ෼ࢄτϥϯβΫγϣϯΛτϨʔ ε͢ΔͨΊʹ૬ؔ*%Λࣗಈతʹੜ੒͠·

    ͢ɻ  IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLTPCTFSWBCJMJUZUSBDJOHPWFSWJFX
  55. %BQSͷ5SBDJOHʹ͍ͭͯ ϝϦοτ ϝτϦΫεಉ༷ίʔυͷมߋ͕ෆཁ ϚΠΫϩαʔϏεؒͰҰ؏ͨ͠ڍಈΛ͢ΔͷͰ 
 ֤ݴޠͷڍಈ΍ϥΠϒϥϦʹґଘ͠ͳ͍ ;JQLJO"1*ͱ0QFO5FMFNFUSZ$PMMFDUPSΛ׆༻ ෳ਺ͷΤΫεϙʔλʔΛಉ࣌ʹఆٛͯ͠༗ޮʹ͢Δ ͜ͱ͕Ͱ͖·͢ɻ 


     IUUQTEPDTEBQSJPEFWFMPQJOHBQQMJDBUJPOTCVJMEJOHCMPDLTPCTFSWBCJMJUZUSBDJOHPWFSWJFX
  56. %BQSͷ5SBDJOHʹ͍ͭͯ %BQSͷ5SBDJOHʹؔͯ͠͸ 5SBDJOH5PPM͕ଘࡏ͢Δͱςϯγϣϯ্͕͕Δ 
 ݁ہ͸ɺϩά΍ઃఆϑΝΠϧΛಡΉ͜ͱͷํ͕ଟ͍ ΋ͬͱแׅతʹݟͨΓ܏޲ΛݟΔࡍʹඞཁͦ͏ʜ  "QQͷ5SBDJOH͸ ࣗલͷ࣮૷ͱ 


    %BQSEͱͷڠۀ͕͋Δ 
 ͜͜͸࿩͞ͳ͍ BOOPUBUJPOT EBQSJPDPO fi Hl[JQLJOz IUUQTHJUIVCDPNEBQSRVJDLTUBSUTCMPCNBTUFSPCTFSWBCJMJUZ3&"%.&NE [JQLJOͷઃఆ
  57. %BQSͷ5SBDJOHʹ͍ͭͯ %BQSͷ5SBDJOHʹؔͯ͠͸ 5SBDJOH$PMMFDUPSʹ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