Permalink
Browse files

12 workers 12 keepalive

  • Loading branch information...
sorah committed Oct 31, 2015
1 parent 1cf0dee commit d1e1c02e899485f113e8416d4bb3c4bfacce654d
Showing with 4 additions and 1 deletion.
  1. +3 −0 5f/config/nginx.conf
  2. +1 −1 5f/webapp/ruby/unicorn_config.rb
View
@@ -9,6 +9,7 @@ events {
http {
upstream unicorn {
server unix:/tmp/unicorn.sock fail_timeout=0;
keepalive 12;
}
log_format ltsv "status:$status"
@@ -49,6 +50,8 @@ http {
root /home/isucon/shirokanezoo/5f/webapp/static;
location / {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://unicorn;
}
@@ -1,6 +1,6 @@
require 'logger'
worker_processes 4
worker_processes 12
preload_app true
listen 8080
listen "/tmp/unicorn.sock", :backlog => 2048

0 comments on commit d1e1c02

Please sign in to comment.