Previous Topic: Secure CommunicationNext Topic: Generate SSL Certificate Files


Configure NGINX Load Balancer for Agent Scalability

You can configure NGINX load balancer to increase the number of agents in a cluster setup for secure and non-secure communication.

Follow these steps:

  1. Navigate to the folder (for example, nginx_install_dir/conf/NGINX.conf) that contains the NGINX.conf file.
  2. Add the worker_rlimit_nofile property and set the value to 30000 in the NGINX.conf file.
  3. Add the accept_mutex property in the NGINX.conf file as follows:
    events {
        accept_mutex off;}
    
  4. Edit the worker_connections and the worker_processes property value in the NGINX.conf file based on the following factors:

    wherein:

    For example:

    To find out the number of cores in your setup; enter the following command using the Linux Shell prompt:

    grep processor /proc/cpuinfo | wc –l

    Assuming the value that is returned from the command is "2". That means, the number of CPU cores in the server of your setup is 2.

    The value of worker_connections is calculated as follows:

    Wc = 2NA/Wp

    Where:

    N=Total number of nodes in a cluster.

    A=Total number of agents you want to install.

    Wp=Total number of CPU processors as calculated in step 4.

  5. Restart the NGINX load balancer.