Slide 1

Slide 1 text

θϩ͔Β૑ΔԣஅSREνʔϜ ~௅ઓͱਐԽ~ ʮ2024/12/18 ौ୩ͰSREେ๨೥ձiʯ ϑΝΠϯσΟגࣜձࣾ ϓϩμΫτ։ൃ෦/SRE ҆ୡ ྋ(@adachin0817)

Slide 2

Slide 2 text

ࣗݾ঺հ

Slide 3

Slide 3 text

3 ࣗݾ঺հ ҆ୡ ྋ(@adachin0817) ɾϑΝΠϯσΟ(ג) / ϓϩμΫτ։ൃ෦/Senior SRE ɾBlog: blog.adachin.me/wiki.adachin.me ɾTechBull(ٕज़ίϛϡχςΟ) techbull.cloud ɹɾʮSRE/ۦ͚ग़͠ΤϯδχΞͷϝϯλϦϯά ྦྷܭ300໊↑ʯ ɾ͔ͭͯ͸OSS൛VulsͷίϯτϦϏϡʔλʔ΍Πϕϯτओ࠵ͳͲ ɾ89೥ੜ·Εɺ౦ژ౎଍ཱ۠ग़਎Ͱ࡛ۄݝय़೔෦ࢢ͕஍ݩ ɾ࠺ͱϑϨϯνϒϧυοάͷࣂ͍ओͰ΋͋Δ

Slide 4

Slide 4 text

ձࣾ঺հ

Slide 5

Slide 5 text

5

Slide 6

Slide 6 text

ͪͳΈʹ

Slide 7

Slide 7 text

srestͷॴײϒϩάॻ͍͍ͯΔͷͰࢀߟʹʂ

Slide 8

Slide 8 text

͋Ε͔Β൒೥ܦͪ·ͨ͠ ৼΓฦΓ·͢ʂ✊

Slide 9

Slide 9 text

ԣஅSREνʔϜൃ଍

Slide 10

Slide 10 text

ԣஅSREνʔϜ্ཱͪ͛ʹ͍ͭͯ ● ڈ೥·ͰόοΫΤϯυνʔϜ͕ΠϯϑϥΛ୲౰͍ͯͨ͠(~2023) ○ αʔϏεͷ֦େʹ൐͍ɺόοΫΤϯυνʔϜͷϦιʔε͕ෆ଍ ○ SREతͳվળ͕े෼ʹߦ͑ͳ͍ঢ়گ͕ଓ͍͍ͯͨͨΊɺԣஅSREνʔϜ͕ൃ଍ ○ ݩʑόοΫΤϯυͰΠϯϑϥ୲౰͍ͯͨ͠ϝϯόʔ͸Embedded SREͱͯ͠ࢀՃ ● ԣஅSREνʔϜ͸ݱࡏ4໊Ͱ׆ಈ(2024~) ○ ϦʔμʔɺγχΞ໊̎ɺδϡχΞ1໊🎉 ○ Embedded SRE͸4໊ ○ GitHubͷΧϯόϯํࣜͰλεΫ؅ཧ͓ͯ͠Γɺேձ͸30෼Ͱ׬݁ ○ Findy Team+ͷ׆༻ 10

Slide 11

Slide 11 text

ԣஅSREνʔϜͷҐஔ͚ͮͱϛογϣϯ ● SREͷଘࡏҙٛ ○ SRE͸ಓΛ࡞ΔͨΊʹଘࡏ͢Δ(։ൃͷεϐʔυͱ҆શੑΛཱ྆) ○ ϦεΫΛड͚ೖΕɺ؅ཧ͢Δ(ো֐ͷϦεΫΛ࠷খݶʹ཈͑ͭͭɺޮ཰తͳӡ༻Λ໨ࢦ͢) ○ SLOΛܭଌ͢Δ(৴པੑͷόϥϯεΛऔΔͨΊͷج४Λࡦఆ) ○ τΠϧͷ࡟ݮͱࣗಈԽ(Ձ஋ͷߴ͍ۀ຿ʹूதͰ͖Δ؀ڥΛఏڙ) ○ ϓϩμΫτͷࢧԉ(։ൃεϐʔυͱ৴པੑͷόϥϯεΛอͭͨΊʹٕज़ࢧԉ) ○ ηΩϡϦςΟͷՄࢹԽͱڧԽ(଺ࡏతͳϦεΫΛൃݟ͠ɺγεςϜΛΑΓ҆શͳঢ়ଶʹอͭ) ● ୹ظϛογϣϯ ○ ʮϑΝΠϯσΟͷࣄۀ੒௕Λࢧ͑ΔͨΊʹɺSRE૊৫ͷ͋Γํͷཱ֬ʯ ● தظϛογϣϯ ○ ʮࣾһશһ͕ࣄۀ੒௕ʹूதͰ͖ΔΑ͏ͳ࢓૊ΈΛߏங͠ɺ҆શʹఏڙʯ 11

