Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • All of above
  • least_time - for each request, NGINX Plus selects the server with the lowest average latency and the least number of active connections, where the lowest average latency is calculated based on which of the following parameters is included on the least_timedirective:
    • header – Time to receive the first byte from the server
    • last_byte – Time to receive the full response from the server

The load balancer

NGINX  has been used as the load balancer, it must be running so that you can access either of the running tomcat servers.  To check its status run the command 

tasklist /fi "imagename eq nginx.exe".  If it is running you will see the following output

Image Name                PID      Session Name     Session#    Mem Usage
========================= ======== ================ =========== ============
nginx.exe 5432 Console 2 5,748 K
nginx.exe 3388 Console 2 5,984 K

Starting, stopping and reloading load balancer

Starting NGINX, run the command

  • start  nginx.exe

Stopping NGINX, run the command

  • nginx -s quit

Reloading nginx.conf if changed whilst nginx is running

  • nginx -s reload