2012-01-01ãã1å¹´éã®è¨äºä¸è¦§
èªå® ã®Macã« Subsonic ãã¤ã³ã¹ãã¼ã«ãã¦å®¶ã®å¤(iPhone App, ä¼ç¤¾!)ããã¢ã¯ã»ã¹ã§ããããã«ãã¦ãã¾ãã(éå»ã¨ã³ã㪠http://d.hatena.ne.jp/hiboma/20110702/1309591830 ) ã ããã便å©ãªã®ã§ãããã²ããã¼ã«ç´°ããã§ä¸æºããã£ãã®ã§èªåã§ããããå½â¦
ä¼ç¤¾ã§ä½¿ã£ã¦ã Macbook Pro ã®ããããªã¼ãççãªå¢ãã§ãã¿ã£ã¦ã¾ããããã¯ããããªã¼ã®æ®éã®ã°ã©ã ãã£ã¡ã¯ 7æ ~ 10æ ã§æ¡å¤§ããå³8æä¸æ¬ãããããä¸éã®å ããè¦ãã¦ãã®ã§ãããä½ããã£ãã®ããªã¼ ã°ã©ãã®åºãæ¹ã¯ ãã®ã¨ã³ããªã§æ¸ãã¦ã¾ã hâ¦
Sqale(ã¹ã±ã¼ã«) ã®éçºä¸ã« 2~3å ã«ã¼ãã«ã®ãã°è¸ãã§ãããã調ã¹ãã®ã§ãçµç·¯ãå ¬éã LXCãchef-solo ã§ä½ã£ã¦ã¾ã Sqale(ã¹ã±ã¼ã«) ã§ã¯ã¦ã¼ã¶ã¼ããããã¤ããRackã¢ããªã±ã¼ã·ã§ã³ã LXC(Linux Container) å ã§åä½ããã¦ãã¾ããLXCã®ç°å¢ã¯ chef-â¦
pogoappã¨ããæ°æã®PaaSãã㧠Webã¢ããªã¸ã®HTTPãªã¯ã¨ã¹ãæ¯ãåãã« nginx + lua + redis ã使ã£ã¦ããã¨ããè¨è¿°ãã¿ã¤ãã¾ããhttp://www.pogoapp.com/ Incoming HTTP requests are handled by a pair of dynamic web proxy servers, backed by nginx+â¦
hsbtããã«ãCloud Foundry ã nginx + lua 使ã£ã¦ããã¼ ãã¨æãã¦ãããã¾ããã(ç»åå¼ç¨: http://communities.vmware.com/themes/cto/static/CF_April_11_Event.pdf )確ãã«ãããã¡ããã¨ååæ¸ãã¦ãªããã© https://github.com/chaoslawful/lua-nginxâ¦
Linux Containerã§ã使ããã¦ãã cgroup ã«ã¯ ãã¡ã¢ãªä½¿ç¨éãé¾å¤ããé«ããªã£ãã/ä½ããªã£ãã ã OOM Killer ãçºçãããã©ãã ã¨ãã£ãã¤ãã³ãã eventfd ãéãã¦åãåããããã«ãªã£ã¦ãã¾ãããã®ä»çµã¿ã ruby ããæ±ãæ¹æ³ã調ã¹ã¦ã¿ã¾ããâ¦
ruby 㧠unshare(2) ã¨ããã·ã¹ãã ã³ã¼ã«ãå¼ã³åºãã¦ãã¦ã³ãåå空éãå¤ãã¦ã¿ãå°ããã³ã¼ãæ¸ãã¾ãããunshareã«ã¤ãã¦ã¯ http://linuxjm.sourceforge.jp/html/LDP_man-pages/man2/unshare.2.html ã³ã¼ã ãã¶ã rubyããã¾é¢ä¿ç¡ã # /usr/include/aâ¦
puppetã§ã使ããã¦ãã·ã¹ãã æ§ææ å ±ãããæãã«åã£ã¦ããã rubyã®facterã¨ããgemãããã¾ããããªããªãã¯ã¤ã«ããªäººã§ã * llib/ruby/gems/1.9.1/gems/facter-1.6.8 module Facter # ä¸ç¥ # Set LANG to force i18n to C # ENV['LANG'] = 'C' #!/usrâ¦
openresty(ngx_openresty) ã¨ãã¦é å¸ããã¦ã tarãã¼ã«ã使ã㨠æã£åãæ©ã Nginx 㧠Lua +α ããç°å¢ãä½ãã¾ããè¶ ä¾¿å©ã ä¸ä¾: OSXã®å ´å äºåã« homebrew ãå ¥ãã¦ããã¦ã brew install prce wget http://agentzh.org/misc/nginx/ngx_openresty-1.0â¦
LXC(Linux Container) 㧠lxc-attach ã¨ããã³ãã³ããæä¾ããã¦ãã¾ããã·ã§ã«ãä»ããã¨æ±ãã«ããå ´é¢ãããã®ã§ rubyããç´æ¥æ±ããããã«Cæ¡å¼µãæ¸ãã¦ã¿ã¾ããã....ã®ã§ãã 1.8ç³»ã ã¨åä½ã 1.9ç³»ã ã¨åããªãã£ãã®ã§åå ã追ã£ã¦ã¿ã¾ãããrubyã®â¦
# ååã¯ãªãã§ããã pbcopy-buffer(){ print -rn $BUFFER | pbcopy zle -M "pbcopy: ${BUFFER}" } zle -N pbcopy-buffer bindkey '^x^p' pbcopy-buffer â ãèªã¿è¾¼ãã§ã Ctrl + X Crtl + P ãæ¼ãã ããã¨ã³ãã³ãã©ã¤ã³ãå®è¡ããã表示ããã¾ãã¾ã§ã¯â¦
èªåãæ¸ããããã£ã¨åã« http://openresty.org/#DynamicRoutingBasedOnRedis ã§ã»ã¨ãã©åãå 容ã®ã¨ã³ããªãããã£ã¦ã¾ãã ( ãã¡ãã®ä¾ã§ã¯ HTTPãããã®Hoståã§ãªã㦠User-Agentã§ã«ã¼ãã£ã³ã°ãã¦ã¾ãã)ãªãããã¯ã£ãã¿ããã§æ¥ãããã! ç¡ãã¨â¦
Nginxã®lua-nginx-moduleã§ããã¥ã¡ã³ãã«ã¼ã(root)ã¯å¤æ´ã§ããã®ãã¨ãåå id:lamanotramaããã«è³ªåããã£ã¦ãã®ã§æ¤è¨¼ã§ããã¡ãã£ã¨åã«æ¸ãã lua-nginx-module ã®ç´¹ä» ãªãã³ã« Nginx+Lua+Redisã«ããåçãªãªãã¼ã¹ãããã·ã®å®è£ æ¡ ã¨æ¯ã¹ã¦å°ç²â¦
Nginxã¯é常ã«å¼·åãªhttpdã§ãããç¬èªã®ã¢ã¸ã¥ã¼ã«ãå®è£ ãããã¨ããã¨ããã¾ãé常ã«æ·å± ãé«ãå°è±¡ã§ãã è¿½è¨ ãã®è¨äºãããåã« http://openresty.org/#DynamicRoutingBasedOnRedis ã§ã»ã¨ãã©åãå 容ã®ã¨ã³ããªãæ¸ããã¦ãã¾ããããã¡ããåç §ãâ¦
寿å¸ããã°ãããèªããããªãã®ã§ ã©ã³ãã§å¯¿å¸ãé£ã¹ãã
ç§ç©ã®MacBook Pro (13inch) , MacBook air (11inch) ã¨ãä¼ç¤¾ã§ç§ç¨ãã¦ãã MacBook Pro (15inch) ã®ããããªã¼å®¹éã åå¹´ç¨ ã¯ã¦ãªã°ã©ãã«æ°å¤ãæ稿ãã¦ã¢ãã¿ãªã³ã°ãã¦ããã®ã§ å ¬éãã¾ãã çºç«¯ Macã®ããããªã¼ã«é¢ããæ å ±ã¯ /usr/sbin/ioreg ãâ¦