Browse Source

prox

master
zeus 4 years ago
parent
commit
6a045b8fe0
  1. 21
      ecosystem.config.js
  2. 28
      ecosystem.config.js.backup-1
  3. 7
      swarmlab-app/nginx/swarmlab-stats-proxy-server.conf

21
ecosystem.config.js

@ -22,27 +22,6 @@ module.exports = {
"max_restarts": 10, "max_restarts": 10,
"max_memory_restart": "500M", "max_memory_restart": "500M",
"restart_delay": 1000 "restart_delay": 1000
},
{
"name" : "write2proxy",
"autorestart" : true,
"watch" : true,
"cwd" : "/home/node/swarmlab-app",
"script" : "nginx -g 'daemon off;'",
//"script" : "./run-nginx.sh",
//"exec_interpreter" : "bash",
"exec_interpreter" : "none",
//"pid_file" : "/home/node/run/pidnginx.pid",
"log_type" : "json",
"log_file" : "/home/node/logs/logfilenginx",
"error_file" : "/home/node/logs/errorfilenginx",
"out_file" : "/home/node/logs/outfilenginx",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"merge_logs" : true,
"exec_mode" : "fork_mode",
"max_restarts": 10,
"max_memory_restart": "500M",
"restart_delay" : 1000
} }
] ]
} }

28
ecosystem.config.js.backup-1

@ -0,0 +1,28 @@
module.exports = {
"apps": [
{
"name" : "write2mongo",
"autorestart" : true,
"watch" : true,
//"script" : "/home/node/swarmlab-app/run/app.js",
"cwd" : "/home/node/swarmlab-app",
"script" : "run/app.js",
"run_as_user" : "node",
"args" : "start",
//"node_args" : "--harmony",
//"node_args" : "['--trace-deprecation']",
"pid_file" : "/home/node/run/pid.pid",
"log_type" : "json",
"log_file" : "/home/node/logs/logfile",
"error_file" : "/home/node/logs/errorfile",
"out_file" : "/home/node/logs/outfile",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"merge_logs" : true,
"exec_mode" : "fork",
"max_restarts": 10,
"max_memory_restart": "500M",
"restart_delay": 1000
}
]
}

7
swarmlab-app/nginx/swarmlab-stats-proxy-server.conf

@ -1,9 +1,8 @@
upstream factory_servers { upstream factory_servers {
#ip_hash; ip_hash;
server 127.0.0.1:3000; #server 127.0.0.1:3000;
#server readmongo:3000; server readmongo:3000;
keepalive 64; keepalive 64;
#ip_hash;
} }
proxy_cache_path /var/tmp levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m use_temp_path=off; proxy_cache_path /var/tmp levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m use_temp_path=off;

Loading…
Cancel
Save