- 要素
- スループット:rps,tpsなど
- レスポンスタイム:1画面の表示速度など
- 多重度:同時xxアクセス、など
- リソース:CPUなどなど
現場で使える性能マネジメント - 現場で使える性能マネジメント:ITpro
Webアプリで起きるクライアントサイドの性能劣化パターンとその改善チューニング (1/3):CodeZine(コードジン)
現場で使える性能マネジメント - 現場で使える性能マネジメント:ITpro
Webアプリで起きるクライアントサイドの性能劣化パターンとその改善チューニング (1/3):CodeZine(コードジン)
pip導入
curl -O https://bootstrap.pypa.io/get-pip.py sudo python get-pip.py
awscli導入
sudo pip install awscli --upgrade --ignore-installed six
参考
install
brew install logrotate
適当にplistつくる
sudo nvim /Library/LaunchDaemons/logrotate.plist
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>logrotate</string> <key>ProgramArguments</key> <array> <string>/usr/local/sbin/logrotate</string> <string>/etc/logrotate.conf</string> </array> <key>Disabled</key> <false/> <key>RunAtLoad</key> <false/> <key>StartCalendarInterval</key> <dict> <key>Minute</key> <integer>0</integer> </dict> </dict> </plist>
下準備
mkdir /usr/local/var/lib/ sudo /usr/local/sbin/logrotate -f /usr/local/etc/logrotate.conf
起動
sudo launchctl load /Library/LaunchDaemons/logrotate.plist
停止
sudo launchctl unload /Library/LaunchDaemons/logrotate.plist
参考にした
DMG拾ってくる場所
Index of packages.treasuredata.com/2/macosx
設定ファイルの場所
/etc/td-agent/td-agent.conf
logの場所
/var/log/td-agent/td-agent.log
起動
sudo launchctl load /Library/LaunchDaemons/td-agent.plist
停止
sudo launchctl unload /Library/LaunchDaemons/td-agent.plist
動作確認のためtsv食わせてみる
<source> type tail format tsv keys col1,col2,col3 tag hoge.fuga path /usr/local/var/log/hoge.log pos_file /tmp/td-agent.pos </source> <match hoge.**> type stdout </match>
sudo /opt/td-agent/embedded/bin/gem fluent-plugin-kinesis
todo
gem install rails --version "5.0.0.1" --no-rdoc --no-ri
rbenv + ruby-build はどうやって動いているのか - takatoshiono's blog
Homebrewでrbenvをインストールする | Mawatari.jp
ふつうのコンパイラをつくろう 言語処理系をつくりながら学ぶコンパイルと実行環境の仕組み