å¹³ç´ ããQAï¼ ITããå©ç¨ããã ããèª ã«ãããã¨ããããã¾ãã QAï¼ ITã¯ã質åãåçããå ±æãããç·¨éããã¦ãããã¨ã§ãã¹ããªQAãèç©ã§ãããITã¨ã³ã¸ãã¢ã®ããã®åé¡è§£æ±ºã³ãã¥ããã£ã¼ãã¨ãã¦ç´7å¹´ééå¶ããã¦ãã¾ãããããã¾ã§ãµã¼ãã¹ãç¶ãããã¨ãã§ããã®ã¯ãQAï¼ ITã®ã³ã³ã»ããã«å ±æãããã ããé©åãªè³ªåãåçããå¯ãããã ããçãã¾ã®ãæ¯æ´ããã£ãããããã¨èãã¦ããã¾ããéãã¦å¾¡ç¤¼ç³ãä¸ãã¾ãã ããããªãããã¨ã³ã¸ãã¢ã®æ å ±å ¥ææ¹æ³ã®å¤æ§åãQAãµã¼ãã¹å¸å ´ã®ç¶æ³ãï¼ ITã®ä»å¾ã®ã¡ãã£ã¢éå¶æ¹éãªã©ãæ¤è¨ããçµæã2020å¹´2æ28æ¥ï¼éï¼15:00ããã¡ã¾ãã¦QAï¼ ITã®ãµã¼ãã¹ãçµäºãããã¨ã«ãã¾ããã ããã¾ã§ãå©ç¨ãããã ãã¾ããçãã¾ã«ã¯æ®å¿µãªãç¥ããã¨ãªããèª ã«å¿è¦ããæã£ã¦ããã¾ããä½ã¨ãããç解ãããã ãã¾ãã¨å¹¸ãã§ãã QAï¼ ITã®7å¹´éã§çãã¾ã®ç¥è
Railsã§Hello, world!ã表示ãã¦ã¿ãã®ç¶ã Railsã§ãã°ãåºåãã¦ã¿ãã ãã°ãã¡ã¤ã« ã¨ãããããã°ãã¡ã¤ã«ãè¦ã¦ã¿ãã ç¹ã«ãã°åºåã®å¦çããªãã¦ããããã©ã«ãã§ãã¢ã¯ã»ã¹ã®ãã°ãdevelopment.logã«åºåããã¦ããã $ cat log/development.log Started GET "/" for 192.168.56.1 at 2014-01-02 17:05:37 +0900 Processing by SampleController#index as HTML Rendered sample/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 92ms (Views: 66.1ms | ActiveRecord: 0.0ms) Started GET
Apacheä¸ã§RedmaineçRuby on Railsã¢ããªã±ã¼ã·ã§ã³ãå®è¡ããããã®ã½ããã¦ã§ã¢ã§ããPassenger 2.2.xã®ä¸»è¦ãªè¨å®é ç®ãæç²ãã¦æ²è¼ãã¾ãã ãã¹ã¦ã®é ç®ã®ããã¥ã¡ã³ãã¯ããªãã£ã·ã£ã«ãµã¤ãä¸ã® Phusion Passenger users guide ãã覧ãã ãã åºæ¬è¨å® â ã³ã³ããã¹ãï¼ãµã¼ãã¼è¨å®ãã¡ã¤ã« å称 説æ
è¯ããããã¡ãªã¨ã©ã¼ã¡ãã»ã¼ã¸ ã¨ã©ã¼ãèµ·ããã¨ãã¯ã以ä¸ã®ããã«ã¨ã©ã¼ã¡ãã»ã¼ã¸ãã©ããããã«åºåããã¨æãã¾ãã $c->log->error('something wrong!'); ãã ããã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ã£ã¦ãå®éã«çºçããã¨ãã«ã¯æå³ãããããªããã¨ãå¤ãã®ã§ãã $c->log->error('error!'); æ¬æ°ã§ãããããerror!ãã¨ã ãåãã¡ãã»ã¼ã¸ã ã¨ãã¨ã©ã¼ãèµ·ãããã¨ããä¼ãã£ã¦ãã¾ãããç¨åº¦ã®å·®ã¯ããæå³ã®ããããªãã¨ã©ã¼ã¡ãã»ã¼ã¸ã¯ãã®ä¸ã«ããµãã¦ãããã¨æãã¾ãã æ©æ¢°çãªã¨ã©ã¼æ å ± ããããããã§ãããã¦ã㯠Exception ã¯ã©ã¹ã Logger ã¯ã©ã¹ã§å¤ãã®è£å©ãåããããããã«ãªã£ã¦ããã¨æãã¾ãã çºçæå» çºçå ´æ stack trace å¤æ°ã®ç¶æ ãã ããã®ãããªæ©æ¢°çãªæ å ±ã ãã ã¨ãçµå±ãéç¨ä¸ã¯å¯¾å¿ãé£ããå ´é¢ã£ã¦ã®ãå¤ã
ããã«ã¡ã¯ãéçºé¨ã®å¹³ç°ã§ãã ä»åã¯ãPHP製ã®Web APIãGoã«ç§»æ¤ããããã¸ã§ã¯ãã§ã¢ããªã±ã¼ã·ã§ã³ã®æ å ±ãã¨ã©ã¼ãåºåããçºã®Loggerãæ¤è¨ããéã«ãuber-go/zapã¨ããã©ã¤ãã©ãªãå ¬è¡¨ãã¦ããããã©ã¼ãã³ã¹ããã®ä»ã©ã¤ãã©ãªã¨æ¯ã¹ã¦å¤§åè¯ãã£ãã®ã§ãã©ãã§ããã©ã¼ãã³ã¹ã®å·®ãåºãã¦ããã®ãããã®ã¢ããã¼ããç°¡åã«ç´¹ä»ãããã¨æãã¾ãã Zap åãã«ãç°¡åã«zapã®ç´¹ä»ããã¦ããã¨ä»å¹´ã®2æã«Uberããå ¬éãããã¾ã æ¯è¼çæ°ãããããã¯ãã§ãããã®çºéçºã¹ãã¼ã¿ã¹ã¯Betaã®æ®µéã§åºåãJSONãã対å¿ãã¦ãã¾ããããGithubä¸ã§800以ä¸ã®ã¹ã¿ã¼ãä»ãã¦ãã注ç®ããã¦ããããã¸ã§ã¯ãã¨ãªã£ã¦ãã¾ãã ãFast, structured, leveled logging in Goãã¨ããããã«ãæ§é åããããã°ãåºåããããã®ã©ã¤ãã©ãªã§ãæ¨æºã®logã®ã
ã½ãã詳細説æ Apache çã®HTTPãµã¼ãã¼ãåºåããNCSAå½¢å¼ã®ãã°ãè¦ããã表示ããã½ããã§ãã æå®ããããã°ãã¡ã¤ã«ãèªã¿è¾¼ãã§ãã»ãã·ã§ã³ç¶æ ã解æããæ¥ä»ãã¨ã«ä¸è¦§è¡¨ç¤ºãã¾ãã ã¾ããä»»æã®ã¢ãã¬ã¹ããã©ã«ã群ã«å¯¾ããã¢ã¯ã»ã¹è§£æ ( ãã°è§£æ ) ãè¡ãã¾ãã å種ã®ã¢ã¯ã»ã¹æ å ±ãåºæºã«å¤æ§ãªéè¨ãè¡ããããããç¸äºã«è¿½è·¡ãã¦è¡¨ç¤ºã§ããã®ã§ãç¹å®ã¢ã¯ã»ã¹å ã®åä½è¿½è·¡ãæ¤ç´¢ãµã¤ãã®ç»é²ã»åç §ç¶æ³çã詳細ãã¤åå¥ãªãã°åæãå¯è½ã¨ãã¾ãã IISã®å ´åã§ããconvlog ã§ãã°å½¢å¼ãå¤æããã°ä½¿ç¨ã§ãã¾ãã
2015 - 01 - 27 Gitã§ç¹å®ã®ãã¡ã¤ã«ã®å¤æ´å±¥æ´ãç¹å®ã®æéã§ã®å·®åãä¸è¦§ã«ãã å¤æ´å±¥æ´ ã¾ãããã§å¤æ´å±¥æ´ããã£ã¨ä¸è¦§ã«ã§ãã git log -p filepath ç¹å®ãã¡ã¤ã«ã®ä»»æã®ã³ãããéã®å·®å ç¹å®ãã¡ã¤ã«ã®å·®åãåºããã¨ãã§ãããããã¯ãã使ãã¨æãã git diff <commit>..<commit> filepath è©¦è¡ ä¾ãã°ç¹å®ã®ã³ãããããéå»ã®ç¹å®ã®ã³ãããã®å·®åãè¦ããã¨ãã¯ãã®ãããªæãã«ãªã git diff bca7cd0..5545350 Gemfile ããæã©ããã§è©¦ããããã§ããã¯ãã ã¨æãããã©ã³ãéãè¶ ããããã¯ãã æ¢ã«éç¨ä¸ã®ã³ã¼ãã«ä½åº¦ãæãå ¥ãã¦ããã¨ãã°ãçºçãããããã®ãããªã±ã¼ã¹ã§ã¯ç¾è¡åãã¦ããã³ã¼ããããã°ãæ¢ãããããæ£å¸¸ã«åä½ãã¦ããæã¨ã®å·®åãã¨ã£ã¦å¤æ´ç¹ã«åé¡ããªãã調ã¹ãæ¹æ³ãç´ æ©ããããã°ã§
ã¦ã¼ã¶æ¯ã«ã¢ã¯ã»ã¹ãã°ãæä½ãã°ãªã©ãä¿åãã¦åºåããWEBã·ã¹ãã ãä½æãã¦ãã¾ãã åºæ¬çã«ãã¼ã¿ã®ä¿åã«ã¯MySQLã使ã£ã¦ããã®ã§ããã 1ãã¼ãã«ã«ãã°ãèç©ãã¦ããã¨è¨å¤§ã«ãªããå¦çã«å½±é¿ãåºãäºãæ¸å¿µãã¦ãã¾ãã èªåã§èª¿ã¹ã解決çã¨ã㦠(A)ãã°ã¯æãã¨ã«ãã¡ã¤ã«ãä½æããã¢ã¯ã»ã¹ãããæ¯ã«è¿½å æ¸ãè¾¼ã¿ãããåºåæã¯ãæ¥ä»ãé¸æãã¦å¯¾è±¡ãã¡ã¤ã«ãèªã¿è¾¼ã¿ãä¸æ¬åºåã (B)SQLiteã使ããã¦ã¼ã¶æ¯ã«å°ç¨ã®DBãä½æãã¦ããã«æ¸ãè¾¼ã (C)MySQLã®ãã¼ãã£ã·ã§ãã³ã°ã使ç¨ãã ç¾å¨ã¯Aã§å¯¾å¦ãã¦ããã®ã§ããããã°ãæ¤ç´¢ãããæãDBæ§é ã§ã¯ãªãã®ã§å°é£ã§ãã Cã¯MySQLã®ãã¼ã¸ã§ã³ã«ä¾åããçºãåºæ¥ãã°ä½¿ããããªãã§ãã Bã®æ¹æ³ãè¯ãã¨ãæãã¾ããããã¯ã¦ãªã®éå»ãã°ã調ã¹ãã¨ãªã¹ã¹ã¡åºæ¥ãªãã¨ã®æè¦ãããã¾ããã ããã§è³ªåã§ãããè¨å¤§åãããã¼ã¿ãæ±ãã
SNSãã½ã¼ã·ã£ã«ã²ã¼ã ãã¢ããããã¯ã¼ã¯ãªã©ã®ã·ã¹ãã ã§ã¯ãããããªãã°æ å ±ãDBã«ä¿åãããã¨ãããã¨æãã¾ãã ãã®ãããæ¥ã å¢ãã¤ã¥ãããã¼ã¿ãããã©ã¼ãã³ã¹ãã©ã®æ§ã«ãã°ãã¦ããããéè¦ã«ãªã£ã¦ãã¾ãã ä»åã¯ãã°ç³»ã®ãã¼ã¿ãMysqlã§ã©ã®ããã«éç¨ãã¦ããããããã¼ãã«ããã¤ãã®ãã¦ãã¦ãã¾ã¨ãã¾ããã ãã°ç³»ãã¼ãã«ã®ç¹å¾´ ãã°ç³»ã®ãã¼ã¿ã¨ã¯ãã¤ã¾ãä½ãã®ã¢ã¯ã·ã§ã³ã®å±¥æ´ãã¼ã¿ã®ãã¨ã§ãã ä¸è¬çã«ã¯ãã®ãããªå½¢ã«ãªããã¨æãã¾ãã CREATE TABLE `t_logs` ( `id` bigint(20) unsigned NOT NULL, `user_id` int(10) unsigned NOT NULL DEFAULT '0', `event_id` int(10) unsigned NOT NULL DEFAULT '0', `created` datet
ã¢ããªã®éçºããã¦ããã¨ãã¢ããªãåãåºãã®ãã°ãè¦ããã¨ãå¤ãã¨æãã¾ãã 以åä¼ç¤¾ã®ååã«æãã¦ããã£ãã®ã§ãèªåã§èããã¾ã¨ããããã«è¨äºã«ãã¾ãã èæ¯ åã®å ´åRailsã§éçºãããã¨ãå¤ããdevelopment.logãªã©ãè¦ããã¨ãå¤ãã§ãã ãã°ãåãæµãã¦è¦ãå ´åã¿ã¼ããã«ã§ tailf ã³ãã³ãã tail -f ã使ã£ã¦ãã¦ã å¿ è¦ãããã° Ctrl-c ã§æ¢ãã¦ã¿ã¼ããã«ãã¹ã¯ãã¼ã«ãã¦ãã°ãè¦ã¦ãã¾ããã ãã¨ã¯ã¿ã¼ããã«ã®æ¤ç´¢æ©è½ã§æååæ¤ç´¢ãããããããªã©ãªã© ãããªäººã« tail ã§ã¯ãªã less ã使ãã¨ã¡ãã£ã¨ä¾¿å©ã ãã¨ããå 容ã§ãã lessã®åºæ¬ Unixé¢é£ã®OSã«ã¯å¤åããã©ã«ãã§ã¤ã³ã¹ãã¼ã«ããã¦ããã¨æãã¾ãã ã³ãã³ãã®å¼æ°ã«ãã¡ã¤ã«åãæå®ãã¦èµ·åãã¾ãã æä½æ㯠more ã vi ã¨ä¼¼ã¦ãã¾ãã vi ã¨ã¯éãèµ·åæã«ãã¡ã¤ã«ã®
å¹³ç´ ããQAï¼ ITããå©ç¨ããã ããèª ã«ãããã¨ããããã¾ãã QAï¼ ITã¯ã質åãåçããå ±æãããç·¨éããã¦ãããã¨ã§ãã¹ããªQAãèç©ã§ãããITã¨ã³ã¸ãã¢ã®ããã®åé¡è§£æ±ºã³ãã¥ããã£ã¼ãã¨ãã¦ç´7å¹´ééå¶ããã¦ãã¾ãããããã¾ã§ãµã¼ãã¹ãç¶ãããã¨ãã§ããã®ã¯ãQAï¼ ITã®ã³ã³ã»ããã«å ±æãããã ããé©åãªè³ªåãåçããå¯ãããã ããçãã¾ã®ãæ¯æ´ããã£ãããããã¨èãã¦ããã¾ããéãã¦å¾¡ç¤¼ç³ãä¸ãã¾ãã ããããªãããã¨ã³ã¸ãã¢ã®æ å ±å ¥ææ¹æ³ã®å¤æ§åãQAãµã¼ãã¹å¸å ´ã®ç¶æ³ãï¼ ITã®ä»å¾ã®ã¡ãã£ã¢éå¶æ¹éãªã©ãæ¤è¨ããçµæã2020å¹´2æ28æ¥ï¼éï¼15:00ããã¡ã¾ãã¦QAï¼ ITã®ãµã¼ãã¹ãçµäºãããã¨ã«ãã¾ããã ããã¾ã§ãå©ç¨ãããã ãã¾ããçãã¾ã«ã¯æ®å¿µãªãç¥ããã¨ãªããèª ã«å¿è¦ããæã£ã¦ããã¾ããä½ã¨ãããç解ãããã ãã¾ãã¨å¹¸ãã§ãã QAï¼ ITã®7å¹´éã§çãã¾ã®ç¥è
å¤ä¸ã«çªç¶èªé¯ãã¦ã£ã¼ã³ã¨å¸ãåºããã®ã§ãvmstatã¨ãè¦ããæ¡ã®å®cpuã®idleã0ã«ãªã£ã¦ãã¾ããã topã³ãã³ãã§è¦ãã¨makewhatisã¨ããè¦æ £ããªãããã»ã¹ãã´ãªã´ãªåãã¦ãã¾ãã -bash-3.00$ ps -ef | grep makewhat root 15448 15447 0 04:22 ? 00:00:00 /bin/bash /etc/cron.weekly/00-ma root 15449 15447 0 04:22 ? 00:00:00 awk -v progname=/etc/cron.weeklyme {????? print progname ":\n"????? progname="";???? }???? { pri root 15451 15448 6 04:22 ? 00:00:10 /bin/bash /usr/bin/makewha
ç¾å¨ãªã³ã©ã¤ã³ã²ã¼ã ã®ããã¯ã¨ã³ããKPIã·ã¹ãã ãæ å½ãã¦ãã¾ãããµã¨ã·ã§ãã ä»åã®ããã°ã§ã¯ãDMMãªã³ã©ã¤ã³ã²ã¼ã ã§å®éã«å®è£ ãã¦ãããã°ã¨KPIãã«é¢ãã¦3åã«ããã£ã¦ãç´¹ä»è´ãã¾ãã DMMãªã³ã©ã¤ã³ã²ã¼ã ã§ã¯ãããã¾ã§ã¯ãªã³ã©ã¤ã³ã²ã¼ã ã®ããã¸ã§ã¯ããã¨ã«è¡ã£ã¦ãããã°ã®åéæ¹æ³ãçµ±ä¸ããããã¸ã§ã¯ãã«ä¾åããªãåºæ¬KPIæ©è½ã¨ã²ã¼ã ç¬èªã®KPIæ©è½ãå®è£ ããããã®ãã¬ã¼ã ã¯ã¼ã¯ãéçºãã¾ããã®ã§ãã®äºä¾ããã¨ã«ãç´¹ä»ãã¾ãã ãã°åéã解æã®æ¦è¦ ã¾ãããªã³ã©ã¤ã³ã²ã¼ã ã®ãã°åéã®å ¨ä½åããç´¹ä»ãã¾ãã ãªã³ã©ã¤ã³ã²ã¼ã ã®ãã°åéã§ã¯ApacheãnginxãPHPã®ãã°ãfluentdã§åéãã¦ãã¾ãã fluentdã«éãããã°ãHadoopã®åæ£å¦çã·ã¹ãã ã«ä¿åããHiveãImpalaã§è§£æãããæµãã«ãªã£ã¦ãã¾ãã ãåç¥ã®æ¹ãå¤ãã¨æãã¾ãããHiveã¨ã¯HD
ãç¥ãã
é害
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}