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

Mackerelによるクラウド監視でサービスを加速させる / Essential Mackerel

mackerelio
August 23, 2018
140

Mackerelによるクラウド監視でサービスを加速させる / Essential Mackerel

mackerelio

August 23, 2018
Tweet

More Decks by mackerelio

Transcript

  1. !2 ࣗݾ঺հ • দ໦ խ޾ (id:Songmu @songmu) • גࣜձࣾ͸ͯͳ αʔϏεγεςϜ։ൃຊ෦

    • νʔϑΤϯδχΞ݉Mackerelαϒϓϩσϡʔαʔ • 3 Times ISUCON Winner using Perl • ʮΈΜͳͷGoݴޠʯڞஶऀ • ʮMackerelαʔό؂ࢹ࣮ફೖ໳ʯ୅දஶऀ
  2. !5

  3. !21 ϞχλϦϯάͷॏཁੑͷ޲্ • γεςϜ΁ͷཁٻͷ޲্ • Ϗδωε੒௕ͷͨΊʹ౷ҰతͳϞχλϦϯά͸ඞਢ • ػձଛࣦΛ๷͙ͨΊʹ • ޮ཰తͳαʔϏεӡ༻ͷͨΊʹ

    ʮ͢΂ͯͷαʔϏεͰ݈શੑͱҰൠతͳ؂ࢹؔ࿈ͷ ϝτϦοΫΛಉ͡Α͏ʹग़ྗ͢Δ͜ͱΛ͓͢͢Ί͠ ·͢ɻ(தུ) ͲΕΛબΜͰ΋ɺඪ४Խ͢ΔΑ͏ʹ͠ ͍ͯͩ͘͞ɻʯ
  4. !22

  5. !39 *OGSBTUSVDUVSFBT$PEF • Dynamic Infrastructure Platforms • AWS • Infrastructure

    Orchestration Tools • CloudFormation/Terraform • Configuration Registry • Server Configuration Tools • chef/puppet/Ansible • Infrastructure Services • Monitoring / Log / Deploy
  6. !40 # mkr monitors diff Summary: 1 modify, 0 append,

    0 remove 
 { "name": "loadavg", "type": "host", "metric": "loadavg5", "operator": ">", "warning": 2.000000, - "critical": 4.000000, + "critical": 5.000000, "duration": 5, "url": "", "scopes": [ "stanaka: client", ], "excludeScopes": [ ], }, 
 JSON JSON JSON pull diff push ؂ࢹઃఆΛίʔυͰ؅ཧ • GitϥΠΫͳ࢖͍উख
  7. !41 ͸ͯͳͰͷ૊Έ߹Θͤ droot Monitoring & Host Registry Server Configuration Deploy

    Infrastructure Test SSH-Operations Infrastructure DNS Registry tinydns
  8. • !45 Ϣʔβʔͷ੠ w νϟοτπʔϧͱซ༻͢Δ͜ͱͰɺτϥϒϧൃੜ࣌ͷڞ༗΋ਝ଎ʹରԠͰ͖ΔΑ͏ ʹͳͬͨ w 4MBDLʹάϥϑ͕Ұॹʹܝࡌ͞ΕΔͨΊɺ؅ཧը໘Λ։͘͜ͱͳ͘ঢ়گɾਪҠΛαο ͱ೺ѲͰ͖Δ w

    αϙʔτɾηʔϧε୲౰ऀ͕ΤϯδχΞʹՔಇঢ়گΛ֬ೝ͢Δ͜ͱ͕ݮΓɺۀ຿ͷ ޮ཰Խʹͭͳ͕ͬͨ ΤϯδχΞҎ֎ͷ৬छͰ΋αʔϏεঢ়گΛؾʹ͢ΔΑ͏ʹͳͬͨ
  9. !55 େن໛؀ڥͰ΋ѻ͍΍͍͢ߏ଄ • ΦʔΨχθʔγϣϯʢORGʣຖʹ؅ཧൣғΛ੍ݶ • IPΞυϨε੍ݶ • ॊೈͳϢʔβʔݖݶ User A

    User B User C User D Service A Service B Role 1 Role 2 Role 3 Host 1 Host 2 Host 3 Host 4 Read Write Read Only Owner IP Address Authentication A.A.A.A Service A Service B Role 1 Role 2 Role 3 Host 1 Host 2 Host 3 Host 4 Read Write Read Only Owner IP Address Authentication A.A.A.A Service A Service B Role 1 Role 2 Role 3 Host 1 Host 2 Host 3 Host 4 Read Write Read Only Owner IP Address Authentication A.A.A.A ORG X ORG Y ORG Z