Software AG Products 10.11 | Using Developer Portal | Configuring High Availability | Configuring High Availability | Configuring Load Balancer
 
Configuring Load Balancer
Load balancer distributes the incoming requests to the nodes of a cluster with the aim of making their overall processing more efficient. Load balancer optimizes the response time and avoid unevenly overloading some nodes while other nodes are idle.
You can download and use a load balancer of your choice. You must also configure sticky session in the Load balancer for UI upstreaming.
A sample Nginx load balancer configuration file /etc/nginx/nginx.conf is as follows:
#******* @subdomain@Nginx Config ********
events {
worker_connections 1024;
}

http {


upstream @subdomain@_ui_upstream {
ip_hash;
server @node1@:18101;
server @node2@:18101;
server @node3@:18101;
}

server {
listen 80;
listen [::]:80;
server_name @subdomain@;

#access_log /var/log/nginx/access.log main;

# DESIGN time should work only in https.
location /portal {
proxy_pass http://@subdomain@_ui_upstream/portal/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
real_ip_header X-Real-IP;
proxy_http_version 1.1;
proxy_set_header Connection "";
}

location /portal/ {
proxy_pass http://@subdomain@_ui_upstream/portal/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
real_ip_header X-Real-IP;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
}

}
The nodes in the cluster are synchronized.