Linux
åä¾ãçã¾ããããè·å ´ã§ã¯äººäºæ¹é©ãè¡ããããã@oranieãããã¹ãã¼ããã©ã³ã¢ããªã¨ã³ã¸ãã¢ã«ãªã£ããã¨ãçæ´»ãæ¿å¤ãã¤ã¤ããä»æ¥ãã®é ã¿ãªãã¾ããããéããã§ããããã ã¯ããä¹ã«ã¬ã¼æ§ã§ããããã®ã§ãã è·å ´ã§ã¯ãã£ã¨chef-server 1æ¬ã§æ¥â¦
ã¯ããã©ãã©ãä¹ã«ã¬ã¼æ§ã§ã¤ãboot2dockerããã¼ã¸ã§ã³ã¢ãããããã¡ãã£ã¨ããã£ãäºãããã¤ãã¡ã¢ã ãã¨ãã¨ãåæã ãã¨ãã¨ã¯1,2ã¶æåä½ã«å ¥ããboot2dockerã§ãå ¥ãæ¹ã¯å½æhomebrewã§å ¥ãç©ãè¥å¹²å¤ãã£ãããªããã§Githubããwgetãã¦ããæ¹æ³â¦
ã¯ããä¹ã«ã¬ã¼æ§ã§ããæ¡éã§ãã æè¿åãã¤ã¬ã¤ã¬ãé¼»ãã ãºã ãºã身ä½ã¯éãããããªã¼ãã ï¼10ç¹ï¼ ã¨ãvagrant-berkshelfã£ã¦éæ¨å¥¨ã«ãªã£ã¦ãã¾ã£ããã§ãããããæ°ä»ããã«å ¥ãããã¨ãã¦ãã¡ã¢ããªãã¨ãªããã£ãããªãã®ã§æ¸ãã¨ãï½ ã¤ã³ã¹ãã¼â¦
ã¯ããä¹ã«ã¬ã¼æ§ã§ããæ¡éã§ãã @kuwa_tw vagrantã£ã¦Vagrantfileè¤æ°ã«å¯¾å¿ãã¦ãªããã§ããï¼ï¼2014-03-07 19:04:26 via YoruFukurou to @kuwa_tw @repeatedly ç°å¢å¤æ°ã§åãå å¤ãããããªãã£ã½ãããªã2014-03-07 19:07:05 via YoruFukurou to @repâ¦
ã¯ããä¹ã«ã¬ã¼ãã¾ã§ããå¯ãæ¥ãç¶ãã¾ããã ããã¦MySQLãç¶ããããªç§ã§ãã ååã¯ããªã¬ããã£ã¦ã¿ã¾ããããä»åº¦ã¯ãã¼ãã£ã·ã§ãã³ã°ããã¦ã¿ã¾ãã ãã¼ãã£ã·ã§ãã³ã°ã¨ã¯ ãã¼ãã£ã·ã§ãã³ã°ã¯ãç¹å®ã®ã«ã©ã æ å ±ã使ã£ã¦ããã¼ãã«ãè«ççï¼ç©â¦
ã¯ãããã¤ã«ã¬ã¼ãã¾ãã¾ã§ããæ¡éã§ãã ããã°ãæ´æ°ã§ããªãã¦è½ã¡è¾¼ãã ããããããã©ç§ã¯å æ°ã§ãã ãããããã¨ããããééã¨ãããè¨ãããæ¨ä»ã§ããæè¿ä¹ ãã¶ãã«MySQLã触ã£ã¦ããã®ã§ãã®è©±ãã ãã¼ããã°MySQLã®ããªã¬è¨å®ã¨ãã»ã¼ãã£ãâ¦
ã¼ãããããããã¤ã³ãã©ã¨ã³ã¸ãã¢ããµã¼ããµã¤ãçãããã¨ã³ã¸ãã¢ã«ãªã£ãæã«ä½ãã«è©°ã¾ã£ãããæ°ã«ãªã£ãäºãã§ããæã«Googleã§æ¤ç´¢ãã¦ãè¯ãåºã¦ãããã¼ã¸ãæã£ããã§ããããã¯ãsanonosa ã·ã¹ãã 管çã³ã©ã éãã§ããã ãã®é ã¯ã¤ã³ã¿ã¼ãâ¦
ã¯ãããã¤ã«ã¬ã¼æ§ã§ããããã®ã§ãã æ°ã¥ããããã£ãã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼Blogæ¸ãã¦ãªãã¦ããã¹ã¼ãªããã£ã¦æã£ãã®ã§ä»å¾ã¯æ¸ãã¦è¡ããã¨æã£ã¦ãã¾ã(´ï¼Ïï¼ï½) ã¨ãä»åãæ¸ç±ã®è©±ã ã£ãããããã§ããï¼æ± ãWeb+DB Press Vol.75ãã«ç¬¬2ç¹éã¨ãâ¦
ã¯ãããã¤ã«ã¬ã¼æ§ã§ããããã®ã§ãã ç¾ éç¤ã ãã¨ãã«ãã³ã¤ã¤ï¼ããã§ããªãï¼äºãè¨ã£ã¦ã¿ãï¼ï¾ï¾ï¾ï½§ ãªã¼ã 社ãã¾ããåºçããã¦ããã¾ããã7ã¤ã®ãã¼ã¿ãã¼ã¹ 7ã¤ã®ä¸çããç®æ¬ããã ãã¾ããï¼ ãªã¼ã 社ãã¾ã@kdmsnr ãããããã¨ããããã¾ããï¼ â¦
jenkinså çããããã¨ãªãäºæ ã§Basicèªè¨¼ããããã¨ãã ã¯ããä¹ã«ã¬ã¼æ§ã§ããæ¡éã§ããJenkinså çãå ¬éããããªã¼ã£ã¦æã¨ããéãé¨ç½²ã§è¦ããããªã¼ã¿ãããªæã«ãæ軽ã«èªè¨¼ãã¾ãã ãããBasicèªè¨¼ã§ãããã ãªããè¬ã«ããã£ãã®ã§ã¡ã¢ã 追â¦
ã¯ãããã¤ã«ã¬ã¼æ§ã§ãã ããã®ã§ãã Muninã¨ããç£è¦ã½ããã¦ã§ã¢ããããã¾ãã ãã¡ããã¨ã¦ã使ãåæã®ãããã½ããã¦ã§ã¢ã§ãããã¾ãã¦ããã©ã°ã¤ã³ãä½ããããã便å©ãªãã®ãªãã§ãããè¯ããªãã®ããã1.4ã ã¨æ§çéçãªã°ã©ãç»åçæã®ã³ã¹ãâ¦
ã¯ãããã¤ã«ã¬ã¼æ§ã§ãã bashã使ã£ãã·ã§ã«ã¹ã¯ãªããã§ãã¤ãã使ã£ã¦ãæ»ãå¤ãã¡ããã¨åãããã¨ãã®è©±ã§ãã ã·ã§ã«ã¹ã¯ãªããã®æ»ãå¤ ã·ã§ã«ã¹ã¯ãªããã§ã®æ»ãå¤åãã¨ãã« $? ã使ããã¨ãããã¨æãã¾ãã $ ls / # ãã£ã¡ã¯æ£å¸¸ $ echo $? 0 $â¦
MongoDB使ãã¾ããã£ã¦æã«ããããã¬ããªã«ã»ããã ã®ãã·ã£ã¼ãã£ã³ã°ã ã®ããã¡ãã¡æé ã¨ãæãã¦ããã®ãããã©ããããªã£ãã®ã§ããããè¦ããã³ãã³ãçãªæé ã¯ã²ã¨éãããã¾ãããã ããå¾ã¯èªåã§èª¿ã¹ã¦ããã£ã¦ããè³æãã¤ãã£ã¦ã¿ãã®ã ã ã¨â¦
ã¯ãããã¤ã«ã¬ã¼æ§ã§ããããã®ã§ãã æè¿èªçæ¥ãè¿ãã¾ãã¦ãèªçæ¥ãã¬ã¼ã³ããã¿ããªã«ã¬ã¼ã«ã¡ãªãã ãã®ã§ããããã®ã«ã¬ã¼ãã©ã³ãã£ã³ã°ã¯ããæºãããªãã®ã ãªã¨æãæ¯æ¥ã§ãã æ¯æ¥ã«ã¬ã¼é£ã¹ã¾ããããé£ã¹ã¾ããï¼ æè¡è©è«ç¤¾ãããããMapionâ¦
MongoDBã®AutoBalancingã£ã¦ä¾¿å©ã§ãããã 便å©ã¨ããããæåBalancingãå³æå ¨ä½åæ ãããªãã®ã§ãAutoBalancing使ããããå¾ãªãçç±ãããã¾ãã(ï¼ ï½¥`д・´)ã¨ããããã§ãä»Shardéã§Chunkã®Migration(以ä¸moveChunk)ãèµ°ã£ã¦ããªãã確èªããæ¹æ³ã§ãâ¦
æè¡è©è«ç¤¾ãããããããã®ããã®Linuxã·ã¹ãã ã»10å¹´å¹ãæè¡ããç®æ¬ããã ãã¾ããï¼ãããã¨ããããã¾ãï¼ ããã®ããã® Linuxã·ã¹ãã ã»10å¹´å¹ãæè¡ (Software Design plus)ä½è : ä¸äºæ¦å¸åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2012/06/15ã¡ãã£ã¢: â¦
以å¤ã«ãããªãããããªãããªã£ã¨ã MongoDBã®æ å ±åãã®ã«ãmongostatã£ã¦ã³ãã³ããããã¾ãã ããã便å©ãªã³ãã³ããªãã§ãããmongoDBã®å°æ°ãå¤ããªã£ã¦ããã¨ã ãã ãããã©ããããªã£ã¦ãã¾ãããã mongostatã¯discoverãªãã·ã§ã³ã便å©ãããã®ã§â¦
netstatãããæ代é ãã ã£ã¦ï¼ï¼ netstat使ã£ã¦ãã®ã¯å°å¦çã¾ã§ã ããã¼ã ãã£ããï½ï¼ï½ï½ ãããã¨ããã®ã¯åè«ã§ãããããããã¯ssã³ãã³ããããã£ã¦èããã®ã§ãã©ããªæãã§ä½¿ããã使ã£ã¦ã¿ãã ssã³ãã³ã netstatã®ä»£æ¿ã³ãã³ãããããç¾å¨ã®â¦
ã¾ãã ã£ããããã curlã®ã¨ã³ããªæ¸ãã¦ãã®ã§ãããã1ã¤ã ã追è¨ãã¾ããã Webãµã¤ãã®ããã«ããã¯èª¿æ» ãããµã¤ãã§ã¢ã¯ã»ã¹ãé ããªããã£ã¦è©±ã«ãªã£ãã¨ãã«ã¾ãå½ãããã¤ããããã«é ãé¨åã調ã¹ããã ã£ã¦æã®curlã®ä½¿ãæ¹ã å®éã®æé åºæ¬â¦
ããã£ãã®ã§ã¡ã¢ãLinuxã§ãªã½ã¼ã¹å¶éããããã®ä»çµã¿ã®ulimitãããã¾ããããã®1é ç®ã«ãnprocããããã¾ãã ããã¯ãã®ã¦ã¼ã¶ã§å®è¡ã§ããããã»ã¹ï¼ã¹ã¬ããï¼æ°ã®å¶éã¨ãªãã¾ãã ããããCentOS5ã¾ã§ã¯ã $ ulimit -u unlimitedã®ããã«ç¡å¶éã â¦
ã·ã§ã«ã¹ã¯ãªããæ¸ãã¦ã¦ãããããæåãã§ãã¯ã ã¨ããå¤æã¨ãããã®é¢åããããªãã¨æã£ã¦ããtypeset便å©ããã使ã£ã¦ãªãã£ããâã£ã¦ãªã£ãã typesetã¨ã¯ bashã®çµã¿è¾¼ã¿ã³ãã³ãã§ãå¤æ°ã®å®£è¨ãè¡ãããã®ãµãã³ãã³ãã§ãã é åãå®ç¾©ããããâ¦
ã©ãã©ããå°ãã¿æãã¾ããã¢ã¼ãã§ããã capistrano, tomahawkãªã©ã®ãããªè¤æ°ãµã¼ãã«ã³ãã³ããæããã½ãªã¥ã¼ã·ã§ã³ã使ç¨ããå ´åã«ãã®ãããªã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºã¦sudoã§ããªãå ´åãããã¾ãã sudo: no tty present and no askpass program speâ¦
ããã«ã¡ãã å°ãã¿ã·ãªã¼ãºã§ããããã«ã¡ãã ãªããããµã¨IOPSï¼I/O / secï¼ã¿ãããªããã¨ã£ã¦ããã¾ããï¼ DBãµã¼ããªããã§ãã¼ã¯æã«ä»ã©ã®ãããIOPSãã°ãã¦ãã®ããã¨ããSSDããã使ã£ãã¨ãã«IOPSæ¯ã©ã®ç¨åº¦æ§è½ã§ãã®ãï¼ ãªãã¦ã®ã¯ã¡ãã£ã¨â¦
ãã®ãã£ã¹ã¯ã®/usr/local以ä¸ããã¯ã¢ããããããã ãã©ããããã¼ã«ã«ãã£ã¹ã¯ã®å®¹éãç¡ãã ã¦ãããã¼ã«ã«ãã£ã¹ã¯ã®å®¹éãç¡ããã移ããããã ãï¼ã£ã¦è¨ãåµãå ãé¶ãå ãçè«ã®æã®è©±ã tarã¢ã¼ã«ã¤ããç´æ¥æ¨æºåºåãã¦netcatã§ãªã¢ã¼ããã¹ãã§â¦
ã½ã¼ã¹ãvimã§å¼µãä»ãããã¨ãã¦ã var socket = io.listen(app); socket.on('connection', function(client) { // connect // client.on('message', function(message) { // // message // }); // client.on('disconnect', function() { // // disconnect â¦
mongodb2.0ããmongotopã¨è¨ãã³ãã³ããå ¥ã£ã¦æ¥ã¦ã¾ããã çµæ§ä¾¿å©ã ã£ãã®ã§ãç´¹ä»ã RESTã®ãã¼ã¸ãããã°ããã¹ãã¼ã¯ã¨ãªãè¦ã¤ãããã¨ãå¤ãã§ãããmongotopã ã¨ãªã¢ã«ã¿ã¤ã ã«ç¶æ³ãè¦ãããã®ã§ãã©ãã«ã·ã¥ã¼ãã£ã³ã°ã«ã¯ããªããããã¨ã mongâ¦
ã©ãã©ããä»æ¥ã¯ã¹ã¿ãã§ãã³ãã£é£²ãã ãè ¹ãã¿ãã¿ãããã®ã§ãã ããããã°ãmongodbã«ã¤ãã¦æ¸ãã¦ãªããªãã¨æãã¾ãã¦ãèªåã®ç¥èã®å®çã®æå³ãå«ãã¦ã¡ãã£ã¨ãã°ããæ¸ãã¦ããããã¨æã£ã¦ãã¾ãã ä»æ¥ã®ãã¼ã ã¤ã³ã¹ãã¼ã«ããã¯ã©ã¤ã¢ã³ãâ¦
åæ£å¦çãæ軽ã«ããããã GNU Parallel ã便å©ã ãã©ãppssãªãã·ã§ã«ã¹ã¯ãªããã ããè¨ç½®ããã ãã§å®è¡ã§ãã¦ä¾¿å©ï¼ ã£ã¦äºã§è©¦ãã¦ã¿ãã ã¤ã³ã¹ãã¼ã« ããã ãã $ cd ~/bin $ wget http://ppss.googlecode.com/files/ppss-2.85.tgz $ tar zxvf ppsâ¦
ä¼ç¤¾ã®é£ã®å¸ã®äººã«ãããï¼ Clonezillaã£ã¦ããã®ãããããããããã®ãã·ã³ããã¯ã¢ããã«ãããããªã®ã§ã¡ãã£ã¨ã¡ã¢ã 使ãæ¹ã®è¨äºããã£ãã
WEB+DB PRESS Vol.58ä½è : æ¾ç°æ,大竹æºä¹,ã¯ã¾ã¡ã2,å¤æåä»,横éå·§ä¹,島ç°æ ¶æ¨¹,å¢äºä¿ä¹,ããã¯,åç°è£ä»,ä¼è¤ç´ä¹,å¡ä¸å¿å¤«,大沢åå®,åæ ,æµæ¬éç,uupaa,ç¢éãã,ä¸å³¶è¡,ä¸å³¶æ,è§ç°ç´è¡,WEB+DB PRESSç·¨éé¨åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2010â¦