Slide 12

Slide 12 text

ԣஅSREνʔϜ͕ҙ͍ࣝͯ͠Δ͜ͱ ● ։ൃνʔϜͱͷ৴པؔ܎ͷߏங ○ Ͱ͖ͨͯͷνʔϜ͸Φʔϓϯͳίϛϡχέʔγϣϯ͕ॏཁ ○ ໰୊΍ෆ҆Λڞ༗͠΍͍ؔ͢܎ੑΛங͖ɺ৴པੑ͸ձ࿩͔Β࢝ΊΔ͜ͱ ● Embedded SREͱͷڠಇ ○ Embedded SREͱີʹ࿈ܞ͠ɺݱ৔Ͱͷ՝୊ײΛٵ্͍͛Δ ● จԽͷৢ੒ͱνʔϜͷҰମײ ○ ຖि༵ۚ೔ʹৼΓฦΓձΛߦ͍ɺKibelaͰશΤϯδχΞʹڞ༗ͱೝ஌౓Λ޲্ ○ νʔϜͷ੒Ռ΍՝୊ղܾʹ͸ɺ࣭ͷߴ͍ίϛϡχέʔγϣϯ͕ॏཁ ○ εϐʔυײΛॏࢹͭͭ͠ɺཱࣗͨ͠νʔϜͷҭ੒Λ໨ࢦ͢ 12

Slide 13

Slide 13 text

Findy ToolsΠϯϑϥվળ

Slide 14

Slide 14 text

Findy ToolsΠϯϑϥվળ ● Aurora ϚΠφʔόʔδϣϯΞοϓ ○ 8.0.mysql_aurora.3.07.0ʹόʔδϣϯΞοϓ ● ΦϒβʔόϏϦςΟपΓڧԽ ○ Πϯϑϥ/ΞϓϦέʔγϣϯϦιʔε͢΂ͯΛϞχλϦϯά ○ SLO΋൒೥Ͱ99%Ҏ্Λҡ࣋ ○ ִिͰͷৼΓฦΓͷ࣮ࢪʹΑͬͯSLI/SLOͷվળ͕Ͱ͖ͯ ͍Δ ● ։ൃ؀ڥͷվળ ○ JustfileԽΛਪਐ͠ɺগͣͭ͠શϓϩμΫτಋೖ༧ఆ ○ ࠷ۙDocker for Mac͕ߴ଎Խ͞Ε͖ͯͨ ○ ϨεϙϯεؚΊͯݕূ༧ఆ ● CloudFrontಋೖ ○ ϨεϙϯελΠϜ͕20ഒߴ଎Խʹʂ 14

Slide 15

Slide 15 text

શ؀ڥͷTerraform importԽ

Slide 16

Slide 16 text

શ؀ڥͷTerraform importԽ ● ࠓ·Ͱ͸׬શʹIaC͞Ε͍ͯͳ͍ঢ়ଶͩͬͨ ○ Πϯϑϥ͕׬શʹίʔυ؅ཧ͞Ε͓ͯΒͣɺखಈઃఆ͕ଟ͔ͬͨ ○ ͢΂ͯͷϦιʔεΛίʔυԽ͠ɺҰݩ؅ཧΛ࣮ݱ ○ ੔߹ੑ͕อͨΕɺকདྷมߋ΍֦ு͕༰қʹͳͬͨ ● Terraform Cloudͷ׆༻ ○ S3Ͱ؅ཧ͍ͯͨ͠tfstateΛTerraform CloudʹҠߦ ○ ՝୊ ○ ৽نߏங࣌ʹطଘઃఆΛ࢖͍·Θ͍ͯ͠ΔͨΊɺ޻਺͕͔͔Δ ○ ൚༻ੑ͕ͳ͍ͨΊɺڞ௨ԽΛਐΊΔ΂͘moduleԽΛݕ౼ 16

