Skip to content

Commit

Permalink
oobgc
Browse files Browse the repository at this point in the history
  • Loading branch information
sorah committed Sep 26, 2015
1 parent 8f774e7 commit d9ee9c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions 5q/config/nginx.conf
Expand Up @@ -9,7 +9,6 @@ events {
http {
upstream unicorn {
server unix:/tmp/unicorn.sock fail_timeout=0;
keepalive 4;
}

log_format ltsv "status:$status"
Expand Down Expand Up @@ -51,15 +50,11 @@ http {

location = / {
add_header Cache-Control private;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://unicorn;
}

location / {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://unicorn;
}
Expand Down
1 change: 1 addition & 0 deletions 5q/webapp/ruby/Gemfile
Expand Up @@ -8,3 +8,4 @@ gem "erubis"
gem "unicorn"
gem 'redis'
gem 'stackprof'
gem 'gctools'
2 changes: 2 additions & 0 deletions 5q/webapp/ruby/Gemfile.lock
Expand Up @@ -2,6 +2,7 @@ GEM
remote: https://rubygems.org/
specs:
erubis (2.7.0)
gctools (0.2.3)
kgio (2.10.0)
mysql2 (0.4.0)
mysql2-cs-bind (0.0.6)
Expand All @@ -27,6 +28,7 @@ PLATFORMS

DEPENDENCIES
erubis
gctools
mysql2
mysql2-cs-bind
redis
Expand Down
3 changes: 3 additions & 0 deletions 5q/webapp/ruby/config.ru
Expand Up @@ -12,4 +12,7 @@ unless ENV['ISUCON5_DISABLE_LOGS'] == '1'
path: '/tmp/stackprof'
end

require 'gctools/oobgc'
use(GC::OOB::UnicornMiddleware) # in config.ru for unicorn

run Isucon5::WebApp

0 comments on commit d9ee9c7

Please sign in to comment.