Make sure you have this configuration in your nginx file
log_format upstreamlog '$server_name to $upstream_addr [$request] '
'up_resp_time $upstream_response_time'
'msec $msec req_time $request_time';
upstream jblb{
server 192.168.1.115;
server 192.168.1.116;
}
server {
listen 80 default_server;
server_name _;
access_log /var/log/nginx/access.log upstreamlog;
location / {
proxy_pass http://jblb;
}
}
- Tutorial https://www.youtube.com/watch?v=v81CzSeiQjo
- Monitoring Tool https://ubunlog.com/glances-monitoriza-ubuntu-1804lts/
- Apache Benchmark Documentation https://httpd.apache.org/docs/2.4/programs/ab.html
- Video of testings https://www.youtube.com/watch?v=RtJYhxbIYAo
- This Gist https://gist.github.com/josuebasurto/818cf0e4fd3b5d12387fa9c0fb246237
- Send me a tweet if this worked https://twitter.com/srjoshbasurto/status/1363751989805375495