Slide 17

Slide 17 text

ʮFindy Team+ʯΦϒβʔόϏϦςΟपΓڧԽ

Slide 18

Slide 18 text

ʮFindy Team+ʯΦϒβʔόϏϦςΟपΓڧԽ ● DatadogΞϥʔτͷ୨Է͠ ○ खಈͰઃఆ͞ΕͨΞϥʔτ͕ଟ਺͋ΓɺඞཁੑΛEmbeddedͱձ࿩ͯ͠ਫ਼ࠪ ○ ͢΂ͯͷΞϥʔτΛTerraformͰ؅ཧ ○ ͖͍͠஋ΛςϯϓϨʔτԽ͠ɺଞϓϩδΣΫτ΁ͷద༻Λ༰қʹͨ͠ ○ Database Monitoringͷಋೖ ● SLOͷࡦఆ ○ Findy ToolsͷࣄྫΛࢀߟʹਐΊͭͭɺ࠶ࡦఆ ○ APIϨεϙϯελΠϜ΍όονॲཧঢ়گΛ৽ͨʹSLIͱͯ͠૊ΈࠐΜͩ ○ SLOͷ໌֬ԽʹΑΓɺؔ܎ऀؒͰͷ߹ҙܗ੒͕εϜʔζʹ 18

Slide 19

Slide 19 text

ʮFindy FreelanceʯΦϒβʔόϏϦςΟपΓڧԽ

Slide 20

Slide 20 text

ʮFindy FreelanceʯΦϒβʔόϏϦςΟपΓڧԽ ● DatadogΞϥʔτͷ୨Է͠ ○ ΞϥʔτपΓ͸TerraformԽ͍ͯ͠Δঢ়گ ○ EmbeddedͱΞϥʔτपΓͷ୨Է͠Λ࢝Ίͨ ○ Anormaly DetectʹΑΓɺΞϥʔτͷස౓͕ ଟ͔ͬͨͨΊطଘʹ໭ͨ͠ ● SLI/SLOৼΓฦΓձ ○ SLI/SLO͸طʹࡦఆ͞Ε͍͕ͯͨɺਁಁ͸ ͍ͯ͠ͳ͔ͬͨ ○ ִिͰৼΓฦΓΛߦ͏ 20

Slide 21

Slide 21 text

AWSηΩϡϦςΟपΓ޲্

Slide 22

Slide 22 text

AWSηΩϡϦςΟपΓ޲্ ● Shisho Cloudͷಋೖ ○ ϚϧνΫϥ΢υͷҰݩ؅ཧ ○ ηΩϡϦςΟઐ໳஌͕ࣝͳͯ͘΋ରԠՄೳ ○ ϦεΫͷଈ࣌ՄࢹԽ ○ ೔ຊޠରԠͷஸೡͳϨϙʔτ ○ ಋೖͷ༰қ͞ͱݕग़݁Ռͷ଎͞ ○ े෼ʹ४උ͞ΕͯΔϚωʔδυϙϦγʔ ○ ΧελϚΠζੑͷߴ͞ ○ Ձ֨ͷ҆͞ 22

Slide 23

Slide 23 text

Amazon Security Lakeͷ࣮૷

Slide 24

Slide 24 text

Amazon Security Lakeͷ࣮૷ ● Amazon Security Lakeͷݕূ ○ AWS಺ͰϦΞϧͰԿ͕ى͖͍ͯΔ͔ෆ໌ ○ Security LakeͰ؆୯ʹҰݩ؅ཧ͕Մೳ ○ CloudTrailɺWAFɺVPC Flow Logɺ Route53(DNS Query)Λର৅ ○ Security Lake͸݄਺ສԁఔ౓ ○ Amazon Managed GrafanaͰμογϡϘʔυԽ ○ ࠓޙ͸SQLͷ݁Ռ͔ΒBedrockͰ෼ੳ༧ఆʂ 24

Slide 25

Slide 25 text

WordPressΛShifterʹҠߦݕূ

Slide 26

Slide 26 text

