The fundamental feature of a load balancer is the ability to distribute incoming requests over a number of backend servers in the cluster according to a scheduling algorithm. In a 3DOrchestrate cluster, any 3DOrchestrate station can transparently receive and execute any activity from any of the 3DOrchestrate servers. For an overview of load balancing in the 3DEXPERIENCE platform, see Before Starting the Installation. The figure below shows the key network components of a 3DOrchestrate cluster. ![]()
There are two ways to set up the 3DOrchestrate servers in a high availability cluster:
Apache ActiveMQ is an open-source message broker together with a full Java Message Service (JMS) client. ActiveMQ 5.10.1 is included with the 3DOrchestrate installation and is the only supported ActiveMQ version. HAProxy server is the recommended load balancer to use with 3DOrchestrate. HAProxy is a popular open-source TCP/HTTP load balancer and proxying solution that is included with most mainstream Linux distributions. See http://www.haproxy.org/. For details about configuring the reverse proxy server, see Reverse Proxy Configuration for 3DOrchestrate. Steps for Configuring a ClusterTo configure your 3DOrchestrate system in a load-balancing cluster, you can use the 3DOrchestrate deployment utility to do the following:
Cluster OperationFrom the point of view of simulation client apps and end users, the 3DOrchestrate server cluster has only one endpoint URL in the 3DEXPERIENCE platform system: https://<hostname>:<port>/SMAExeServer-REST Additional ConfigurationIn load balanced COS (Compute Orchestration Service) deployments, remote job execution for Results Analytics and Parametric Design Study app relies on WebSocket connections to provide job status and result updates. If the load balancer has a low idle timeout, Apache might cause these WebSocket connections to close during periods of inactivity, causing the client to loose connection and the job might appear to timeout or stop updating. To prevent this unexpected WebSocket disconnection, configure the Apache load
balancer with a suffentiently large Below is an example of a snippet form an Apache server config file, here the ProxyTimeout value is set to 3600 seconds. The corresponding settings might be different for other load balancing configurations. Listen 446 <VirtualHost *:446> ServerName stationname.dsone.3ds.com ServerAlias stationname.dsone.3ds.com ErrorLog D:/Apache24/logs/3DOrchestrateError.log TransferLog D:/Apache24/logs/3DOrchestrateaccess.log ProxyTimeout 3600 LogLevel warn SSLEngine on SSLProxyEngine On SSLCertificateFile conf/ssl/stationname.cer SSLCertificateKeyFile conf/ssl/stationname.key Include D:/installers/COS-LSF-config/cos2.conf </VirtualHost> Below is an example of a timeout configuration in HAProxy used in cloud deployment.
###
### Template Hapee LB Defaults (v2)
###
### Version: 2022-10-13
###
defaults
#TAG_TO_INSERT_OPTIONS#
#INITIALISATION_DONE#
#ADD_DEFAULTS_OPTIONS_DETAILS#
mode http
log global
log-tag lb-proxy
option dontlognull
option redispatch
option contstats
retries 3
backlog 10000
timeout client 25s
timeout connect 5s
timeout server 25s
timeout tunnel 3600s
timeout http-keep-alive 1s
timeout http-request 15s
timeout queue 30s
timeout tarpit 60s
| ||||||||||||||||||||