App::Monitor::Simpleãcpanã«ä¸ãã
ææ¸ããè¨äº
http://d.hatena.ne.jp/tori243/20120609/1339255200
æè¿cronã§ä½¿ãæ©ä¼å¢ãã¦ã¦ãcpanãã£ãã»ãã楽ã ãªã¼ã¨æã£ã¦cpanizeãã¾ããã
ã¤ãã§ã«Minillaåããã®ã¯ãããã§ããããªããæãã¦æ®éã«tarballã§ã¢ãããã¼ããã¾ããããã
ä»åããããªãä¾åãåé¤ãããã§ããã©
ãªãã§AnyEvent使ã£ã¦ãã®ãæãåºããªããã*1
*1:æ®éã«AnyEvent使ãããã£ãã ãã ãããªã¼
YAPC::Asia 2013 ã«åå ãã¦ãªããæ¸ãã¦ãã¨ããã話
ãªãã ããã ã§ä»å¹´ã§4åç®ã®YAPC::Asiaã
ãªãããããããä¸æ¸ããããã§ãã
ã°ãã°ããªè¨äºã«ãªãããã ã£ãã®ã§ä¸è¨ã§ã¾ã¨ãã¾ãã¨ã
æé«
ã§ããï¼ï¼ï¼
ä¼å ´ããããã¯ã¼ã¯ç°å¢ããã¼ã¯ï¼ã¯ãããªãï¼ãæ親ä¼(ãããç¡æï¼DeNA++)ãã©ããã¨ã£ã¦ãæé«ã
ã¨ããè¨ãç¨ãããã¾ãããä»å¹´ãååã«æ¥½ãã¾ãã¦é ãã¾ããã
Perlç½®ããã¦ããç¾ç¶ãæ¥å¹´ã®YAPC::Asiaãªã©ãå¿é
äºã¯å¤ã
ããããã§ãã
èªåã¯ã°ãã°ãè¨ããã«ã³ã¼ãæ¸ãã¦
Perlã«è²¢ç®ãã¦ãããããªãããªã¼ãªã©ã¨æã£ã¦ãã¾ãã
ã¨ããããã§YAPCä¼å ´ã§æãè¦ã¤ãã¦ãããªã®æ¸ãã¦ã¾ããã
redis-stats
redis-stats > fluentd > GrowthForecast
ã¨ããã¨ããã¾ã§ããããã£ããã§ããã
redis-statsæ¸ãã¾ã§ããè¡ãã¾ããã§ãããæ¸ãã®é
ã
ä»å1000人è¶
è¦æ¨¡ã¨ããã¨ã¦ã大ããªã¤ãã³ãã«ãªã
éå¶ããã¦ããã¹ã¿ããã®æ¹ã
ã¯ä¾å¹´ã«ãã¾ãã¦å¤§å¤ã ã£ãã¨æãã¾ãã
æ¬å½ã«ãç²ãæ§ã§ããããã¦ãããã¨ããããã¾ããï¼
VM::EC2ã§IAMãã¼ã«èªè¨¼ãè¡ã
VM::EC2ã§ãIAMãã¼ã«èªè¨¼ãããã¦ã
VM::EC2ã«ãã«ãªã¯ã§ããããããªã¨ã³ã¼ãçºãã¦ãã¨ãã
ããããå¥ã«ã³ã¼ãå¤ããªãã¦ãä»ã®ã¾ã¾ã§è¡ããããããï¼ã
ã¨æ°ä»ãã¦ãã¾ã£ãã
use strict; use warnings; use VM::EC2; # dummy instance my $ec2_dummy = VM::EC2->new( -access_key => 'a', # 空ã ã¨æãããããã -secret_key => 'b', # 空ã ã¨æãããããã ); # get iam token my $token = $ec2_dummy->instance_metadata->iam_credentials; # get ec2 instance my $ec2 = VM::EC2->new( -security_token => $token, ); # api access... print $ec2->describe_instances();
ä¸åº¦ããã¼ã¤ã³ã¹ã¿ã³ã¹ãä½ã£ã¦ãiam_credentialsãåå¾ã
ãã®ãã¼ã¯ã³ãç¨ãã¦åèªè¨¼ããããããã
ããã§EC2ãµã¼ãã«ãã¼ãç½®ããªãã¦ãIAMãã¼ã«ï¼VM::EC2ã§APIã¢ã¯ã»ã¹åºæ¥ã¾ããï¼
Redisã®ã¡ã¢ãªè¨å®ã¨ãã¡ã¤ã«è¨å®ã®diffåãã¹ã¯ãªããæ¸ãã
â»2013/07/25 ã¹ã¯ãªããã¨æ¦è¦ãUpdateãã¾ãã
次æãã¼ã¸ã§ã³ã§ããRedis 2.8ã§ã¯ãã®åé¡ãå°ãã§ã解決ãããã¨ã CONFIG REWRITE ã¨ããã³ãã³ãã§ãredis.confã®æ¸ãæããè¡ãããããã ããçµå±ãããå¿ãããåããã¨ãªã®ã§ãã®åé¡ã®è§£æ±ºã«ã¯ãªããã¯å¾®å¦ãªã¨ããã ã ã¡ã¢ãªä¸ã«ããåæ ããã¦ããªãè¨å®ããããã©ããããªãããã®æ¹æ³ã§ãã§ãã¯ãããã¨ãã§ããã°ç£è¦ãããªã©ã§ããã¨æãã®ã ãâ¦ã
http://unknownplace.org/archives/twilio-redis-incident.html
æ¸ãæ¨ã¦ã£ã½ãã§ãããå·®åãã¨ãã¹ã¯ãªããããããã¨æ¸ãã¦ã¿ã¾ããã
æ¦è¦
以ä¸ã®ãããªãã¨ããã¦ãã¾ãã
- å¤ã空ã®ãã¼ã¯ããã©ã«ãå¤ãè¨å®
- åä½ï¼K/M/Gï¼ãæå°åä½ã«æ»ã
- ã¡ã¢ãªä¸ã®ãã¼ãæ£ã¨ãã¾ã*1
- ã¡ã¢ãªã«ã®ã¿ãã¼ãåå¨ããå ´åããã¡ã¤ã«ã®ãã¼ã«ããã©ã«ãå¤ã追å è¨å®
- ãã¡ã¤ã«ã«ã®ã¿ãã¼ãåå¨ããå ´åããã¡ã¤ã«ã®ãã¼ãåé¤
- ä¸è¨ããã·ã¥ãããã¹ãåãã¦diffåã
- å·®åããªãã¨ã0ããå·®åãããã¨ã1ããã¹ãã¼ã¿ã¹ã³ã¼ãã¨ãã¦è¿ãã¾ã
ãã§ãã¯ã¹ã¯ãªããã¨ãã¦ã使ããã ããã
*1:ããããªãã¨ãã§ãã¯ãããããªããã
redis-topã«Maxå¤ã¨ã®æ¯çãåºããªãã·ã§ã³ã追å ãã¾ãã
CONFIG GET ã§åããå¤(maxmemoryãmaxclientsãªã©)ã使ã£ã¦ä½¿ç¨çã確èªã§ããã¨ãã便å©ããªãã¨æãã¾ã
Redisの監視/分析系ツールまとめ
ãªãã»ã©ããããã¾ãããï¼
ãã¾ãã
https://github.com/toritori0318/p5-App-RedisTop
ã¾ã Githubã®ã¿ã
â»2013/7/17 追è¨
ããã«--slowlogãªãã·ã§ã³ã追å ãã¾ããã
ãªãã·ã§ã³ã§--memoryperã¨--connperã¨--slowlogã追å ãã¦ãã¾ããããã©ã«ãã§ã¯è¡¨ç¤ºããã¾ããã
ãã ãmaxmemoryã¨maxclientsã¯
redis.confã«æ示çã«æå®ãã¦ãããªãã¨CONFIG GETã§å¤åããªããã§ãããã¼*1
ããã ã注æãã¾ãããã
ãã°ããæ§åè¦ã¦åé¡ç¡ããããªãCPANä¸ããããã¨æãã¾ã
*1:--memoryã--connã¨ããã¦å¥ã«ãã¦ããã®ããã®çç±
Yogafire 0.0.4 release!
ChangeLog
- instance-type ã§è¡¨ç¤ºãã¦ããä¾¡æ ¼ã http://aws.amazon.com/ec2/pricing/pricing-on-demand-instances.json ããåå¾ããããã«ãã
- instance-type ã« ãview-detailããregionããplatformããªãã·ã§ã³è¿½å
instance-type ã§è¡¨ç¤ºãã¦ããä¾¡æ ¼
http://aws.amazon.com/ec2/pricing/pricing-on-demand-instances.json ããåçã«åå¾ããããã«ãã¾ããã
ããã§å¸¸ã«ææ°ä¾¡æ ¼æ
å ±ã表示ãã¦ãããããã«ãªã£ãï¼
instance-type ã« ãview-detailããregionããplatformããªãã·ã§ã³è¿½å
regionãåå¥ã«æå®ã§ããããã«ãã¾ããã
ã¾ãplatformã¯ãlinux/mswinãã®ãããããæå®åºæ¥ã¾ãã
ã¾ã view-detail ã追å ããæ´ã«è©³ç´°ãªæ
å ±ã表示ããããã«ãã¾ããã
å
·ä½çã«ã¯ãebs_optimizedããinstance_storageããprice_monthãã表示é
ç®ã«è¿½å ãã¾ããã
è£è¶³
æ¤ç´¢ãã£ã«ã¿ãæ©è½è¿½å ãããã¨ãã¦ãã¾ãããã
çµæ§é¢åãªä¸ãããªã«éè¦ãªãããªã¨æãå®è£
ãã¦ãã¾ããã
æéãããã°å®è£
ããããããã
Yogafire 0.0.3 release!
vpc-infoã³ãã³ã追å
yoga vpc-info
vpcãé¸æããã¨ãvpcã«é¢é£ããæ
å ±ããã©ãã©ã¨è¡¨ç¤ºãã¾ãã
ä¾ã¨ãã¦VPC Wizardã®ãvpc with public and private subnetsãã§ä½ã£ãVPCã§è©¦ãã¦ã¿ã¾ããããããªæãã
vpc-graphã³ãã³ã追å
yoga vpc-graph
vpcãé¸æããã¨ãvpcã«é¢é£ãããªã½ã¼ã¹ã®ãªã¬ã¼ã·ã§ã³å³ãããã¹ãã§è¡¨ç¤ºãã¾ãã
ããã«ããªãã·ã§ã³ãæå®ããã¨è©³ç´°ã«è¡¨ç¤ºã§ããããã¾ãã
yoga vpc-graph --route-table --detail
cmd / get / put ã³ãã³ã㧠concurrencyãªãã·ã§ã³è¿½å
並åãªãã·ã§ã³ãæå®ã§ããããã«ãã¾ããããã¼ã
# ï¼ä¸¦åã§uptimeããªã¢ã¼ãå®è¡ yoga cmd 'www*' 'uptime' -c 3 # ï¼ä¸¦åã§ãã¡ã¤ã«ãput yoga put 'db*' ./hoge.conf /path/to/conf/ -c 3
ç´è¿ã®Todo
ã¼ãããã¨
- Chefé£æºåºæ¥ãªãããªãã
- APIãæ´ã«æ´çãã Yogaflame ã¢ã¸ã¥ã¼ã«èå¯ä¸ã