Created
July 1, 2012 08:31
-
-
Save minimum2scp/3027561 to your computer and use it in GitHub Desktop.
20120701チューニンガソンでやったこと
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
公式 Score: 19.09 | |
ローカルでの瞬間最大 Score: 25.922 (get=10.900, comment=15.022(16), check=1.000) | |
* Ruby 1.8.7 -> Ruby 1.9.3 p194 | |
* gem install bundler | |
* nginx + passenger | |
* Gemfile に passenger 追加 | |
* bundle install で passenger gem インストール | |
* passenger-install-nginx-module で nginx インストール | |
* nginx チューニング | |
* ログを出さない | |
* passenger_max_pool_size 2 | |
* passenger_min_instances 2 | |
* passenger_pre_start http://122.248.233.156:3000/blog/posts/tuningathon; | |
* MySQL チューニング | |
* /var/lib/mysql -> /dev/shm | |
* innodb-flush-log-at-trx-commit=0 | |
* rails チューニング | |
* config/environments/production.rb で config/environments/development.rb 上書き | |
* config.log_level = :fatal | |
* memcached インストール | |
* memcache, memcache-client gem インストール | |
* config.cache_store = :mem_cache_store | |
* renice | |
* nginx の App (Rack) のプロセス: -8 | |
* mysqld : -12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment