2 NGINX Load Balancer Services
This topic describes about the installation and configuration of the NGINX load balancer services.
2.1 Installation and Setup
This topic describes about the installation and setup.
2.1.1 Download
This topic provides systematic instructions to download the tar file.
- Download the tar file from nginx.org/download/ Index list.
- Extract the tar file using tar -xvf command.
2.2 Load Balancer Route Configurations
This topic describes about load balancer route configurations.
The below configurations gives the route configurations for the load balancer.
Note:
The underlying syntax and semantics may vary from the load balancer to load balancer. upstream config-service{
server << IP Or Hostname of the PLATO Configuration
Service 1 >>:<< Port of the PLATO Configuration Service 1 >>;
server << IP Or Hostname of the PLATO Configuration
Service 2 >>:<< Port of the PLATO Configuration Service 2 >>;
server << IP Or Hostname of the PLATO Configuration
Service 3 >>:<< Port of the PLATO Configuration Service 3 >>;
server << IP Or Hostname of the PLATO Configuration
Service N >>:<< Port of the PLATO Configuration Service N >>;
}
upstream api-gateway{
server << IP Or Hostname of the PLATO API Gateway Service
1 >>:<<Port of the PLATO API Gateway Service 1 >>;
server << IP Or Hostname of the PLATO API Gateway Service
2 >>:<<Port of the PLATO API Gateway Service 2 >>;
server << IP Or Hostname of the PLATO API Gateway Service
3 >>:<<Port of the PLATO API Gateway Service 3 >>;
}
upstream <<Context Root of the PLATO UI APP Shell>> {
server << IP Or Hostname of the PLATO UI APP Shell 1 >>:<<
Port of the PLATO Configuration Service 1 >>;
server << IP Or Hostname of the PLATO UI APP Shell 2 >>:<<
Port of the PLATO UI APP Shell 2 >>;
server << IP Or Hostname of the PLATO UI APP Shell 3 >>:<<
Port of the PLATO UI APP Shell 3 >>;
server << IP Or Hostname of the PLATO UI APP Shell N >>:<<
Port of the PLATO UI APP Shell N >>;
}
server {
listen << PORT OF THE LOAD BALANCER >>;
server_name _;
location /config-service {
proxy_pass http://config-service;
}
location /api-gateway {
proxy_pass http://api-gateway;
}