2012-04-01ãã1ã¶æéã®è¨äºä¸è¦§
æèã®å ãã¿ã¯ãã¡ãã ãéãããããä½ã£ã¦ã¯ã¿ããã®ã®ã»ã»ã» ãã¼ã«ã¯ç®¡çãå½ http://blogs.itmedia.co.jp/nagaichika/2012/04/post-57fa.html é³æ¥½ãã¼ã«ã¨ãããã®ã¯ããã¯ãã管çãè²·ããã®ããªã®ã ã¨æ¹ãã¦æãã¾ããã ã管çãè²·ããã®ãã è²â¦
ã¡ãã£ã¨æåããã®ã§(ç¬ DRY(Don't Repeat Yourself)ã£ã¦ã®ãããã§ãã ãã¶ããå²ã¨å¤ã説æã¨ãã¦ãã½ã¼ã¹ã³ã¼ãã®åå©ç¨/ç¹°ãè¿ããé¿ãã(äºåº¦æéãããª)ãã¨ããæèã§ä½¿ããã¦ãã¦ãããã¡ãããããèªèãã¦ããã§ãã ã§â¦ãã®æèã«ããã¦ãã¤ã¾â¦
form ãã®ï¼( http://d.hatena.ne.jp/gallu/20120323/p1 )ãã追å ä¾é ¼ãå ¥ãã¾ããã 注æ ã»ååä½ã£ãããæè¦ãã¯ãä¸ç«¯ãªããã¦æ¬²ãã ã»ã»ãã«ãããã¤ãå¿ è¦ãªformãåºã¦ããããªã®ã§ã管çç»é¢ããªã«ãã§ç°¡åã«è¿½å ã§ããããã«ãã¦ããã¦ãã ååâ¦
ãµããâ¦ä¼è©±ã¨è°è«ããã§ãã空éãã¨ãã§ããªã空éãããã£ã¦ã ãã§ããªã空éããåæããã¨ãå°ãé¢ç½ããã¨ããããã 端çã«ã¯ãç¸æã®å°éãã¨ãçªã£è¾¼ã¿ããªãã£/çªã£è¾¼ã¾ãããªãã£ããæ¬ è½ãã¦ãæããããã«å ãã¦ãç¡è¬¬æ§ãã¨ãã絡ãã¨çµæ§é¢â¦
ãã ãã®ã«ãã´ãªããã¡ãã£ã¨è½ã¡çãã¦æ´çãã¦ããã£ã¦æã£ã¦ãã®ã«(è¦ç¬ ãããå¿ããããªã®ã§åå¿é²ã Alarmsã¯ãæ¡ä»¶å¼ãtrueã«ãªã£ãããæå³ããã¿ããã æ¡ä»¶å¼ã¯ãThresholdãã ãCPUUtilization >= 5 for 5 minutesãã®å ´åãCPUã®ãã©ãã¹ãã¢â¦
ãé»éå¾ãã£ã¦ã®ãããã§ããããã®è¾ºã«ã¤ãã¦ã®ããã¡ããã®è¦è§£ã 端çã«ã¯ã"ãããª"ã¯ããã¨æãã"ãã"ã¯å¾®å¦ãã£ã¦æã£ã¦ãã§ãã ã¾ããé»éå¾ãã«ã¤ãã¦ã ã©ããï¼ç¨®é¡ãããããããã£ããã¨ãè¯å®ç³»ï¼èªåããã£ã¦æ¬²ãããã¨ã人ã«æ½ããªãããâ¦
ãããããããªæããæ³å®ã ãã¼ã¹ã«ãªãã®ã¯ /dev/urandom ãªã®ã§ããç°å¢ãã¤ãºã以ä¸ç¥ãçãªè©±ã¯ããã£ã¨ãªãã¨ããªãã ãããã¦ãããã ããã ããããç¨åº¦æå·çã«å®å ¨ãªæ¬ä¼¼ä¹±æ°ã§ãããããã¨ããæå¾ (ç¬ shaã1ã¢ããªãã¦512ãªã®ã¯ãããããããâ¦
ã¡ãããã¨åé¨ããæµãã«ãªã£ã¦ã¿ãã®ã§ãã¾ãã¯ã¡ã¢ã http://www.phpexam.jp/summary/expert/ â¦ãâ¦å¾®å¦ã«ç¯å²ãããããããªãããããããªã Standard PHP Library (SPL) http://jp.php.net/manual/ja/book.spl.php æ¥ä»ã»æå» http://jp.php.net/manualâ¦