Skip to content

Commit

Permalink
s-in isu3 as /fetch only server
Browse files Browse the repository at this point in the history
  • Loading branch information
sorah committed Oct 22, 2017
1 parent 49f6092 commit 318eba6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion isubata/webapp/ruby/puma.conf.rb
@@ -1,5 +1,9 @@
workers 2 workers 2
threads 32,32 if Socket.gethostname == 'app0213'
threads 32,64
else
threads 32,32
end


bind 'tcp://0.0.0.0:5000' bind 'tcp://0.0.0.0:5000'
bind 'unix:///run/isubata/puma.sock' bind 'unix:///run/isubata/puma.sock'
Expand Down
13 changes: 13 additions & 0 deletions nginx.conf
Expand Up @@ -64,6 +64,16 @@ http {
server isu2:8080 fail_timeout=0; server isu2:8080 fail_timeout=0;
keepalive 128; keepalive 128;
} }
upstream isuthree {
server isu3:8080 fail_timeout=0;
keepalive 128;
}
upstream fetch {
server isu2:8080 fail_timeout=0;
server isu3:8080 fail_timeout=0;
keepalive 128;
}



server { server {
listen 0.0.0.0:8080 default_server; listen 0.0.0.0:8080 default_server;
Expand Down Expand Up @@ -118,6 +128,9 @@ http {
location /profile { location /profile {
proxy_pass http://isuone; proxy_pass http://isuone;
} }
location /fetch {
proxy_pass http://fetch;
}


location / { location / {
proxy_pass http://app; proxy_pass http://app;
Expand Down

0 comments on commit 318eba6

Please sign in to comment.