Permalink
Browse files

s-in isu3 as /fetch only server

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 49f6092 commit 318eba6f9f5c3911af77c6fc86b26e0be42be841
Showing with 18 additions and 1 deletion.
  1. +5 −1 isubata/webapp/ruby/puma.conf.rb
  2. +13 −0 nginx.conf
@@ -1,5 +1,9 @@
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 'unix:///run/isubata/puma.sock'
View
@@ -64,6 +64,16 @@ http {
server isu2:8080 fail_timeout=0;
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 {
listen 0.0.0.0:8080 default_server;
@@ -118,6 +128,9 @@ http {
location /profile {
proxy_pass http://isuone;
}
location /fetch {
proxy_pass http://fetch;
}
location / {
proxy_pass http://app;

0 comments on commit 318eba6

Please sign in to comment.