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

Asakusa.rbに一年間通ったらこうなった

 Asakusa.rbに一年間通ったらこうなった

大江戸Ruby会議03の話

MATSUMOTO Katsuyoshi

March 16, 2013
Tweet

More Decks by MATSUMOTO Katsuyoshi

Other Decks in Programming

Transcript

  1. who am i • katsyoshi • mikutter • fav.rb, mikutter-fluentd,

    mikutter-jubatus.. • fluentd • fluent-plugin-serialport • fluent-plugin-axslx 2013೥3݄16೔౔༵೔
  2. ( ^o^)MacͰmikutterىಈͰ͖ͨ ʢ ˘⊖˘ʣɻo(଴ͯΑɺͳΜͰMacͰmikutterى ಈͰ͖ͨΜͩ…ʁ) |@toshi_a| ᵎ(☋` )ᵊࡾ ( ◠!

    ◠ )☛ ͳΜͰ࡞ऀ͕Ͱ͖ͳ͍ͷʹ͓લ͕ Ͱ͖ΔΜͩΑ޶ফͤ ‧‪‬‭㜐▒░(’ω’)░▒㜐‭‬‪‧͏Θ͋͋͋ ͋͋͋ 2013೥3݄16೔౔༵೔
  3. mikutterͷ͍͍ͱ͜Ζ • RubyͰॻ͔ΕͯΔ • ϓϥάΠϯͰ֦ுՄೳ • TLอଘɼϝʔϧૹ৴‥ • mikutter͸؀ڥ •

    ݎ࿚ • 40෼ؒ20000;͊΅଱࣮͑ͨ੷(*) *https://twitter.com/toshi_a/status/231628802462199808 2013೥3݄16೔౔༵೔
  4. Ͳ͏΍ͬͯ͏͔͢͝ͷʁ • git clone git://toshia.dip.jp/mikutter.git • cd mikutter • git

    checkout develop • bundle install • bundle exec ruby mikutter.rb 2013೥3݄16೔౔༵೔
  5. fluentd • ϩάऩूΤʔδΣϯτ • Log everything in JSON • pluggable

    • S3, mongodb, Hadoop‥ • td-agent 2013೥3݄16೔౔༵೔
  6. มߋ఺ • build script • make-init-deb.sh, make-deb.sh • DISTS=’lucid precise’

    -> ‘precise’ • ARCHITECTURES='i386 amd64' -> ‘armhf’ 2013೥3݄16೔౔༵೔
  7. มߋ఺ • build script • debian/rules • -Vdist:Depends="$(shell (lsb_release -a

    2>/dev/null | grep -q 'Ubuntu\|squeeze') && echo libyaml-0-2 || echo libyaml-0-1)" -> "libyaml-0-2" • debian/source/format • 3.0 (quilt) -> 1.0 • library • jemalloc-2.2.5 -> jemalloc-3.0.0 2013೥3݄16೔౔༵೔
  8. 10 20 100 10 20 100 ϕϯνϚʔΫ • ੑೳධՁ •

    ࡹ͚Δ਺ • CPU 2013೥3݄16೔౔༵೔