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

みんなのIMAPを可視化する / Visualize IMAP Everybody

みんなのIMAPを可視化する / Visualize IMAP Everybody

Fukuoka.go#16 で発表した資料です。Junly 14, 2020

linyows

July 14, 2020
Tweet

More Decks by linyows

Other Decks in Programming

Transcript

  1. Fukuoka.go#16 ๏ Domain — DNS ๏ Web — HTTP, SSH,

    FTP and WebDav… ๏ Mail — SMTP, POP, IMAP… ๏ Database — (MySQL, SQLite…) ϩϦϙοϓ΍ϔςϜϧ͕ϗετ͍ͯ͠Δ΋ͷ ͍ΖΜͳٕज़Λѻ͍ͬͯ·͢
  2. Fukuoka.go#16 ๏ Domain — DNS ๏ Web — HTTP, SSH,

    FTP and WebDav… ๏ Mail — SMTP, POP, IMAP… ๏ Database — (MySQL, SQLite…) ϩϦϙοϓ΍ϔςϜϧ͕ϗετ͍ͯ͠Δ΋ͷ ຊ೔͸ίίͷ࿩
  3. Fukuoka.go#16 Architecture ΋ͬͱγϯϓϧͳ΍ͭ ͜ΕͰ࠷খߏ੒ͳͷͰࠜຊతʹ ΢ΣϒΑΓෳࡶ Mail Submission Agent :587 Mail

    Transferring Agent :25 Mail Delivery Agent :993 Postfix Postfix Dovecot ✉ ✉ SMTP SMTP LMTP IMAP
  4. Fukuoka.go#16 Our Status 120 100k 2.2k Over /min ͜ͷΑ͏ͳن໛ײ ϝʔϧαʔό୆ʹ৐Δ

    ϝʔϧΞΧ΢ϯτ Max ϝʔϧαʔόͷ਺ ෼ؒʹૹΔϝʔϧ ௨਺ʢDeliveredʣ
  5. Fukuoka.go#16 Our Challenges ๏ ૹ৴ ๏ IP BanɺBlack ListೖΓ໰୊ ΞΧ΢ϯτ৐ͬऔΓ΍ෆਖ਼ར༻໰୊

    ѱҙͷͳ͍େྔϝʔϧ഑৴ ๏ ड৴ ๏ ϑΟογϯάɺ΢ΟϧεɺεύϜϝʔϧഉআ໰୊ ๏ Disk I/Oෛՙ໰୊
  6. Fukuoka.go#16 ๏ ૹ৴ ๏ IP BanɺBlack ListೖΓ໰୊ ΞΧ΢ϯτ৐ͬऔΓ΍ෆਖ਼ར༻໰୊ ѱҙͷͳ͍େྔϝʔϧ഑৴ ๏

    ड৴ ๏ ϑΟογϯάɺ΢ΟϧεɺεύϜϝʔϧഉআ໰୊ ๏ Disk I/Oෛՙ໰୊ Our Challenges
  7. Fukuoka.go#16 ๏ ϛυϧ΢ΣΞʹґଘ͠ͳ͍ΑΓந৅తͳϓϩτίϧϨϕϧͳϝτϦΫεΛऔಘ͢Δ ๏ Mail User Agent͕ඞͣߦ͏Ұ࿈ͷίϚϯυΛൃߦ͔͔ͯͬͨ࣌ؒ͠ΛͱΔ ๏ Connection /

    Login / List / Select / Fetch / Logout ๏ IMAP Client͸ɺطଘϞδϡʔϧΛ࢖͏ͷͰͳࣗ͘લͰ࣮૷͢ΔʢIMAPͷؾ࣋ͪʹͳ Δʣ imap_exporter
  8. Fukuoka.go#16 ๏ IMAPʹ͸ͭͷεςʔτ͕͋Γ ๏ ະೝূ ๏ ೝূࡁ ๏ બ୒ࡁ ๏

    ϩάΞ΢τ ๏ ͦΕͧΕͷεςʔτʹ͓͍ͯΫϥΠΞϯτ͕ൃߦ͢ΔλάΛ࢖ͬͯαʔόʔͱΫϥΠΞϯ τͷίϛϡχέʔγϣϯΛߦ͏ IMAP ίϚϯυ λά
  9. Fukuoka.go#16 ๏ ࠨͷάϥϑ͸खݩ͔ΒαϯϓϧΞΧ΢ϯτʹ઀ ଓͨ͠ྫ ๏ ͜ΕΛશͯͷϝʔϧαʔόʹಋೖ͢Δ༧ఆ ๏ Disk I/OෛՙʹରԠ͢Δࢳޱ͕Έ͔ͭΕ͹ͱ͍ ͏ఔ౓

    ๏ IMAPͷঢ়ଶΛՄࢹԽ͢Δ͜ͱʹ͸ؒҧ͍ͳ͍ ๏ Ұ࿈ͷಈ࡞ΛFirst Loading Latencyͱ͍͏໊ લΛ͚ͭͨ First Loading Latency