WordPressΛShifterʹҠߦݕূ ● ShifterҠߦݕূ ○ ࠓ·Ͱ͸Amazon LightsailͰෳ਺αΠτΛӡ༻͍ͯ͠Δ ○ όʔδϣϯΞοϓͱAWSͰӡ༻ͨ͘͠ͳ͍ͨΊɺShifterʹҠߦݕূΛ࢝Ίͨ ● ։ൃ؀ڥͷߏங ○ ιʔυίʔυϦϙδτϦԽͱDocker(Nginx,php-fpm,MySQL)Ͱ؅ཧ ○ ެࣜ͸PHP8.1Ͱಈ࡞͍ͯ͠Δ໛༷ ● Ҡߦํ๏ ○ All-in-One WP MigrationͰ؆୯Ҡߦ͕Մೳ ● ςʔϚσϓϩΠ ○ Shifter Github Plugin/Theme Installer 26

Slide 27

Slide 27 text

·ͱΊ/དྷظ΍Δ͜ͱ

Slide 28

Slide 28 text

·ͱΊ ● ࠓظৼΓฦΓ ○ ൒೥ײͰ༷ʑͳνϟϨϯδ͕Ͱ͖ͨ(ΈΜͳͷ͓͔͛Ͱ͢ʂ) ○ ԣஅSREνʔϜͷࡏΓํΛਁಁ͢Δ͜ͱ͕Ͱ͖ɺେ͖ͳҰาΛ౿Έग़ͤͨ ○ ٯʹ৭Μͳͱ͜ΖʹಥͬࠐΈա͗ͯλεΫͷྔ͕૿͑ͯ͠·ͬͨ(΍Δ͔͠ͳ͍) ○ ϕετϓϥΫςΟεΛ໛ࡧ͍ͯ͠ΔͷͰɺ՝୊ͩΒ͚ ● དྷظ΍Δ͜ͱ ○ ηΩϡϦςΟڧԽ ○ ج൫͸Ͱ͖͕ͨɺίϯςφपΓ΋ରԠ͍ͯ͘͠ ○ AWSίετ࡟ݮ ○ ARMԽɺReserved InstanceɺFargate Spot ○ ·ͩ·ͩ΍Δ͜ͱ͕ͨ͘͞Μ͋Γ·͢ 28

Slide 29

Slide 29 text

গ͠Ͱ΋ϑΝΠϯσΟͰಇ͘͜ͱʹ͝ڵຯ͋Ε͹ɺؾܰʹ͝࿈བྷ͍ͩ͘͞ʂ Ͳ͕͜దਖ਼͔Θ͔Βͳ͍ͱ͍͏ํ΋ؚΊͯɺΦʔϓϯϙδγϣϯ(ॻྨબߟ΍໘ஊ࣌ʹϙδγϣϯ͢Γ߹Θͤ)΍ΧδϡΞϧ໘ஊͷਃࠐΈΛߦ͍ͬͯ·͢ʂ 29 ※ืूঢ়گʹΑͬͯมಈ͠·͢ ։ൃνʔϜɾσβΠφʔ ● CTOީิ ● EM ● ϑϩϯτΤϯυ ● ػցֶशΤϯδχΞ ● όοΫΤϯυ ●σʔλΤϯδχΞ ● SRE ● UIσβΠφʔ Findy Career ● ࣄۀ෦௕ީิ ● ϚʔέςΟϯά ● ࣄ຿Ξγελϯτ ● PdM ● ΧελϚʔαΫηε ○ Ϧʔμʔީิ / ϝϯόʔ ● ϢʔβʔαΫηε ○ Ϧʔμʔީิ / ϝϯόʔ Findy Team+ ● ৽نࣄۀ։ൃ ● ηʔϧε ● ΧελϚʔαΫηε ● PdM ւ֎ਪਐ ● ্ཱͪ͛ϝϯόʔ ○ ϢʔβʔରԠ ○ اըରԠ ࣾ௕ࣨ ● ࣾ௕ࣨ௕ީิ ● ࠾༻૊৫ਓࣄϦʔμʔ ● ޿ใ୲౰ ίʔϙϨʔτଞ ● CFOީิ ● ܦӦاը ● ๏຿ ● ্৔४උ୲౰ ● ࣄۀاը ● ܦཧ ืूதͷϙδγϣϯ

Slide 30

Slide 30 text

γχΞSREΛେืूதʂ🥹 ڵຯ͋Δํʂͥͻ๻ͱ͓࿩͠·͠ΐ͏ʂʂ🤝 \ ಛ ʹ ʂ/

Slide 31

Slide 31 text

ࠂ஌ʂ

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