ããã³ãã¨ã³ãã®ãã©ãã¤ã ãåèã«ããã¯ã¨ã³ãéçºãåèãã / TypeScript ã«ãã GraphQL ããã¯ã¨ã³ãéçº
ããã³ãã¨ã³ãã®ãã©ãã¤ã ãåèã«ããã¯ã¨ã³ãéçºãåèãã / TypeScript ã«ãã GraphQL ããã¯ã¨ã³ãéçº
ã¯ããã« ãµã¼ããéç¨ãããç°å¢ãæ§ç¯ããããã¦ãã¦ãããããã®ããã»ã¹ã§åãã¦ããã°ã©ãã ã£ãã»ã»ããªã©å°ãã¨ããããã¾ãã ãããªã¨ãã«é ¼ãã«ãªããããããªãã³ãã³ãã 3ã¤ãç´¹ä»ãã¾ãã @madeth 師å ã«æãã¦ããã ãã¾ããã 1. proc ã§ããã»ã¹ã使ã£ã¦ãããã¡ã¤ã«ãè¦ã å°ã£ãã㨠ããã»ã¹ã®åããã°ã®ãã¹ãã©ããã¦ãåãããªãã»ã»ã è§£æ±ºæ³ (ç·¨é 2014/09/10) ç¥ãããããã»ã¹ã® ID ã調ã¹ã¾ãã $ ps aux | grep unicorn deploy 3335 xxx xxx xxx xxx X XX 15:14 0:07 unicorn master -c /var/www/myproject/unicorn/staging.rb -E staging -D ããã»ã¹ID (ãã®å ´å㯠3335) ããã¨ã« root 権éã§ãã¡ã¤ã«ãã£ã¹ã¯ãª
Immutable Infrastructure Conference #1
ãªããDMMããweb3ã«åå ¥ããã®ããSeamoon Protocolããç®æãæ°ããªã¨ã³ã¿ã¡ä½é¨ã®æªæ¥ã¨ã¯
sar ã§åéãããªã½ã¼ã¹ä½¿ç¨æ å ±ã sadf ã³ãã³ã㧠TSV ã¨ãã¦åºå (2014/8/6追è¨) sar ã§åéãããªã½ã¼ã¹ä½¿ç¨æ å ±ã sadf ã³ãã³ã㧠TSV ã¨ãã¦åºåã§ãã - å®®å·æã®æ¥è¨ âå ¨ãç¥ãã¾ããã§ãã ç§ãããå©ç¨ããoption (2013/8/6追è¨. ããå¿ããã®ã§) $ sar -r -s 00:00:00 -e 01:00:00 -f /var/log/sa/sa03 ï½µï¾ï¾ï½¼ï½®ï¾ å 容 ä¾ -q load average $ sar -q -u cpu使ç¨ç $ sar -u -b I/Oåæ°ã¨ï¾ï¾ï½°ï¾é $ sar -b -r ï¾ï¾ï¾ã¨ï½½ï¾ï½¯ï¾ï¾ä½¿ç¨ç $ sar -r -s éå§æé $ sar -s 00:00:00 -e çµäºæé $ sar -e 03:00:00 -f æ¥ä» â» $ sar -f /var/log/sa/sa03 â»ã
ã¡ã³ããã³ã¹ããµã¼ãã®ããã«ã¦ã§ã¢è¨å®ãé害対å¿ã®ã¨ãã«ç§ããã使ã£ã¦ããã³ãã³ãã å é±Webãµã¼ãã16å°ã»ã©ãªãã¬ã¤ã¹ããéã«ãã使ã£ã¦æåã確èªä½æ¥ããã¦ã¾ããã ã³ã¬ç³»ã®ã³ãã³ãã¯å人ã®ç§ä¼ã®ã¿ã¬ã¿ããã«ãªã£ã¦ã¦ãä»ã®äººãæãã¦ããããã¨ãå°ãªãæ°ããã¦ã æ°åæ°ã®ã¤ã³ãã©OJTç¨ã«å°ç¨ã®è³æä½ãããã¨æã£ããã©ãæ°åæ°ä»¥å¤ã§ãç¥ã£ã¦ãã° ãããåããããã©ãåããªãããã¤ã³ãã©æ å½è ã«èããã¿ãããªãã¨ã æ¸ã£ã¦èªåã§è§£æ±ºåºæ¥ãã®ã§ã¯ãªããã¨æãã®ã§æ¸ãã¦ããã æå ã®macãlinuxãã該å½ãµã¼ãã«å¯¾ãã¦å®è¡ããã³ãã³ã㧠ã¡ããã¨è©²å½ãµã¼ããå¤é¨ã«åãã¦ãµã¼ãã¹ãæä¾åºæ¥ã¦ããã®ãã è¦ã¯å¤ãã確èªããããã®ã³ãã³ãã§ãã 調æ»ç³»ã®ã³ãã³ã㯠ãªãã·ã§ã³ã使ãæ¹ãè¦ãããã æ軽ã«ä½¿ãã çµæãè¦ããããç解ãããã ã¨ããã®ãéè¦ã ã¨æãã ãµã¼ãã®ä¸ã§èª¿æ»ãããªã å
A modern HTTP server running on somewhat recent hardware is capable of servicing a huge number of requests with very low latency. Hereâs a plot showing requests per second vs. number of concurrent connections for the default index.html page included with nginx 1.0.14. With this particular hardware & software combination the server quickly reaches over 500,000 requests/sec and sustains that with gr
ãµã¼ãã¼ã®ãªã½ã¼ã¹ãè¦ãã«ã¯ã°ã©ãåã¯éè¦ã§ãããæ¨ç§»ã§ã¯ãªããªã¢ã«ã¿ã¤ã ãªç¶æ³ãä¾ãã°ç§åä½ã®ã¹ãã¤ãã¼ãªè² è·ãè¦ãã«ã¯ããµã¼ãã¼ä¸ã§vmstatãiostatãªã©ã®*statãã¡ããªã¼ãå©ãå¿ è¦ãããã¾ãã ãã¦ãvmstatã¯ã¡ã¢ãªã®ç¶æ³ããããã¯æ°åä½ã®I/Oç¶æ³ã¯è¦ããã¾ããããã¤ãåä½ã®I/Oç¶æ³ããããã¯ã¼ã¯ã®éä¿¡ãåä¿¡ãã¤ãæ°ãè¦ããã¨ã¯ã§ãã¾ããã # vmstat 1 procs -----------memory---------- ---swap--- -----io----- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 3 1 0 4724956 355452 726532 0 0 54 484 3 3 1 0 99 0 0 2 0 0 47
家é¯ã§ãSector Read Error ãã§ã¦ã㦠OS ãç«ã¡ä¸ãããªãã£ãã®ã§ãæ°è¦ã« Logical Volume ä½ã£ã¦ãä¸æ¦ä½ã£ã¦ããé åãã Logical Volume ã¤ãã£ã¦ rsync ã§åæå¾ç«ã¡ä¸ããªãããã ã§ã復æ§å¾ãsmartd.log ãè¦ãã¨ã家é¯ã® HDD 㧠smard ããâã®ãããªæ²é³´ãããã£ã¦ãã smartd[2684]: Device: /dev/sda, 1 Currently unreadable (pending) sectors smartd[2684]: Device: /dev/sda, 1 Offline uncorrectable sectors ã¨ã©ã¼ç®æã調ã¹ããããsmartctl ãå®è¡ # smartctl âtest=short /dev/sda smartctl version 5.38 [i386-r
WEBã³ã³ãã³ãé ä¿¡ã«Linuxã使ãã®ã¯ä¸è¬çã«ãªãã¾ããããCentOSãUbuntuãã¯ããã大æµã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ãä½ã¹ããã¯ãªãã·ã³ã§ãåããããªåæè¨å®ã«ãªã£ã¦ãã¾ãã ãã©ãã£ãã¯ã®ä¸éã§ããªã CPUãªã½ã¼ã¹ã®æ¯æ¸ã§ããªã HDDã®IOãé ãåé¡ã§ããªã ã³ã³ãã³ããéããªã(æ¥ç¶ã§ããªã) ã¨ããã±ã¼ã¹ã§ãè¦è½ã¨ããã¡ãªLinuxã®ãããã¯ã¼ã¯å¨ãã®ãã¥ã¼ãã³ã°ã«ã¤ãã¦ã§ãã iptablesé¢é£ iptablesã使ç¨ãã¦ããå ´åãä¸è¨ã®ãã©ã¡ã¼ã¿ã注æãã¦ä¸ããã /proc/sys/net/ipv4/ip_conntrack_max ip_conntrackã«è¨é²ã§ããæ大å¤ã§ãã65536ããããåæè¨å®ã«ãªã£ã¦ãããã¨æãã¾ããããã ã¨ãã±ããã®åããã¼ããããã«èµ·ãã¦ãã¾ãã¾ãã1ã³ãã¯ã·ã§ã³ãããç´350ãã¤ãæ¶è²»ããã®ã§ãå®è£ ããã¦ããã¡ã¢ãªã«å¿ãã¦
12æ3æ¥éå½ã«æå³ä»¤ã宣è¨ããããããã¦å¯ç©ºã®å ã«å±ããããã³ã¼ãã¼ã 12æ3æ¥22æåããã ã©ããããããå°¹é«æ¦å¤§çµ±é ã«ããé常æå³ã宣è¨ããããããã«ã¤ãã¦ãéå½ã§çæ´»ãããç§ã®è¦ç·ã§è¨é²ããã¦ããããã¨æããä»é±ã¯æ¸ãããã ã£ãé«é&å°åæ è¡è¨ãã¹ã¿ã¼ãããããã£ãããå¾åãã«ããã ï¼åçã¯ä»åã®å¼¾å¾ãæ±ãããã¢ã§â¦
1. The document discusses various issues that can cause failures when building APIs to access database systems, such as deadlocks from concurrent updates and purging data inconsistencies between master and slave databases. 2. It proposes solutions to these issues like using queues to defer updates, disabling binary logging to bypass replication, and partitioning or sharding data. 3. When building
å ¥ç¤¾4å¹´ç®ã«ããªã£ã¦tech.kayacåç»å ´ã®ããã§ãã ããã°æ¸ããã¬ãã·ã£ã¼ã«ã¨ãã¨ãå±ããæããã¾ããã ããã§å¤¢ã«kyo_agoãåºã¦ããªãããªãã¦ãã¿ã¾ãã(å½¼ã¯tech.kayacã®å°»ãããæ å½ã§ãã) å ã æãã¼ããã®ç²åå!ç±éç·¨ãã¨ããã²ã¼ã ãã¢ãã²ã¼å ã«ã¦ãªãªã¼ã¹ãã¾ããã ããã¯å»å¹´ãªãªã¼ã¹ãããã¼ããã®ç²åå!ãã®ç¶ç·¨ã§ãã ã¢ãã²ã¼ã¦ã¼ã¶ã®æ¹ãæ¯ééãã§ã¿ã¦ãã ããã ä»åã¯ãã®ãã¼ããã®ç²åå!ç±éç·¨ããã©ãããã¤ã³ãã©æ§æã«ãªã£ã¦ããç´¹ä»ãããã¨æãã¾ãã 注) é¡åã«ãã«ã¤ãã¯æµãã¨ã¯ã¤ãã¾ããããã«ã¤ãã¯ã§ã¯å¤æ§æ§ãåã¨ãã¦ãã風潮ãããã ã²ã¼ã ã«ãã£ã¦ã¤ã³ãã©ã®æ§æãéãã©ããããå©ç¨ãã¦ããããã°ã©ãã³ã°è¨èªããéãã¾ãã ãªã®ã§å ¨ã¦ã®ã²ã¼ã ããã®ãããªæ§æã«ãªã£ã¦ãããã§ã¯ããã¾ããã åæ ä»åã®ã¤ã³ãã©æ§æã決ããã«è³ã£ã¦èæ ®ããç¹ã¯ãã©ã¯ã«
1. Copyright © KLab Inc. All rights reserved. KLab æ ªå¼ä¼ç¤¾ ã©ã¤ããã¢æ§ÃKLab åååå¼·ä¼ ã·ã¹ãã ã¢ãã¿ãªã³ã°ãã¼ã«ãGangliaãã®ç´¹ä» 第å¼éçºé¨ æ¨ªå· åå ï½ãªãã§ããã¼ã¿ãåã£ã¦ã°ã©ãåãããï¼ï½ 2. Copyright © KLab Inc. All rights reserved. 2 ï¬ èªå·±ç´¹ä» ç®æ¬¡ ï¬ Ganglia ã®ç¹å¾´ ï¬ ã·ã¹ãã ã¢ãã¿ãªã³ã°ãã¼ã«ã¨ã¯ ï¬ DSAS ã§ã®å©ç¨ä¾ ï¬ ganglia ã®ãããã§ï¼ï¼ï¼ ï¬ ã¾ã¨ã
ãã£ããæ¦è¦ ãã¼ã¯ã§3000req / sec æ¯åã³ã³ãã³ãæ´æ°è¦æ± ã³ã³ãã³ãæ´æ°ã®éã¯ä»æãããã¼ã¿ãapiçµç±ã§åãåã ã³ã³ãã³ãæ´æ°ã«ã¯TheSchwartzãä½¿ç¨ ãªã³ã³ãã³ããè²ã ãã¦ãããã°ã å°ãããã«æ¸ãæè¡ã¯å¤§åãå¨å²ã®ã®ã¼ã¯ãªæ¹ã ã«ãµãã¼ããã¦ããã£ããã®ã§ãåèªèº«ãä½ãããããã§ã¯ãªããæ®å¿µãããã æ§æ internet -> www(squid -> apache) -> app(memcached -> app) -> db ããã³ãã¨ã³ã wwwãµã¼ããapacheã¨squidãåããã¦ãããapacheããªã¯ã¨ã¹ããåããsquidã®ãã£ãã·ã¥ãæãã°ãããè¿ããç¡ããã°ããã¯ã¨ã³ãã®appãµã¼ãã¸proxyã ããã¯ã¨ã³ã appãµã¼ããmemcachedã¨ã¢ããªãåããã¦ããã ããããåé·åãã¦ããã©ããªã¯ã¨ã¹ãæ°ã®å²ã«å°æ°ã¯å°ãªãã æè¡ãã
4. TCP/IPéã£ããéã£ãé ã«å±ã$fp = stream_socket_client('tcp://www.nicovideo.jp:80');fwrite($fp, "GET / HTTP/1.0");fwrite($fp, "Host: www.nicovideo.jp");echo stream_get_contents($fp);fclose($fp); 6. TCP/IPã¡ããã¨å±ãããã$fp = stream_socket_client('tcp://www.nicovideo.jp:80', $errno, $errstr);if ($fp=== false) { throw new Exception($errstr);}if (fwrite($fp, "GET / HTTP/1.0") === false) { throw new Exception($php_
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}