Document Management
How To and Troubleshooting
Wyn Enterprise supports multi-server deployment that helps to balance the workload distribution among two or more machines. With multi-server deployment, you can significantly reduce the burden on each machine and enhance their work efficiency.
Note: The servers in a distributed deployment environment use the same data store.
In this section, you will learn how to deploy multiple servers in Wyn Enterprise remotely.
Ensure that the following software prerequisites are installed on any accessible machine before deploying the servers,
To enable multi-server deployment on the primary node:
<EnableMultipleServers>true</EnableMultipleServers> <Cache> <DistributedMemoryCache> <ConfigString>Server=address:port_number,Expire=0,Db=0,ThrowOnFailure=true,Timeout=3000</ConfigString> </DistributedMemoryCache> </Cache>
To install Server module using Node Management on the primary node machine:
Tip: To install multiple servers, please repeat the steps from 3 to 5.
To configure Nginx as the load balancer:
Add this section in the configuration file to balance the workload among multiple servers. Over here, the upstream servers represent the IP address of the machines on which the Server modules are installed.
map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream wyn { server IP_address1:51980 max_fails=3 fail_timeout=15s; server IP_address2:51980 max_fails=3 fail_timeout=15s; } server { listen 8089; location / { add_header backendIP $upstream_addr; add_header backendCode $upstream_status; proxy_pass http://wyn; # support websocket proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host:$server_port; proxy_connect_timeout 300s; proxy_send_timeout 300s; proxy_read_timeout 300s; send_timeout 300s; sendfile on; proxy_buffer_size 64k; proxy_buffers 32 32k; proxy_busy_buffers_size 128k; fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; client_max_body_size 100M; } }
To set the global settings for the primary node:
In the Global Settings tab, set the Identity Server URL to http://<Nginx IP Address>:<Listening Port>. The Nginx IP address is the IP address of the machine where Nginx is installed.
Click the Save button.
Note: The Wyn Enterprise service will restart on making the above changes, which may take upto 1-3 minutes.
To restart primary and secondary node machines, go to the Start menu, and click Power > Restart.
After both the machines restart, you can visit the Wyn Enterprise portal, i.e., http://<Nginx IP Address>:<Listening Port> on the primary node machine.If you face any issues, please try to re-login using http://<Nginx IP Address>:<Listening Port>/logout page.