2014-01-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ããã« ååã«å¼ãç¶ã capistrano 㨠chef-solo ã§ã·ãªã¼ãºç¬¬äºå¼¾ ãã£ãããªã㧠EC2 ã¤ã³ã¹ã¿ã³ã¹ããã£ã¦ã¿ã ã»ããã¢ããå¾ã®ç¢ºèªã«ã¯ååã¨åæ§ã« serverspec ã使ã ã¨ããããã¡ã¢ ãããªæã㧠以ä¸ã®ãããªäºãåºæ¥ãããã«ããã ã¤ã³ã¹ã¿ã³ã¹â¦
ã¯ããã« knife-solo ã§ä¸å°ã®ãã¹ããã»ããã¢ãããããã¨ã¯åºæ¥ã¦ãåæã«è¤æ°ã®ãã¹ããã»ããã¢ããããã®ã¯ã¡ã¨é£ãã ã§ã capistrano 㨠chef-solo ã使ãã°åæã«è¤æ°ã®ãã¹ããã»ããã¢ãããããã¨ã¯åºæ¥ãã ã¨ãããã¨ã§ä»æ´ã ãã© capistrano â¦
ã¯ããã« Cassandra ã®äºã調ã¹ãæã«ãã¤ããä¸è©±ã«ãªã£ã¦ãã id:oranie ããã®ããã°è¨äºã§ Cassandra Summit ã®åå¨ãç¥ãå± ã¦ãç«ã£ã¦ãããããç³ãè¾¼ãã§è¡ã£ã¦ããã®ã§ã¡ã¢ã åè â Cassandra Summit JPN 2014ã§ã¹ãã¼ã«ã¼ããäºå®ã§ã Cassandra Suâ¦
ã¯ããã« ã³ã³ããã¤ã¡ã¼ã¸ã¯ index.docker.io ã«ã ãä¿ååºæ¥ãã¨æã£ã¦ãããå人ã§ããªãã¸ããªãæã¦ãããã ããããã³ã³ããã¤ã¡ã¼ã¸ã Amazon S3 ã«ä¿ååºæ¥ããããã®ã§èª²éã«æ³¨æãã¤ã¤*1ãã¡ãã§è©¦ãã¦ã¿ãï¼ å°ããªãã¸ããªã®ç°å¢èªä½ãã³ã³ããâ¦
ã¯ããã« æ´çåºæ¥ã¦ãªããã© ã³ããã®çºã¨ãã«æ¸ãã¦ãã Jenkins Jenkins ã® API ã使ã£ã¦ Web ã®ã³ã³ã½ã¼ã«ãåºæ¥ãã ã使ããªãããã«ããçºã®ãã¼ãã·ã¼ãã Job ãã³ãã¼ãã¦æ°è¦ä½æãã ãããããã³ãã¼å ã® Job ãä½ãå¿ è¦ããããã©ã JOB_NAME= â¦
ã¯ããã« ãªãã£ã·ã£ã«ã® docker ã®ã¯ã©ã¤ã¢ã³ãã MacOS X ããã使ããããã«ãªã£ããããã®ã§è©¦ãã¦ã¿ã ãªã¢ã¼ãã§ç¨¼åãã¦ãã Docker ãµã¼ãã¼ï¼Docker ãµã¼ãã¼ã¨ããè¨ãæ¹ã§æ£ãããããããªããã©ï¼ åè dotcloud/docker Command Line Help å ¬å¼â¦
ã¯ããã« ä»æ´ãªãã capistrano ã«æåããã®ã§ã¤ã³ãã©ã¨ã³ã¸ã¤ãªãã®è¦ç¹ã§è§¦ã£ã¦ã¿ã¦ä½¿ãæ¹ãã¾ã¨ãã¦ã¿ãã capistrano ã¨ã¯ 以ä¸ã¯èªåãæ±ã capistrano ã¸ã®ã¤ã¡ã¼ã¸ã è¤æ°ã®ãã¼ãã«å¯¾ãã¦ä¸¦åãã¦ã³ãã³ããå®è¡åºæ¥ãï¼ï¼ããããã¤ã³ãï¼ ã³ãâ¦
ã¯ããã« DataStax ã®ããã¥ã¡ã³ãã« Planning an Amazon EC2 cluster ã¨ããããã¥ã¡ã³ãããã£ãã®ã§èªãã§ã¿ã åè Planning an Amazon EC2 cluster + å人çã«è¨³ãããã® EC2 Ephemeral Disks vs EBS Volumes in RAID NYC* Jonathan Ellis Keynote: "Caâ¦
ã¯ããã« EC2 ã¤ã³ã¹ã¿ã³ã¹ä¸ã« Cassandra ã¯ã©ã¹ã¿ãæ§æããã®ã¯åå ä»å㯠VPC å ã®ç°ãªã AZ ãã¾ããã§ã¯ã©ã¹ã¿ãæ§æãã¦å¯ç¨æ§ãé«ãã*1 cqlsh ã使ã£ã¦æ§æããã¯ã©ã¹ã¿ã«å¯¾ãã¦ã¯ã¨ãªãæãã¦ã¿ã åè Configuring firewall port access æ§æ ãâ¦
ã¯ããã« elasticsearch ã¯ã©ã¹ã¿ã EC2 ä¸ã«æ§ç¯ãã¦ã¿ã¦ã¯ã©ã¹ã¿æ§ç¯ã®æé ã«ã¤ãã¦æ´çãã æ¢ã«ç¨¼åãã¦ããã¯ã©ã¹ã¿ã«ãã¼ãã追å ããæé ã«ã¤ãã¦ãæ´çãã åè ElasticSearchå ¥é Clusteræ©è½ã使ã â AWSã§å§ããElasticSearch(2) elasticsearch â¦
ã¯ããã« ååã¯ããã£ã¨ sensu ã使ã£ã¦ã¿ãã®ã§ãå°ãæãä¸ãã¦ã¿ã æ¤è¨¼ã«ä½ã£ã Dockerfile éãã¡ãã£ã¨ä¿®æ£ãã¦ã¿ã åè Sensuã使ã£ã¦èªç±åº¦ã®é«ãç£è¦ã·ã¹ãã ã®æ§ç¯ãè¡ãæ¹æ³ Overview of Sensu Sensu Intro sensu ã®ãããã sensu ã£ã¦ãªããâ¦
ã¯ããã« ã¨ããããã¡ã¢ åè jq Manual 軽éJSONãã¼ãµã¼ãjqãã®ããã¥ã¡ã³ãï¼ãjq Manualãããã£ããæ¥æ¬èªè¨³ãã¦ã¿ã¾ãã AWS CLI aws-cli ãã¼ãã·ã¼ã ã¤ã³ã¹ã¿ã³ã¹ã®æ å ±ãåå¾ï¼1ï¼ ã¤ã³ã¹ã³ã¿ã³ã¹ã¸ ssh ã§ã¢ã¯ã»ã¹ããã®ã«å¿ è¦ãªæ å ±ãåå¾ããâ¦
ã¯ããã« docker 㨠puppet ã使ã£ã¦ sensu ã®ç°å¢ãæ§ç¯ãã¦ã¿ã sensu ã«ã¤ãã¦ãã£ããç解ãã æ§ç¯ã§ã¯ chef ã§ã¯ãªã puppet ã§è©¦ãã¦ã¿ã ãã¿ãªã¿ã¤ãã«ã§ããã¾ããï¼è¨äºã®ä¸èº«ã¯ã»ã³ã¹ããã¾ããï¼ åè Sensu Documentation Sensu Intro Sensuãâ¦
ã¯ããã« Cassandra ã«ã¤ãã¦éç¨ã¨ãç£è¦ã«ã¤ãã¦ã°ã°ã£ãçµæçãã¨ããããã¡ã¢ãã¦ã¿ã Cassandra ã«ã¤ã㦠KVS åæ£å¦çã«å¯¾å¿ãã NoSQL ã¿ã¤ãã®ãã¼ã¿ã·ã¹ãã ãã¼ã¿ã¨å¦çããã¼ãã«åæ£ããããã«ãã¼ãã®è¿½å ã«ãã£ã¦ãã¼ã¿éã¨å¦çè½åãã¹ã±ã¼â¦
ã¯ããã« aws-cli ã®ããã¥ã¡ã³ãã Amazon ã® Paperwhite ã§èªããããã«ãªãã°å¬ãããªãã¨æã£ã¦ã½ã¼ã¹ã³ã¼ãã® Makefile ãè¦ãã epub å½¢å¼ã®åºåããµãã¼ããã¦ãããããªã®ã§è©¦ãã¦ã¿ãã æé 試ããç°å¢ epub ã¸ã®å¤æ㯠Ubuntu 13.04 epub ã®é²è¦§â¦
ã¯ããã« å人ã®ã¢ã«ã¦ã³ãã¨ãã以å¤ã®ã¢ã«ã¦ã³ããã©ããã£ã¦ä½¿ãåããããã¨æ©ãã§ããã... ãã¡ã ã«æ²è¼ããã¦ããæ¹æ³ã§è©¦ãã¦ã¿ã ã¾ãã--filter ãªãã·ã§ã³ãå©ç¨ãã¦åºåçµæãããæ軽ã«çµãè¾¼ãã§ã¿ã åè AWSã®æ°ããCLI(1.0.x)ãªããã«ãã¢â¦
ã¯ããã« åå ELB ãæ§ç¯ããéã«ããããï¼ãã¨æã£ãã®ã AZ éã§ãã©ã³ã·ã³ã°ãåã£ã¦ãããããªç¾è±¡ãè¦ãããã®ã§æ¹ãã¦æ¤è¨¼ãã¦ã¿ããã¨ã«ãããã¡ãªã¿ã«ãæ¶ã®èªè ¹ã¢ã«ã¦ã³ãã§æ¤è¨¼ããã*1 ã¨ããããæ§ç¯ æ§æå³ ä»¥ä¸ã®ãããªæ§æã ELB ã®æ§ç¯ ELâ¦
ã¯ããã« ã©ãããèªç§°ã¤ã³ãã©ã¨ã³ã¸ãã¤*1ã®ãã£ã±ã§ããããããã MySQL ã®ãã¼ãã«ã¡ã³ããã³ã¹ã®ã·ã§ã«ã¹ã¯ãªãããæ¸ããéã«å½¹ç«ã£ããã¨ãå¹¾ã¤ãæ¸ãã¦ã¿ããã¨ã«ãã¾ãã åèæç® ï¼£è¨èªã«ããã¦ãNULL 㨠0 㨠'\0' ã®éãã¯ä½ã§ããï¼ Cè¨èªã®â¦
ã¯ããã« aws-cli ã³ãã³ããå©ç¨ãå§ãã¦ã³ãã³ãã®è£å®æ©è½ãã»ãããªãã¨æã£ã¦ããããããªæ©è½ããããããªã®ã§è¨å®ããã åè zshã§aws-cliã®ã³ãã³ãè£å®ãå©ç¨ãã 幸ã Mac ã§å©ç¨ãã¦ããã·ã§ã«ã¯ zsh ãªã®ã§åèã®è¨äºãã»ã¼ãã®ã¾ã¾å®æ½ããã¦â¦
ã¯ããã« EC2 ã¤ã³ã¹ã¿ã³ã¹ä¸ã« Cassandra ãã¤ã³ã¹ãã¼ã«ãã¦ã¯ã©ã¹ã¿ãæ§æãã åãã㦠DataStax ã® OpsCenter ãã»ããã¢ãããã AWS ã®æä½ã¯åºæ¬çã« awscli ãå©ç¨ãã ã¨ãããã Cassandra ã¨ã¯...ã«ã¤ãã¦ã¯å¥éæ¸ãã¨ãã¦ä»åã¯ã¯ã©ã¹ã¿ãæ§æâ¦
ã¯ããã« ELB ã§é ä¸ã®ã¤ã³ã¹ã¿ã³ã¹ã AutoScaling ã使ã£ã¦ç«ã¡ä¸ããããè½ã¨ããããã ã¨ãããã試ããéã®ã³ãã³ããã¡ã¢ 詳細ã¯é©å®ã¢ãããã¼ããã¦ãã åè autoscaling AWSã®VPCã§Auto Scalingã試ããè¨é² ELB & CloudWatch & AutoScaling - AWSâ¦
ã¯ããã« Debian 6(squeeze) 㧠jq ã使ãéã®ã¡ã¢ ã¡ã¢ ã¤ã³ã¹ãã¼ã« ããããå°å ¥ã§èºãããjq 㯠Unstable æ±ãã¨ãªã£ã¦ããæ®éã« apt-get ã§ã¯ã¤ã³ã¹ãã¼ã«åºæ¥ãªãããããã±ã¼ã¸ã ããã¦ã³ãã¼ããã¦... dpkg -i jq_1.3-1_amd64.deb ã§ã¤ã³ã¹ãã¼ã«ãâ¦
ã¯ããã« åã®è¨äºã®ç¶ã RDS ãã³ãã³ãã©ã¤ã³ã§æ§ç¯ãã MariaDB ã§ãåãç°å¢ã§ãã³ããã¼ã¯ãåã£ã¦ã¿ã åè rds MariaDB æ§æ 以ä¸ã®ãããªæ§æã§æ¤è¨¼ãè¡ã£ãã MySQL 㨠MySQL-Cluster 㨠MariaDB ã«é¢ãã¦ã¯ EC2 ã¤ã³ã¹ã¿ã³ã¹ä¸ã«æ§ç¯ãã¦åä¸ãã¹â¦
ã¯ããã« EC2 ä¸ã« MySQL 5.5 ç³»ã®ãµã¼ãã¼ã¨ MySQL Cluster ã®ãµã¼ãã¼ãæ§ç¯ã㦠mysqlslap ã§ãã³ããã¼ã¯ãåã£ã¦ã¿ã ã¤ãã§ã« RDS ã§ãåããããªãã³ããã¼ã¯ãåã£ã¦ã¿ã å°ãMySQL Cluster ã¯è¤æ°å°æ§æã§ã¯ãªãä¸å°æ§æï¼è¤æ°å°æ§æã¯å¥éæ¤è¨¼ãè¡â¦
ã¯ããã« XenServer 㧠VM ãã©ããã¦ãåèµ·ååºæ¥ãªãå ´åã®ãã«ã¹çãªå¯¾å¦æ³ã«ã¤ã㦠åè ä¿çã¾ãã¯é»è²ç¶æ ã§å¿çããªãä»®æ³ãã·ã³ã®ã·ã£ãããã¦ã³æ¹æ³ ã©ãããã®ãï¼ é常ã¯...ï¼åç´ç·¨ï¼ xe vm-reboot UUID=${vm_uuid} ããã«å¼·å¶çã«åèµ·åããå ´â¦
ã¯ããã« ãã£ã¨éãç¶ãã¦ãã Mac 㧠tmux ã使ã£ã¦ããæã®ã³ãã¼ã¢ã¼ãã¨ã¯ãªãããã¼ãã®é£æºã«ã¤ãã¦ãã£ã¦ã¿ããã¡ãªã¿ã« Mac ã§ã¯ã¯ãªãããã¼ããã³ãã³ãã©ã¤ã³ããå©ç¨ããå ´åã«ã¯ pbcopy 㨠pbpast ãå©ç¨ããã¨ã®ãã¨ã ããtmux ããã¯å©ç¨åºâ¦
ã¯ããã« åã®è¨äºã§ VPC ãå©ç¨ãã¦è¤æ°ã® AZ ãã¾ããã ELB ç°å¢ã®æ§ç¯ã Management Console ã使ã£ã¦è¡ã£ã ä»åã¯åãç°å¢ãã³ãã³ãã©ã¤ã³ãã¼ã«ã® awscli ã使ã£ã¦æ§ç¯ãã¦ã¿ã Management Console ããè¨å®ããã®ã¨ã©ã£ã¡ã楽ãã£ã¦èãããã¨è¿çâ¦
ã¯ããã« ããã¾ãã¦ããã§ã¨ããããã¾ã 2014 å¹´ãå®ãããé¡ãè´ãã¾ã æ¨å¹´æ«ã« boxen ããããå§ãã¦çåãå¹¾ã¤ã湧ãã¦ããã®ã§ã¡ã¢ çµå±ã®ã¨ãã puppet ã«è¾¿ãçããã®ã§ puppet ã«ã¤ãã¦ãã¡ã¢ include 㨠class ã®éã åå¥è¨å®ãªè¨å®ãæ¸ã manifâ¦