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

ホスティングを支える mruby

harasou
July 04, 2015

ホスティングを支える mruby

次世代ホスティングをmrubyで実現する話

harasou

July 04, 2015
Tweet

More Decks by harasou

Other Decks in Technology

Transcript

  1. “ http://www.mruby.org/ mruby is the lightweight implementation of the Ruby

    language complying with part of the ISO standard. mruby can be linked and embedded within your application.
  2. ઃఆྫ 1 <IfModule mod_mruby.c> 2 mrubyFixupsMiddle resouce_manage_start.rb cache 3 mrubyLogTransactionMiddle

    resouce_manage_end.rb cache 4 </IfModule> 1 r = Apache::Request.new 2 u = r.finfo.user 3 4 c = Cgroup::CPU.new u 5 if c.exist? 6 c.modify 7 else 8 c.create 9 end 10 c.attach SFTPVSDF@NBOBHF@TUBSUSC NPE@NSVCZDPOG