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

Movable TypeとFluentdによる柔軟なシステム連係

Movable TypeとFluentdによる柔軟なシステム連係

MTDDC meetup Tokyo 2016 セッション発表資料

Kunihiko Miyanaga

November 12, 2016
Tweet

More Decks by Kunihiko Miyanaga

Other Decks in Technology

Transcript

  1. .PWBCMF5ZQFͱ'MVFOUE
    ʹΑΔॊೈͳγεςϜ࿈܎
    MTDDC meetup Tokyo 2016

    View full-size slide

  2. ࣗݾ঺հ
    ٶӬ๜඙
    ▸ ೥๺ւಓੜ·Ε
    ▸ ೥ΞΠσΞϚϯζגࣜձࣾઃཱ
    ▸ .5ʹΑΔαΠτ΍ϓϥάΠϯΛଟ਺։ൃ
    ▸ ಩খ຀޻ۀߴ౳ઐ໳ֶߍ৘ใ޻ֶՊଔۀ
    ▸ *P5ͷઞΓΛड͚ͯిࢠ޻࡞͕࠶೩த

    View full-size slide

  3. ࠷ۙ͜Μͳͷ࡞Γ·ͨ͠
    ࣗ෼Λى͜͢IoTσόΠε

    View full-size slide

  4. ࣗ෼Λୟ͖ى͜͢*P5σόΠε
    IUUQPLJSPNJZBOBHB
    ▸ ΠϕϯτݶఆͰ͢
    ▸ 3TQCFSSZ1JͰ"84424ΛϙʔϦϯά
    ▸ 424ʹϝοηʔδ͕ೖΔͱϥϯϓ͕ϐΧϐΧ
    ▸ ಉ࣌ʹࣗ෼ͷεϚϗʹి࿩
    ▸ ൃ৴ݩ͸Α͘࢖͏࿈བྷઌʹೖΕͯ໷தͰ΋໐Δ

    View full-size slide

  5. ࣗ෼Λୟ͖ى͜͢*P5σόΠε
    IUUQPLJSPNJZBOBHB
    ▸ ΠϕϯτݶఆͰ͢
    ▸ ίϚϯυϥΠϯͰ΋Ұൃ
    ▸ DVSM91045IUUQPLJSPNJZBOBHB
    ▸ ϑϦʔϛΞϜ
    ▸ ى͜͞ΕͨٶӬʹ՝ۚ͞ΕΔ
    ▸ ຊηογϣϯݶఆެ։
    ▸ ͋ͱͰొ৔͠·͢

    View full-size slide

  6. 'MVFOUE
    ͱ͸ʁ
    σʔλ࿈܎ϓϥοτϑΥʔϜ

    View full-size slide

  7. 'MVFOUEͱ͸
    ϩάσʔλऩूͷϓϥοτϑΥʔϜ
    ▸ 53&"463&%"5"͕ࣾத৺ʹ։ൃ
    ▸ ͍Ζ͍Ζͳαʔόɾ༻్ɾܗࣜͷϩάΛूΊΔ
    ▸ ϩάɾϑΝΠϧͷܗࣜʹ͸ύλʔϯ͕͋Δ
    ▸ Α͋͘ΔύλʔϯΛύϥϝʔλͰΧελϚΠζ
    ▸ ϓϥάΠϯͰॊೈʹ֦ுػೳΛ։ൃՄೳ

    View full-size slide

  8. ^
    OSγεςϜϩά
    CPUར༻཰ͳͲͷ౷ܭ
    Apache ΞΫηεϩά
    Apache Τϥʔϩά
    PHP Τϥʔϩά
    ΞϓϦέʔγϣϯϩά
    MySQLΫΤϦ
    ಠࣗϓϩάϥϜ

    View full-size slide

  9. 'MVFOUEͱ͸
    ׆༻͢ΔͨΊʹ֎෦γεςϜʹૹΔ
    ▸ 'MVFOUE͕࢘Δͷ͸͋͘·Ͱసૹ·Ͱ
    ▸ ݕࡧɾूܭσʔλϕʔε
    ▸ &MBTUJDTFBSDI
    ▸ *OqVY%#
    ▸ ࢹ֮Խ͢Δ
    ▸ ,JCBOB
    ▸ (SBGBOB

    View full-size slide

  10. Elasticsearch + Kibana
    InfluxDB + Grafana
    Google BigQuery
    CloudSearch
    Hadoop HDFS
    MQTT + IoT
    Zabbix
    Slack
    Twillio
    \

    View full-size slide

  11. σʔλ࿈܎૚Λந৅Խ
    ૊Έ߹Θͤͷ؅ཧ΍มߋ͕༰қʹ

    View full-size slide

  12. ѼઌΛ؆୯ʹ
    ੾Γସ͑ͨΓ
    ௥ՃͰ͖Δ

    View full-size slide

  13. .PWBCMF5ZQF΋
    'MVFOUϑΝϛϦʔʹ஥ؒೖΓ͠Α͏ʂ

    View full-size slide

  14. NU
    QMVHJO
    qVFOU
    Movable Type
    FluentϓϥάΠϯ

    View full-size slide

  15. .PWBCMF5ZQFϓϥάΠϯ
    NUQMVHJOqVFOU
    ▸ .5ͷ͞·͟·ͳར༻σʔλΛ'MVFOUEαʔόʹૹ৴
    ▸ ୭͕ͲͷϒϩάʹͲΜͳૢ࡞Λ͔ͨ͠
    ▸ .PWBCMF5ZQF্ͷγεςϜϩά
    ▸ ύϑΥʔϚϯεϩά ࠶ߏஙͷෛՙৄࡉ

    ▸ هࣄެ։ɾඇެ։ɾ࡟আͷλΠϛϯάͰσʔλΛૹ৴
    ▸ ςϯϓϨʔτͰͲΜͳσʔλΛૹΔ͔ఆٛͰ͖Δ

    View full-size slide

  16. NUQMVHJOqVFOU
    https://github.com/miyanaga/mt-plugin-fluent

    View full-size slide

  17. શจݕࡧ
    Movable Type × Fluent
    σϞ

    View full-size slide

  18. .PWBCMF5ZQFº'MVFOUEͰશจݕࡧ
    .JDSPTPGU"[VSF4FBSDI
    ▸ "[VSF͕ఏڙ͢ΔશจݕࡧΤϯδϯ
    ▸ ΦʔϓϯιʔεݕࡧΤϯδϯ-VDFOF͕ϕʔε
    ▸ υΩϡϝϯτ.#·ͰͳΒແྉʂ
    ▸ ೔ຊޠ8FC(6*΄΅׬උͰ࢖͍΍͍͢
    ▸ "84$MPVE4FBSDIΑΓෑډ͕௿͍

    View full-size slide

  19. .PWBCMF5ZQFº'MVFOUEͰશจݕࡧ
    ΍ͬͺΓશจݕࡧΤϯδϯ͸͍͍
    ▸ 3%#.4 .Z42-౳
    ʹਅࣅͰ͖ͳ͍ϙΠϯτ
    ▸ ೔ຊޠͷॲཧ͕ద੾
    ▸ ʮژ౎ʯͰݕࡧͨ͠ͱ͖ʮ౦ژ౎ʯ͸͍Βͳ͍
    ▸ ߲໨ͷώοτ࣌ͷॏΈ෇͚͕Ͱ͖Δ
    ▸ ຊจΑΓλΠτϧʹؚ·ΕΔͱ্͖Ґʹདྷͯཉ͍͠
    ▸ σʔλ͕૿͑ͯ΋ͱʹ͔͘଎͍

    View full-size slide

  20. ύϑΥʔϚϯε
    ՄࢹԽ
    Movable Type × Fluent
    σϞ

    View full-size slide

  21. .PWBCMF5ZQFº'MVFOUEͰύϑΥʔϚϯεՄࢹԽ
    *OqVY%#ͱ(SBGBOB
    ▸ *OqVY%#
    ▸ ࣌ܥྻσʔλ͕ಘҙͳ/P42-
    ▸ ΄΅42-ͰΫΤϦͰ͖ΔͷͰͱ͖ͬͭ΍͍͢
    ▸ (SBGBOB
    ▸ ͔͍͍ͬ͜μογϡϘʔυ࡞੒πʔϧ
    ▸ *OqVY%#ͷଞʹ΋ଟ͘ͷ%#ʹରԠ

    View full-size slide

  22. ·ͱΊ
    Fluentdͷ࢖͍ॴ

    View full-size slide

  23. 'MVFOUEͷ࢖͍ॴ
    Α͍ͱ͜Ζ
    ▸ ݸผͷ࿈܎ϓϩάϥϜΛ࡞Βͳͯ͘Α͍
    ▸ σʔλ࿈܎ͷ؅ཧ΍૊Έ߹Θͤͷมߋָ͕ʹͳΔ
    ▸ ໨తʹԠͯ͡ॲཧΛผαʔόʹ෼͚ΒΕΔͷͰε
    έʔϧ͠΍͍͢
    ▸ ϚΠΫϩαʔϏεత

    View full-size slide

  24. 'MVFOUEͷ࢖͍ॴ
    ۤखͳॲཧ
    ▸ ϦΞϧλΠϜʹಉظ͸Ͱ͖ͳ͍
    ▸ τϥϯβΫγϣϯ͸࣮ݱͰ͖ͳ͍
    ▸ ్தͰࣦഊॲཧΛר͖໭ͯ͠ͳ͔ͬͨ͜ͱʹͰ͖
    ͳ͍

    View full-size slide

  25. 'MVFOUEͷ࢖͍ॴ
    ϕετϓϥΫςΟε
    ▸ ΏΔ͍࿈܎
    ▸ Ұ෦ฆࣦͯ͠΋ͦ͜·ͰࠔΒͳ͍σʔλͷ࿈܎
    ▸ ͖ͪΜͱΦϦδφϧ͕͋Δσʔλͷ࿈܎
    ▸ ଟগλΠϜϥά͕͋ͬͯ΋Α͍࿈܎
    ▸ ͪΐͬͱࢼͯ͠Έ͍ͨ࿈܎

    View full-size slide

  26. NUQMVHJOqVFOU
    https://github.com/miyanaga/mt-plugin-fluent

    View full-size slide