2017/10/08 phpcon 2017 https://joind.in/event/japan-php-conference-2017/session05-mysqlRead less
ãã®è©±ã¯ããªãã³ã³ããã¹ãä¾åãªã®ã§ãèªåã¡ã¢ã§ãã ãã®è¾ºãä½ç³»çã«æãã¦ããã£ããã¨ç¡ãã®ã§ãããã³ãã©ããã¯æºè¼ã§ãã ãã®ãµã¼ãã®å½¹å²ã¯ä½ã æ®éã ã£ãããµã¼ã管ç表ããµã¼ã管çã¢ããªã«å½è©²ãµã¼ãã®å½¹å²ã¨ããã¸ã§ã¯ããè¨è¼ããã¦ããã¯ãã§ãã ããããpingãéãã pingãéããªããã°ãã©ããããããªãã§ãã ãµã¼ããæ»ãã ããgatewayãæ»ãã ããã¢ã¯ã»ã¹ãããã¯ã¼ã¯ãæ»ãã ããèãããã¾ããtracerouteãã¦ã¿ã¦ã©ããæ»ãã§ããã®ãããã¹ã¦ã¿ãã¨ããã§ãããã sshã§ç¹ããã pingãéããã©å½è©²ãµã¼ãã«sshæ¥ç¶ã§ããªãå ´åã¯ãåç´ã«éããOOM Killerãèµ°ã£ã¦ããå ´åãããã¾ãã ã©ããããããªããã°ãIPMIãããã¯ç®¡çã³ã³ã½ã¼ã«çµç±ã§ãµã¼ããåèµ·åããå¿ è¦ãããã§ãããã ãã¼ãã¢ãã¬ã¼ã¸(LA)ã¯é«ããªãã ä½ã¯ç¡ãã¨ãLAã®ç¶æ ãè¦ã¾ãã
ãµã¼ã管çæè¡IPMI ã¹ãã¼ã«ã¼ ããããã çºè¡¨è³æ Googleã¹ã©ã¤ã â»å½åéå ¬éã¨ãã¦ãã¾ããããä¸è¬å ¬éãã¾ãã(2018/3/25) æ¬ç·¨(16:00-17:45) ç®æ¬¡ IPMI ã®æ¦è¦ BMC ã®å¼ç§° OOB ã®æ©è½ OOB ã® WEB OOB ã® CLI IB ã®æ©è½ åèæç® IPMI ã¨ã¯ Intelligent Platform Management Interfaceãèªã¿æ¹ã¯ã¢ã¤ãã¼ã¨ã ã¢ã¤ã IntelãHPãNECãDell ãä»æ§ãçå®ã Intel ã®ãã¼ã ãã¼ã¸ã«ä»æ§æ¸(PDF)ãç¡æå ¬éããã¦ããã â»ä»æ§æ¸ã®URLã¯ä¸å®æã«å¤åããããããIntel IPMI PDFãã§æ¤ç´¢ããã®ãããã§ãã v1.0 ã 1998 å¹´ã«ç»å ´ãææ°ç㯠v2.0 (2015å¹´) IPMI ã¨ã¯ ã»ã»ã» ãµã¼ãã管çããããã®ä»çµã¿ ä¸é¨ã®ãµã¼ã製åï¼ãã¼ã¨ã³ã
ã»ãã¥ã¢ã¢ã¯ã»ã¹ã²ã¼ãã¦ã§ã¤ ã»ãã¥ãªãã£å°éã®ã¹ã¿ãããããªãä¼æ¥ãã¾ã§ãå®å ¨ã«å©ç¨ã§ãããµã¼ãã¹ããæ±ããããä¾¡æ ¼ã§ãæä¾ãããã¾ãã
Virtualboxã¨Vagrantã§ä½ã£ãä»®æ³ãã·ã³ãä»ã®PCã«ã³ãã¼ãã ä»®æ³ãµã¼ãã¯ä¾¿å©ã ãã©æ¬ ç¹ãããããããã¯ã¼ã¯ä¸ã«å ±éã®ç°å¢ãããããã§ã¯ãªãã®ã§ãè¤æ°äººã»è¤æ°ç°å¢ã§éçºãè¡ã£ã¦ããã¨ã©ããã¦ãè¨å®ãªã©ã«å·®ãåºã¦ãã¦ãã¾ããä¾ãã°yumã§ããã±ã¼ã¸ãå ¥ããã»å ¥ããªããsshã®è¨å®ãããã»ããªãããªã©æãå½ãããã¨ã¯å¤ãã ããã â¦å¤ãããï¼ ã¾ããããã解決ããæ¹æ³ã¨ãã¦ã¯chefã§ç°å¢è¨å®ãè¡ãã¨ãããããããããã©ãæã£åãæ©ãã®ã¯ä»®æ³ãµã¼ããã®ãã®ãã³ãã¼ãã¦ä»äººã«æ¸¡ãã¦ãã¾ããã¨ã ãããç°å¢ãè¤è£½ãã¡ããã¨ããä¹±æ´ãªæ¹æ³ã ãã©ã確å®ã ã¨ããããã§ãããã£ã¡ã ãæé ãå¿ãã¡ããã®ã§ã¡ã¢ãã¦ããã ä»®æ³ãã·ã³ã®ã³ãã¼ ã¾ããã³ãã¼ãããVagrantç°å¢ã®ãã£ã¬ã¯ããªã«ç§»åããããã¤ãvagrant upãã¦ããã£ã¬ã¯ããªã ã cd 対象ã®ãã£ã¬ã¯ã㪠vagrantã®
Amazon Linux 2 ããã³ Amazon Linux 2023 ã« Amazon Corretto 8 ãã¤ã³ã¹ãã¼ã«ããæé ãã®ãããã¯ã§ã¯ãAmazon Linux 2 ã¾ã㯠Amazon Linux 2023 ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ãå®è¡ãããã¹ãã¾ãã¯ã³ã³ããã«å¯¾ãã¦ãAmazon Corretto 8 ãã¤ã³ã¹ãã¼ã«ããã³ã¢ã³ã¤ã³ã¹ãã¼ã«ããæ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã ãªãã·ã§ã³ 1: Amazon Linux ã§yumããã±ã¼ã¸ããã¼ã¸ã£ã¼ã使ç¨ãã
SLA (Service-level agreementããµã¼ãã¹æ°´æºåæããµã¼ãã¹ä¿è¨¼å¶åº¦ï¼ã«è¨è¼ããã¦ãã稼åçããä¿è¨¼å¯¾è±¡å¤ã®æéãã¦ã³ã¿ã¤ã ãè¨ç®ãã¾ãã 稼åå²å% å°æ°ç¹æ¡ã¾ã§è¡¨ç¤º åä½ SLAã®ä¾ï¼èª¿æ»æ¥ 2014/02/13) â»ææ°ã®æ°åã詳ããæ¡ä»¶ãè¨èã®å®ç¾©ãªã©ã¯åãµã¼ãã¹ã®ãµã¤ãã§ç¢ºèªãã¦ãã ãããæ¸é¡ãããã§ã¯è¿éã¨è¨è¼ãã¦ãã¾ãã Amazon EC2 æé使ç¨å¯è½æéå²å 99.0% ä»¥ä¸ 99.95ï¼ æªæº â å©ç¨æé 10% è¿é æé使ç¨å¯è½æéå²å 99.0ï¼ æªæº â å©ç¨æé 30% è¿é Amazon S3 æé使ç¨å¯è½æéå²å 99.0% ä»¥ä¸ 99.9ï¼ æªæº â å©ç¨æé 10% è¿é æé使ç¨å¯è½æéå²å 99.0ï¼ æªæº â å©ç¨æé 25% è¿é Google App Engine æéã®ãµã¼ãã¼ç¨¼åç 99.00% ä»¥ä¸ 99.9
çããä»æ¥ãããããã®ãµã¼ããç¸æã«ããã¦ãããã¨ãã¨æãã¾ãããããã¤ãã®ãµã¼ãã«ã¢ã¯ã»ã¹ã㦠1 ç§éã®çµ±è¨æ å ±(ä¾ãã°vmstat 1 2)ãéãã¦ããã¨è¡¨ç¤ºãããæã£ã¦ã©ããã£ã¦ã¾ãããï¼shell script ãå¦ã³ã¯ãããã°ã£ããã®åã¯ãããªæãã§æ¸ãã¦ã¾ããã $ for i in host1 host2 host3; do ssh $i "vmstat 1 2 | tail -1"; done 0 0 0 329004 210836 14275360 0 0 0 2424 1410 1828 0 0 100 0 0 0 0 0 3716112 587704 25921684 0 0 0 488 1643 2026 0 0 100 0 0 1 0 0 555440 265560 14015548 0 0 0 4204 1534 2392 1 0 99 0 0 vmstatã¨
bashã³ãã³ãã®ããã¯ã°ã©ã³ãå®è¡æ¹æ³ã«ã¤ãã¦ãã¾ã¨ã¾ã£ã¦ããè¨äºãè¦ã¤ãããªãã£ãã®ã§ã¾ã¨ãã¡ã¢ é常ã®ããã¯ã°ã©ã¦ã³ãå®è¡ &ã§ããã¯ã°ã©ã³ãå®è¡ åèï¼http://kazmax.zpp.jp/linux_beginner/process_background.html ãã£ã¨ãåºæ¬çãªããã¯ã°ã©ã³ãå®è¡ãã³ãã³ãã®å¾ãã«&ãã¤ãã¦å®è¡ããã ã¿ã¼ããã«ã®åæãåããããã¦ãã°ã¢ã¦ãããå ´åã«ã ãã®æ¹æ³ã§å®è¡ããããã»ã¹ã¯killããã¦ãã¾ãã®ã§æ³¨æããã éåãããå°ãå¦çã®å ´åã¯tmuxã®ã»ãã·ã§ã³ä¸ã§å®è¡ã ãããã¯å¾è¿°ããnohupã³ãã³ãã§ã®ããã¯ã°ã©ã¦ã³ãå®è¡æ¨å¥¨ã # ããã¯ã°ã©ã¦ã³ãå®è¡ $ sleep 5 & [1] 21871 # ããã»ã¹ç¢ºèª $ ps $! # ps 21871 PID TTY STAT TIME COMMAND 21871 pts/0 S
ãµã¼ãã®åä½ã«ç°å¸¸ãçºçããéã«åå ãæ¢ãããã®Linuxã³ãã³ãã§ãèªåç¨ã®ã¡ã¢ã§ãã å ¨ã¦manã¨ãã°ã°ã£ããåºã¦ããã®ã§èª¬æã¯é©å½ã§ããæãã¤ãããå¾ã§è¿½è¨ãã¦ããããã§ãã 対象ã¯Debian Squeezeã«ãªãã¾ãã å ¨ã¦ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«ã§ãããã®ã§ãããã±ã¼ã¸å㯠[in packagename] ã¨ãã¦ããã¾ãã åæããã³ã¡ã³ããããã¨ããããã¾ãã è¯ãæ°ãªã³ãã³ãã¯è¿½è¨ãã¦ããã¾ãã ï¼è¿½å ããã³ãã³ãï¼ * telnet (+ã³ã¡ã³ã wget, netcat) * arp (+ã³ã¡ã³ã arpwatch) * pstree * fdisk ã³ã¡ã³ãã« gdisk * host, dig * watch * reboot
On an Amazon S3 Linux instance, I have two scripts called start_my_app and stop_my_app which start and stop forever (which in turn runs my Node.js application). I use these scripts to manually start and stop my Node.js application. So far so good. My problem: I also want to set it up such that start_my_app is run whenever the system boots up. I know that I need to add a file inside init.d and I kn
森永ã§ãã å æ¥ã»ãã¥ãªãã£ã°ã«ã¼ãã®åã«ã¼ã«ã«ã³ã¡ã³ããæ¸ããããã«ãªãã¾ããã [æ°æ©è½]Security Groupã®ã«ã¼ã«ã«èª¬æãè¨è¼å¯è½ã«ãªãã¾ããï¼ ï½ Developers.IO ãããæ©ã«ã»ãã¥ãªãã£ã°ã«ã¼ãã®æ£å¸ãããããï¼ã¨ããæ©éãé«ã¾ãã¾ãããã ãã ãã»ãã¥ãªãã£ã°ã«ã¼ãä¸è¦§ãè¦ãã¨ä½¿ã£ã¦ããã®ãã使ã£ã¦ãªãã®ãåãããªããã®ãå¤æ°ããã¾ãã 使ã£ã¦ããªããã®ã管çããã®ãæéã®ç¡é§ãªã®ã§åé¤ãããã®ã§ãããä¸æã«æ¶ãã¨éä¿¡ãé®æããã¦å¤§å¤ãªãã¨ã«ãªãå¯è½æ§ãããã¾ãã ä»åã¯ä½¿ç¨ãã¦ããªãã»ãã¥ãªãã£ã°ã«ã¼ããæ´ãåºãæ¹æ³ãæ¤è¨ãã¦ã¿ã¾ãã ä»åã¯EC2-VPCã»ãã¥ãªãã£ã°ã«ã¼ãã®ã¿ã対象ã¨ãã¦ãã¾ãã Case1: AWS Configãæå¹åãã¦ããå ´å AWS Configã«ã¯ç´ä»ãã¦ããAWSãªã½ã¼ã¹ãæ´ãåºããã¨ãããã®ã§ãã AWS Configã
ããè¨ç·´ãããã¢ããã«ä¿¡è ãé½å ã§ããAmazon Linuxã¯åæç¶æ ã§NTPã«ããã·ã¹ãã ã¯ããã¯ã®åæãè¡ãããã«ãªã£ã¦ãã¾ããå ·ä½çã«ã¯ãntpdãã¤ã³ã¹ãã¼ã«æ¸ã¿ã§ãèªåèµ·åãONã«ãªã£ã¦ãã¾ãã $ chkconfig --list ntpd ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off ãã®è¨å®ãã¡ã¤ã«ã¯/etc/ntp.confã«ããã¾ããããã®ãã¡ã¤ã«ãåç §ããæãããã4ã¤ã®NTPãµã¼ããå©ç¨ãã¦æå»åæãè¡ã£ã¦ããããã§ãã server 0.amazon.pool.ntp.org iburst server 1.amazon.pool.ntp.org iburst server 2.amazon.pool.ntp.org iburst server 3.amazon.pool.ntp.org iburst NTP POOL P
2013 å¹´ 3 æã京é½å¤§å¦é»æ©ã»æ²³åç 究室ã«ã¦æ å ±å¦ã®å士ãåå¾ãåå¹´ 4 æãã¯ãã¯ãããæ ªå¼ä¼ç¤¾ã«å ¥ç¤¾ãæ¤ç´¢ã¨ã³ã¸ãã¢ãæ©æ¢°å¦ç¿ã¨ã³ã¸ãã¢ãæ¤ç´¢ãã¼ã ã®ãªã¼ãã¼ãç 究éçºé¨ã®é¨é·ãæ´ä»»ã2023 å¹´ 9 æãLINE ã¤ãã¼æ ªå¼ä¼ç¤¾ã«è»¢è·ãç¾å¨ã¯èªç¶è¨èªå¦çã¨ã³ã¸ãã¢ã¨ãã¦åºç¤è§£æã®æ¹åãèªç¶è¨èªå¦ç API ã®éçºã¨éç¨ã«å¾äºã
2014-11-11 00:00:00 -0800 Overview Redis is an excellent key/value cache that is used across many of Shokunin's customers. While redis is an great piece of software it is often difficult to obtain information about actually running it in production from an operational perspective. This article aims to discuss the necessary steps that ops teams should take before running redis in a production envir
ELBã®ã¡ããªã¯ã¹ã®ã¹ãã¼ã¿ã¹ã«ã¯ãããã¯ã¨ã³ãã®EC2ãè¿ããã¹ãã¼ã¿ã¹(HTTPCode_Backend_XXX)ã¨ãELBèªèº«ã®ã¹ãã¼ã¿ã¹(HTTPCode_ELB_5XX)ãããã¾ãã ELBèªèº«ã®ã¹ãã¼ã¿ã¹ã³ã¼ãã®ä¸ã«ã¯504ã¨ããã¨ã©ã¼ã³ã¼ããããã¾ãããã®504ã¨ã©ã¼ã¨æ ¼éãã話ãæ¸ãã¾ãã ãã®504ã¨ã©ã¼ã¯ãCloudWatchã®ã¡ããªã¯ã¹ã§è¨ãã¨HTTPCode_ELB_5XXã«ä¸ãã£ã¦ãã¾ãã ãã®ã¡ããªã¯ã¹ã¯5XXã¨ããååã®éãã504以å¤ã®ã³ã¼ããå«ãã§ãã¾ãã ä¾ãã°ã HTTP 502: Bad Gateway (ããã¯ã¨ã³ããµã¼ãããã®ã¬ã¹ãã³ã¹ãHTTPã¬ã¹ãã³ã¹ã¨ãã¦è§£éä¸è½)ãã HTTP 503: Service Unavailable (çªçºçãªã¢ã¯ã»ã¹å¢ã«ããã¹ã±ã¼ã«ãéã«åããªãæãªã©ï¼ ãªã©ãããã¾ãã å®éã«504ãã©ããã¯S3ã«ä¿åãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}