ãµã¤ãã37åã«é«éåãã7ã¤ã®ææ³
ä»åã¯ãªã¼ã«ã¢ãã¦ãã®nnmrãå¼ç¤¾ãµã¤ãAll About Japanã®é度ãé«éåããçµç·¯ã«ã¤ãã¦ã¾ã¨ãã¾ãã
All About Japanã¨ã¯
ããããAll About Japanï¼ä»¥ä¸AAJï¼ã¨ã¯ä½ãã¨ããã¾ãã¨ãå¼ç¤¾ãæä¾ãã¦ãã訪æ¥å¤å½äººåãã®æ¥æ¬ç´¹ä»ãµã¤ãã§ãã
å¤å½äººåããµã¤ãã§ãè±èªãä¸å½èªï¼ç¹ä½åï¼ãä¸å½èªï¼ç°¡ä½åï¼ãã¿ã¤èªãéå½èªã®5ãå½èªã«å¯¾å¿ãã¦ããã¾ãã
ãAnimeããIzakayaããNinjaãã¨ãã£ããããªç¹éããå®éã«è¦³å
ãã人åãã®ã¢ãã«ã«ã¼ãè¨äºãç¹è²ã§ãã
â ç¹é
(url : http://allabout-japan.com/en/tag/sushi/ )
â ã¢ãã«ã«ã¼ãè¨äº
(url : http://allabout-japan.com/en/article/222/ )
æè¡çãªç´¹ä»
LAMPç°å¢ã§ãã
ï¼ãµã¼ãã¼æ§æã¯å¾ã«è¨è¿°ãã¾ãï¼
ã¾ããPHPã®ãã¬ã¼ã ã¯ã¼ã¯ã«Laravelã使ç¨ãã¦ããã¾ãã
é«éåãããã£ãã
ããæ¥ã®ãã¨ã
ãæè¿ãAll About Japanãé ããªãï¼ã
ã¨ãã話ãä¸ãããå®éã«èª¿æ»ãè¡ã£ãã¨ããããã®ãããªçµæãåºã¦ãã¾ããã
ãã®ã°ã©ãã¯New Relicï¼å¾ã«èª¬æãã¾ãï¼ã«ãã£ã¦åºåãããã®ã§ãããã³ãå´ã®ãã£ãã·ã¥ãä»ããã«ãµã¼ãã¼ã¸ç´æ¥ã®ã¢ã¯ã»ã¹ããã£ãéã®è² è·ã表ãã¦ããã¾ãã
ã¤ã¾ãããã£ãã·ã¥ãåããã¿ã¤ãã³ã°ã§ã ããã4.5sããã£ã¦ããã¨ãããã¨ã§ãã
ãã¡ããããã®æ°å¤ãä½ãã«è¶ãããã¨ã¯ããã¾ããã
ã¡ãªã¿ã«ã社å
ã®ä»webãµã¼ãã¹ããã200mså°ã§ãã¡ãã£ã¨é
ãããããªãã¦è¨ããã¦ãããããã§ããã®ã§ã4.5sã¨ããã®ã¯ãã¾ãã«ããã¾ããæ°åã§ãã
ãã®ãããªãã¨ãããå¹³åé度100mså°ãç®æãé·ãæ ãå§ã¾ãã¾ããã
å®è·µ1 : SQLè¦ç´ã
5ãå½èªå¯¾å¿ã¨ãããã¨ã§èã ãæ°ã¥ãããããã¾ãããã翻訳ãå¿ è¦ãªåã ã1ã¤ã®è¨äºã表示ãããããã®ã¯ã¨ãªã以ä¸ã®ããã«è¤éã«ãªããã¡ã§ãã
- ãã®è¨äºã®IDãã翻訳ãã¼ã¿ãåå¾
- ã«ãã´ãªãåå¾
- ã«ãã´ãªããé¢é£è¨äºãåå¾
- é¢é£è¨äºã®IDæ¯ã«ç¿»è¨³ãã¼ã¿ãåå¾
- é¢é£è¨äºã«ç´ã¥ãã¿ã°ãé¢é£è¨äºã®åæ°ååå¾
- ã¿ã°æ¯ã«ç¿»è¨³ãã¼ã¿ãåå¾
å®éã«slow queryã§ç¢ºèªããã¨ããã10ç§ä»¥ä¸ããã£ã¦ããã¯ã¨ãªãçºè¦ãã¾ããã
slow queryã¨ã¯ãå¦çã«æéãããã£ã¦ããã¯ã¨ãªããã°ã¨ãã¦æ®ãã¦ãããæ©è½ã§ãMySQLã使ç¨ãã¦ããå ´åã«è¨å®ãå¯è½ã§ãã
ã¯ã¨ãªãéãããªãçç±ã¨ããã°
- select * ãã¦ãã
- indexãè²¼ã£ã¦ãªã
- ããããã®ç¡é§ãªã¯ã¨ãªã®æ°ãå¤ã
çã ãããããããã¾ãããããã¯indexãè²¼ã£ã¦ãªããã¨ãçã£ã¦ã¿ã¾ããã
indexãä¸æãåãã¦ãããå¦ãã¯explainã§ç¢ºèªã§ãã¾ãã
explainãåºãæ¹æ³ã¯å²ã¨ç°¡åã§ã調ã¹ããã¯ã¨ãªã®é ã«"explain"ãå ãã¦å®è¡ããã ãã§ãã
ããã¨ãã®ããã«çµæãåºåããã¾ãã
explainã®é ç®ã¯å¤§ä½ãã®ããã«ç¢ºèªãã¦ããã¾ãã
- type â ALLãããã¯indexã¨è¡¨è¨ããã¦ããå ´åãã¬ã³ã¼ãæ°ãè¨å¤§ã§ããå ´åã¯è¦ãªãããæ¹ãè¯ãã§ãã
- possible_keys â indexã§ä½¿ãããã¼ãç¡ãã¨NULLã«ãªãã¾ãã
- key,key_len,ref â ããããindexã§ä½¿ãããã¼ãç¡ãã¨NULLã«ãªãã¾ãã
- rows â å°ãªãã»ãã好ã¾ããã§ãã大ããã»ã©è² è·ããããã¾ãã
- Extra â Using Temporary, Using Filesortã¨åºã¦ããå ´åã¯index追å ã§è¦ãªãããæ¹ãè¯ãã§ãã
select_typeã«"DEPENDENT SUBQUERY"ã¨æ¸ããã¦ãããã¨ãå¤ãã®ã¯Laravelã®ã¢ã¯ãã£ãã¬ã³ã¼ãï¼Eloquentï¼ã使ç¨ãã¦ããããã§ãã
ãµãã¯ã¨ãªã¯ãªãã¹ãé¿ããæ¹ãé度æ¹åã«ç¹ããã¾ãããä»åã®å ´åãEloquentã§è¨è¿°ããæ¹ãããã°ã©ã ã®è¦ãç®ã¯é常ã«ç°¡æ½ã§ããããã
Eloquentã®å®è£
ãæ®ãã¤ã¤ãããã§çºçãããµãã¯ã¨ãªã¯indexã§å¯¾å¿ããã¨ããæ¹éã§é²ãã¾ããã
çµæ
ã覧ã®éãã4.5sâ1.0sã¾ã§è½ã¡çãã¾ããã
ãããã§å¦ãã ãã¨ã
- è¨äºã®ãã¼ã¿ãããç¨åº¦æºã¾ã£ããslow queryã®ãã°ãè¦ããã
- slow queryã®çµæããexplainã使ã£ã¦indexã追å ã§ããç®æãæ¤è¨ãã¦ã¿ããã
å®è·µ2 : SQLè¦ç´ãï¼ãã®äºï¼
å®è·µ1ã¨åãããSQLãè¦ç´ãã¾ããããå®è·µ1ã¨æ¯è¼ãã¦ç°ãªããã¨ã¨ããã°ãNew Relicãæ´»ç¨ãããã¨ãæãããã¾ãã
åãã®æ¹ããã¡ããã¡ããç»å ´ãã¦ãããã®New Relicã§ãããããã¯ããµã¼ããµã¤ãã¢ããªã±ã¼ã·ã§ã³ã®ããã©ã¼ãã³ã¹æ¸¬å®ã®ãã¼ã«ã§ãã
ä¸æ¹ã§ãã¯ã©ã¤ã¢ã³ããµã¤ãã®é度ã®è¨æ¸¬ã¨ããã°ãGTmetrixã代表çã§ããhttps://gtmetrix.com/
New Relicã®åºæ¬ç»é¢ã¨ããã°ã馴æã¿ã®ãã¡ããOverViewãã¨ãããã®ãããã¾ãã
ãPHPããMySQLããRedisãã¨ããé
ç®ããã©ã®è² è·ã®æ¯çãé«ããã確èªãããã¨ãã§ãã¾ãã
è² è·ã®æ¯çãphpã®classãmethodæ¯ã«ç¢ºèªãããå ´åããTransactionsããæ´»èºãã¾ãã
å·¦å´ã®ãTransactionsããé¸æããã¨ãã®ç»é¢ã«é·ç§»ãã¾ãã
ä»åã®å ´åãç·è²ã¨é»è²ã®é ç®ãæéã«ãã£ã¦æ¥ã«è² è·ãä¸ãã£ã¦ãããã¨ã確èªã§ãã¾ãã
æ´ã«ãå·¦ã®controllerã®é
ç®ãé¸æããã¨ãmethodæ¯ã®è² è·ã®å
訳ã確èªã§ãããã
controllerã«è² è·ãããã®ããmodelå´ã«è² è·ãããã®ãã確èªã§ãã¾ãã
ä»åãmodelå´ã«åé¡ãããããã ã£ãã®ã§ãå®è·µ1ã¨åæ§ã«è©²å½ããã¯ã¨ãªã«explainããããindexã追å åºæ¥ãå ´æã«è¿½å ãã¦å¯¾å¿ãã¾ããã
çµæ
ã覧ã®éããMySQLã®ãã«ãã«ãã¦ããè² è·ãããªããªã ããã«ãªã£ã¦ãããã¨ãåããã¾ãã
ããã§1000ms â 600msã¾ã§è½ã¡çãã¾ããã
ãããã§å¦ãã ãã¨ã
ãµã¼ãã¼ãµã¤ãã®è² è·ã®ç¢ºèªã«ã¯New Relicãæ´»ç¨ãããã
å®è·µ3 : ãµã¼ãã¼æ§æè¦ç´ã
SQLã®ã¢ããã¼ãã«ããé度æ¹åã®ãã¿ãåºå°½ããã¤ã¤ããã¨ããããµã¼ãã¼æ§æãã®ãã®ã®è¦ç´ãã«è¸ã¿è¾¼ãã§ã¿ã¾ããã
ãµã¼ãã¼æ§æã®å¤é·
AAJã¯ãµã¼ãã¼æ§æã«å¤é·ãããã¾ããã
æçµçã«ä¸çªå³å´ã®æ§æã¨ãªã£ã¦ããã¾ãã
ã¡ãã£ã¢ãã¼ã³ãæãAAJãæ§æããå
¨ãµã¼ãã¼ã¯ãªã³ãã¬ãã¹ã§ããã
ãã®å¾ãä¸å½ããã®é²è¦§ã«å¯¾å¿ããããWebãµã¼ãã¼ã¨ãã£ãã·ã¥ãµã¼ãã¼ã®ã¿ã¯ã©ã¦ãã¸ç§»è¡ãã¾ããã
ä¸é¨ãã¯ã©ã¦ããä¸é¨ããªã³ãã¬ãã¹ã¨ããæ§æã«ãã¦ãããã¨ã®åé¡ã¨ãã¦ã¯ããããã¯ã¼ã¯ã®ç¶æ³ã«ãã£ã¦ãµã¼ãã¼éã®éä¿¡ãã§ããªããªãããµã¤ãã表示ãããªããªããã¨ãæãããã¾ãã
ãã®ãããªãªã¹ã¯ãèæ
®ãããªã³ãã¬ãã¹ãªããªã³ãã¬ãã¹ã«ãã¯ã©ã¦ããªãã¯ã©ã¦ãã«å¯ããã»ããè¯ãã¨ãããã¨ã«ãªããå
¨ã¦ã®ãµã¼ãã¼ãã¯ã©ã¦ãã«è¨ç½®ãã¾ããã
çµæ
移è¡å
移è¡å¾
ä¸è¨ã®New Relicã®çµæãããä¸çªé度ãæ¹åããã¦ããã®ãRedisï¼KVSï¼ã§ãããã¨ãåãããã¨æãã¾ãã
æ§ãµã¼ãã¼æ§æã§ã¯webãµã¼ãã¼ï¼ã¯ã©ã¦ãï¼ããKVSãµã¼ãã¼ï¼ãªã³ãã¬ãã¹ï¼ã¸ã®ã¢ã¯ã»ã¹æã«éä¿¡ã³ã¹ããçºçãã¦ãã¾ããã
ãããå
¨ã¦ã®ãµã¼ãã¼ãã¯ã©ã¦ãä¸ã«ç½®ããã¨ã§éä¿¡æéãç縮ããé度æ¹åã«ç¹ãã£ãã¨èãããã¾ãã
ãããã§å¦ãã ãã¨ã
ãµã¼ããã®ãã®ã®æ§æãé度ã«å½±é¿ãããã¨ãå¿å¾ãã¹ãã
å®è·µ4 : 使ç¨ãã¦ãããã¬ã¼ã ã¯ã¼ã¯ã§ã§ããé度æ¹å
åéã®éããAAJã«ã¯ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦Laravelã使ç¨ãã¦ããã¾ãã®ã§ãLaravelã§ã§ããé度æ¹åã調ã¹ãã¨ããã
config:cacheã¨route:cacheã¨ãããã®ãããã¾ããã
config:cache
laravelã®config/app.phpã«ããå
容ããã£ãã·ã¥ãã¦ããããã®ã§ãã
ãµã¼ãã¼ä¸ã®è©²å½ã¢ããªä»¥ä¸ã§ã³ãã³ããæã¤ããcomposer.jsonã«è¨è¿°ãã¦composer updateãè¡ããã¨ã§é©ç¨ã§ãã¾ãã
php artisan config:cache
詳細ã¯ãã¡ã : https://laravel.com/docs/5.0/configuration#configuration-caching
route:cache
laravelã®app/routes.phpã«è¨è¿°ãããroutingã«é¢ããè¨å®ããã£ãã·ã¥ãã¦ããããã®ã§ãã
ãã¡ããconfig:cacheã¨åæ§ããµã¼ãã¼ä¸ã®è©²å½ã¢ããªä»¥ä¸ã§ã³ãã³ããæã¤ããcomposer.jsonã«è¨è¿°ãã¦composer updateãè¡ããã¨ã§é©ç¨ã§ãã¾ãã
php artisan route:cache
詳細ã¯ãã¡ã : https://laravel.com/docs/5.0/controllers#route-caching
æ¤è¨¼ã¯æ ããªããã¨
ä»åãã©ããå¹æçã§ãã£ãããæ確ã«ãããããï¼1ï¼config:cacheã®ã¿ãï¼2ï¼route:cacheã®ã¿ãï¼3ï¼config:cache,route:cache両æ¹ã¨ããçµã¿åããã§æ¤è¨¼ãè¡ãã¾ããã
ãªãã¨ãªãããã£ãã·ã¥ãã¦ããããªãã©ã¡ãããã£ã¦ãããæ¹ãè¯ãã ããã¨èããã¡ã§ãããæ¤è¨¼ã®çµæã§ã¯ï¼1ï¼ã®config:cacheã®ã¿ãä¸çªå¹æãããã¾ããã
çµæ
config:cacheå°å ¥å
config:cacheå°å ¥å¾
ãã¼ã¸é度ï¼å¹³åï¼ãããã30msæ¹åãã¾ããã
ãããã§å¦ãã ãã¨ã
- ãã¬ã¼ã ã¯ã¼ã¯ãè¨èªçã®ç¹æã®é度æ¹åæ¹æ³ã¯èª¿ã¹ã¦å®è·µãã¦ã¿ããã
- æ¬çªãµã¼ãã¼ã«å°å ¥ããåã®æ¤è¨¼ã¯ç´°ããè¡ãã¹ãã
å®è·µ5 : PHPã®ãã¼ã¸ã§ã³ã¢ãã
ãã®æç¹ã§210mså°ã«çªå
¥ããæåã4.5sã ã£ãã¨èããã°ååã«ä¸åºæ¥ã ã¨æã£ã¦ãã¾ããã¡ã§ãããç®æ¨ã¯100mså°ã§ãã
SQLã®è¦ç´ããæ¦ãã§ããLaravelã®ãã£ãã·ã¥ãå
¥ãããã¨ã ãããµã¼ãã¼æ§æãè¦ç´ããã¨ãªãã¨ããããããã¿ãå°½ããã¨ããã§ãããããã§PHPã®ãã¼ã¸ã§ã³ã¢ãããæ¤è¨ãã¾ããã
å
ã
AAJã®PHPã®ãã¼ã¸ã§ã³ã¯5.5.Xã§ãããâ» ãªã¼ã«ã¢ãã¦ãã®æ¨æºç°å¢èªä½ã¯PHP 5.5.Xã§ãã
PHP 7ãä»ã®PHPã®ãã¼ã¸ã§ã³ããé«éã§ãããã¨ãã使ç¨ãã¦ãããã¬ã¼ã ã¯ã¼ã¯ã®LaravelãPHP 7ã«å¯¾å¿ãã¦ãããã¨ãããPHP 7ã¸ã®ãã¼ã¸ã§ã³ã¢ããã試ã¿ã¾ããã
çµæ
PHP 7å°å ¥å
PHP 7å°å ¥å¾
éçºç°å¢ã§ã®æ¤è¨¼ã¨åæ§ã50msã®é度æ¹åãå³ããã¨ãã§ãã æ³å®ãã¦ãã160mså°ã«çªå ¥ãã¾ããã
ãããã§å¦ãã ãã¨ã
- PHPã®ãã¼ã¸ã§ã³ã¢ãããé«éåã«ç¹ãã
å®è·µ6 : KVSãã£ãã·ã¥æéè¦ç´ã
ãã®ãé度æ¹åããããã試ã¿ã¦ããéç¨ã§ ãã²ãã£ã¨ãããKVSãã£ãã·ã¥ãå©ãã¦ããªãã®ã§ã¯ï¼ã ã¨ããææããããæ¹ãã¦KVSãã£ãã·ã¥æéã調ã¹ã¦ã¿ã¾ããã
AAJã®ãã£ãã·ã¥æ§æ
KVSãã£ãã·ã¥ã®èª¬æã®åã«ãAAJã®ãã£ãã·ã¥ã¯ä»¥ä¸ã®æ§æã¨ãªã£ã¦ããã¾ãã
- ãã©ã¦ã¶ãã£ãã·ã¥
â»ç¹ã«è¨å®ããã«ãã©ã¦ã¶å´ãçæãããã£ãã·ã¥ - varnishãã£ãã·ã¥
â webãµã¼ãã¼ã®ã¢ã¯ã»ã¹ã®æåã§ãã¼ã¸ãã¼ã¿ã®ãã£ãã·ã¥ãè¿ã - KVSãã£ãã·ã¥
ãã¼ã¸ã表示ããããã«å¿
è¦ãªãã¼ã¿ããã£ãã·ã¥
â DBãµã¼ãã¼ã®ã¢ã¯ã»ã¹ã®æåã§DBãã¼ã¿ã®ãã£ãã·ã¥ãè¿ã
ã¤ã¾ãããã©ã¦ã¶ãã£ãã·ã¥ãç¡ãã£ããvarnishãã£ãã·ã¥ãvarnishãã£ãã·ã¥ãç¡ãã£ããwebãµã¼ãã¼ã«ã¢ã¯ã»ã¹ãwebãµã¼ãã¼ããKVSãã£ãã·ã¥ãåç §ãã¦ãç¡ãã£ããDBãµã¼ãã¼ã«ã¢ã¯ã»ã¹ãããããã«ãªã£ã¦ããã¾ãã
varnishã®ãã£ãã·ã¥æéã¯60åã«è¨å®ãã¦ãã¾ããã60åã§ãã£ãã·ã¥ãåããåã«ã¢ã¯ã»ã¹ãããã¨ããããã60åã®ãã£ãã·ã¥ãæå¹ã«ãªãã¾ãã
ä¸æ¹ãKVSã®ãã£ãã·ã¥æéã¯10åã«è¨å®ããã¦ããã¾ããã ä»®ã«varnishã®ãã£ãã·ã¥ã60åã§åããã¨ãã¦ããããã¾ã§ã«KVSã®ãã£ãã·ã¥ãåãã¦ãã¾ã£ã¦ãããããvarnishã®ãã£ãã·ã¥ãåãã度ã«æ¯åKVSã®ãã£ãã·ã¥ãåãã¦ãã¾ããã
ãã®ããããã®ããã«KVSãã£ãã·ã¥ã®æéãvarnishãã£ãã·ã¥æéããé·ããããã¨ã«ãã£ã¦ãvarnishãåããéã«KVSãã£ãã·ã¥ãæå¹ã«ãªãããã«è¨å®ãç´ãã¾ããã
çµæ
10:30ã«æ¬çªã«é©ç¨ãã¾ãããã10:30ãå¢ã«ã°ã©ããå³ä¸ã«ä¸ãã£ã¦ããã®ãåãããã¨æãã¾ãã
æçµçã«120mså°ã¾ã§è½ã¡çãã¾ããã
ãããã§å¦ãã ãã¨ã
ãã£ãã·ã¥ãçµã¿åããã¦ããå ´åã¯ãã£ãã·ã¥æéã®è¨å®ã«æ°ãã¤ããã
å®è·µ7 : New Relicã®ãã§ãã¯
ãã®åº¦ã®AAJã§ã¯ããµã¤ãããã¼ã³ããã¦ãããæ°ãã¤ããã表示é度ã4.5ç§ã«ãªã£ã¦ãã¦æ ã¦ã¦ãã®æãã®æã§é度æ¹åã試ã¿ã¾ãããã ä»ãæãã°æ¥é ããé度ããã§ãã¯ãã¦ããã¨ããç¿æ £ããã£ããè¯ãã£ãã¨ããããã«æãã¾ãã
å®è·µ7ã¯å ·ä½çã«ä½ãã®æ½çããã¦ãã訳ã§ã¯ããã¾ããããNew Relicããã§ãã¯ããç¿æ £ã«ã¤ãã¦ã¾ã¨ãã¾ããã
New Relicã確èªãããã¤ã³ã
Apdex
Apdexã¨ã¯ãApplication Performance Indexã®ç¥ã§ããã¼ã¸é度ã«å¯¾ããã¦ã¼ã¶ã¼ã®æºè¶³åº¦ãæ°å¤åãããã®ã§ãã 0ãã1ã®ç¯å²ã§ã1ã«è¿ãã»ã©ãã¼ã¸ãé²è¦§ããã¦ã¼ã¶ã¼ã®æºè¶³åº¦ãé«ãã¨è¨ãã¾ãã
詳ããã¯ãã¡ã
Tå¤(é¾å¤)ã®è¨å®æ¹æ³
Apdexã®å¤ã¯è¨å®ãããTå¤ãåºæºã«ç®åºããã¾ãã
ç»é¢å·¦ã®"SETTINGS" â "Application"ãã"Apdex T"ã®ãã©ã¼ã ã«ç¶ãã¹ãå¤ãå ¥ãã¦"Save application settings"ãæ¼ãã°è¨å®ã¯å®äºãã¾ãã
Tå¤ã«ã¤ãã¦ã¯ããã¾ãé«ãå¤ãå
¥ãã¦ãã¾ãã¨å¸¸ã«1.0ãä¿ã¡ç¶ããã ããªã®ã§ãæå³ãããã¾ããã
常ã«Apdex Scoreã0.8å°ãããã«ãããå ´åã¯ç¾å¨ã®å¹³åé度ã®1.15åãããã«è¨å®ãã¦ããã°ãããã¨æãã¾ãã
åæ§ã«ã常ã«Apdex Scoreã0.9å°ãè¯ãå ´åã¯å¹³åé度ã®1.7åããããç®å®ã§ãã
noteã®æ´»ç¨
New Relicã¯LITE PLANã ã¨24æéåã®ã°ã©ãããä¿æããã¾ããã éå»ã®ã°ã©ããä¿åããæ¹æ³ã«ã¤ãã¦ã1ã¤ã¯ã¹ã¯ãªã¼ã³ã·ã§ããã§å°éã«è¨é²ããã¨ãããã®ããããã¨æãã¾ãããnoteã¨ããæ©è½ãæ´»ç¨ããã¨ããæ¹æ³ãããã¾ãã
使ãæ¹ã«ã¤ãã¦ã¯ãã¡ãã«è©³ããè¨è¼ãã¾ããã
注æç¹
noteã®å ´åãå¹³åé度çãç´°ããæ°åã¯è¨é²ããã¾ããã
alertã®è¨å®
æ¥é ãããã§ãã¯ã¨ã¯ãã£ããã®ã®ãä¸æ¥ä¸New Relicã«å¼µãä»ãã¦ãã訳ã«ãããã¾ããã New Relicã«ã¯alertæ©è½ããã£ã¦ãä¾ãã°å ã»ã©ã®Apdex scoreãä¸å®ã®å¤ãä¸åã£ãæã«alertãSlackãã¡ã¼ã«ã§éç¥ããè¨å®ãããã¾ãã
詳ããè¨å®æ¹æ³ã¯ãã¡ããã確èªãã ããã
ã¾ã¨ã
ããã¾ã§ã®é«éåã®å 容ã以ä¸ã«ã¾ã¨ãã¾ããã
SQLè¦ç´ã
- index追å
- ã¯ã¨ãªè¦ç´ã
æ´»ç¨ãããã®
- slowquery
- New Relic
ãµã¼ãã¼æ§æè¦ç´ã
AAJãåããã¦ãããµã¼ãã¼ãå ¨ã¦ã¯ã©ã¦ãç°å¢ã«ã¾ã¨ãããã¨ã§åãµã¼ãã¼éã®éä¿¡ã³ã¹ããæãã
Laravelã«ããé度æ¹å
config:cache追å
PHPã®ãã¼ã¸ã§ã³ã¢ãã
PHP 5.5.XããPHP 7ã¸ãã¼ã¸ã§ã³ã¢ãã
KVSãã£ãã·ã¥æéãè¦ç´ã
varnishã®ãã£ãã·ã¥æéã60åã«å¯¾ãã¦KVSãã£ãã·ã¥ã®æéã80åã«ä¿®æ£
ãããã«
ãã®ããã«ãã¦ãAll About Japanã¯ä¸çªéããã£ãé ã®4.5ç§ãã120ããªç§ã¾ã§éããæ¹åãã¾ãããæ°åã ãã§è¦ãã¨1/37ã¾ã§æ¹åããã¨ãããã¨ã«ãªãã¾ãã
All About Japanã¯ãµã¤ããã¼ã³ããã¦éããªãããã¼ã¿ãå°ãªãé ããã¯æ³å®ãã¦ããªãã£ãè² è·ãçºçãããã¨ããã£ããã§é«éåã®ããããã試ã¿ã¾ããã ããããæè¿ããµã¤ããéãããªâ¦ãã¨æããã¨ããã£ã¦ããããåèã«ãªãã°å¹¸ãã§ãã