2 NGINX Load Balancer Services
This topic describes about the installation and configuration of the NGINX load balancer services.
- Installation and Setup
This topic describes about the installation and setup. - Load Balancer Route Configurations
This topic describes about load balancer route configurations.
2.1 Installation and Setup
This topic describes about the installation and setup.
- Download
This topic provides systematic instructions to download the tar file. - Install
This topic provides systematic instructions to install the tar file. - Start and Stop Procedure
This topic provides systematic instructions to start and stop procedure of files. - Configuration
This topic provides systematic instructions to configure the server.
Parent topic: NGINX Load Balancer Services
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.
Parent topic: Installation and Setup
2.1.2 Install
This topic provides systematic instructions to install the tar file.
Parent topic: Installation and Setup
2.1.3 Start and Stop Procedure
This topic provides systematic instructions to start and stop procedure of files.
- Find the sbin folder inside the installed directory.
- Run ./nginx file inside sbin folder to start nginx.
- Write ./nginx -s stop command to stop nginx.
Parent topic: Installation and Setup
2.1.4 Configuration
This topic provides systematic instructions to configure the server.
The configuration is done in the nginx.conf
file inside the conf
directory.
Parent topic: Installation and Setup
2.2 Load Balancer Route Configurations
This topic describes about load balancer route configurations.
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;
}
Parent topic: NGINX Load Balancer Services