2016/09/27 Cache Night http://gunosy-beer.connpass.com/event/40945/ ã§çºè¡¨ããã Goã¨memcachedã¨ãã¤ã¯ããµã¼ãã¹ã®è©±ã§ãããã£ãã·ã¥æ¦ç¥ãã©ã¤ãã©ãªé¸å®ãç´¹ä»ã®è©±ãã¡ã¤ã³ã§ããRead less
ActiveJobã®ããã¯ã¨ã³ãã¨ãæ°¸ç¶åå ã¨ãã¦Redisã好ã¾ããçç±Rails 4.2ã§ãActiveJobã¨ããã¯ã©ã¹ãå°å ¥ããã¾ããã ãã以åãããRailsã§éåæå¦çãè¡ãéã«ã¯ResqueãSidekiqãDelayed Jobãªã©ãåºã使ããã¦ãã¾ãããã ActiveJobã¯ã¸ã§ããè¨è¿°ããããã®ã¤ã³ã¿ãã§ã¼ã¹ãæ½è±¡åãã¦ã ã¸ã§ãã®å®è£ ãå¤ãããã¨ç¡ãã¸ã§ãã©ã³ãã¼ãåãæ¿ãããã¨ãå¯è½ã«ãããã®ã§ãã ãªãActiveJobã«ããã¦ã¯ãããã¯ã¨ã³ããæå®ããªããã°ã¸ã§ãã¯éåæå®è¡ãããã¨ãã¦ãå³åº§ã«å®è¡ããã¾ãã Rails 4.2.0æç¹ã§ã¯ãActiveJobã®ããã¯ã¨ã³ãã¨ãã¦ä»¥ä¸ã®ãã¼ã¸ã«ãã9ã¤ã®ããããã使ç¨ã§ãã¾ãã ActiveJob::QueueAdapters Backburner Delayed Job Qu Que queue_class
Linuxã®ãããã¯ããã¤ã¹ã¬ãã«ã§å®ç¾ããrsyncããé«éãªå·®åããã¯ã¢ããã«ã¤ã㦠- ããããããã°ã®ç¶ãã¨ãã¦ãFacebook ã® memcached éç¨ã«é¢ããè«æãèªãã ã ã¿ã¤ãã«ãªã©ã¯ä»¥ä¸ã®éãã NSDI ã¯ãããã¯ã¼ã¯ã·ã¹ãã ã«é¢ãããããã¬ãã«ã®ã«ã³ãã¡ã¬ã³ã¹ã Scaling Memcache at Facebook Rajesh Nishtala, Hans Fugal, Steven Grimm, Marc Kwiatkowski, Herman Lee, Harry C. Li, Ryan McElroy, Mike Paleczny, Daniel Peek, Paul Saab, David Stafford, Tony Tung, Venkateshwaran Venkataramani NSDI'13 In Proceedings of the
Redisã®ä½è antirezæ°èªãã«ãããmemcachedã¨Redisã®é·æçæã®æ¯è¼ãç¹ã«ãRedisãåãªããã£ãã·ã¥ç¨ã¢ããªã±ã¼ã·ã§ã³ã¨ãã¦memcachedã¨æ¯è¼ãããã¨ã®ééãã¨ãããããã®åãã¦ãã使ç¨æ¹æ³ã«ã¤ãã¦ã®ç§è¦ã ããªããç§ã¨é¢èããããªããç§ã競å製åããããã¨ãæªãã¨èãã人éã§ãªããã¨ã¯ãåç¥ã§ããããã¦ã¼ã¶ã¼ã«é¸æè¢ããããã¨ã¯æ¬å½ã«ãããã¨ã ã¨æã£ã¦ãã¾ãããã ããããä»ã®æè¡ã¨Redisãæ¯è¼ãããããªãã¨ã¯ã»ã¨ãã©ãã¾ããã§ããã ããããæé©ãªã½ãªã¥ã¼ã·ã§ã³ãé¸ã¶ããã«ã¯ãã¦ã¼ã¶ã¼ã¯æ£ããæ å ±ãæããã°ãªããªãã®ã確ãã§ãã ãã®è¨äºãæ¸ãã®ã¯ãæåãªã©ã¤ãã©ãªã§ããSidekiqã®ä½è ã¨ãã¦ç¥ãããMike PerhamããRedisã®ããã¯ã¨ã³ãã¹ãã¬ã¼ã¸ã¨ãã¦ã®ä½¿ãæ¹ãæ¸ããè¨äºãèªãã ã®ããã£ããã§ããå¾ã£ã¦ãç§ã¯MikeãRedisã«ãå
Railsã®session_storeãcache_storeã¨ãã¦ãmemcachedã使ããã¨ã¯ããããã¨æãã¾ãã ä»åã¯ãmemcachedã®Rubyç¨ã¯ã©ã¤ã¢ã³ãgem, memcache-clientãdalliã«ã¦ãPassengerãunicornã®forkå¾ã®åæåããã¡ãã¨æ¸ããªãã¨ãæ²æ¨ãªãã¨ã«ãªãã¨ããã話ã§ãã â»ä»ã®gemãmemcached以å¤ã§ãå½ã¦ã¯ã¾ãã¾ãã å¿ è¦ãªåæåå¦ç 以ä¸ã®å¦çããconfig/environments/production.rbããconfig/initializers/session_store.rbãªã©ãã©ãã§ãè¯ãã®ã§åæåã³ã¼ãã«æ¸ãã¦ããå¿ è¦ãããã¾ãã dalliãå©ç¨ãã¦ããå ´å https://github.com/mdesjardins/dalli/tree/ # passengerã®å ´å if define
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}