--- title: "Failover concept" slug: "load-balancing-failover" status: "update" updated: 2026-11-25T12:26:47Z published: 2026-11-25T12:26:47Z canonical: "docs.lobstersoftware.com/load-balancing-failover" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Failover concept ## Functional principle The failover concept exists to ensure the availability of the Node Controller. There is always exactly one active Node Controller in a cluster. The number of working nodes is unlimited and can be changed at any time. In principle, each Working Node (by license and configuration) can be in working mode as well as in controller mode. The modes can change during operation. Node Controllers (by license and configuration) can only be in controller mode. Changing the operation mode of a node can occur automatically due to a detected failover, or it can be explicitly initiated by the user (in the [Load balance (Control Center)](/v1/docs/en/cc-system-loadbalance) or via HTTP; see [System stop, Load Balancing, DMZ server, profile quickview (REST API)](/v1/docs/en/rest-api-forcestop-etc)). Always the last Node Controller that goes online is the active Node Controller. Old Node Controllers shut down unless they previously were a working node by license and configuration. In this case, it changes back to a working node and does not shut down. A valid operating state with a Node Controller and working node(s) must be reached at least once, because working nodes receive their setup from the Node Controller at startup. If the connection of any Working Node to the Node Controller is interrupted, the failover is triggered. **NOTE:** See *Heartbeat interval* at the parameter `addNode` and parameter `externalURL`. ## Load balancing service setup To use the failover functionality, you must enable the load balancing service. This requires adjustments to the following Configuration Files. ### Adjusting configuration file ./etc/factory.xml on all nodes of the cluster On all nodes (Node Controller and working nodes) the `LoadBalanceService` (see below) must be activated in the configuration file `./etc/factory.xml`. **IMPORTANT:** The entry must be inserted before the "StartupService" (see below); otherwise, the failover cannot be accessed. ```        factoryID    .    .    .                com.ebd.hub.services.ha.LoadBalanceService        etc/loadbalance.xml     . . .                com.ebd.hub.services.startup.StartupService        etc/startup.xml     ``` | Parameter | Description | | --- | --- | | `id` | Required for the identification and loading of the configuration. **IMPORTANT:** It must be unique in a cluster. | ### Adjusting configuration file ./etc/loadbalance.xml on all nodes of the cluster On all nodes (Node Controller and working nodes) the file `./etc/loadbalance.xml` (or the file specified in the configuration file `./etc/factory.xml` for the `LoadBalanceService`) must be present and adjusted. The same file is used on all nodes, which means you only need to create/adjust it once, and then you can simply copy it to all existing nodes. ```                true            true 10 5000        1            false            false    false    false                                        https://www.google.de                1000                                FactoryID                ip-address                3                300                100                2320                MASTER                8020                            FactoryID2                ip-address                3                300                100                2320                SLAVE                8020     ``` | Parameter | Description | | --- | --- | | `enableLoadbalance` | Activates the load balancing (and thus the distribution of jobs). | | `enableFailover` | Activates the failover (i.e. the takeover of the role of the Node Controller by a working node in case of loss of the current Node Controller). | | `controllerRequestSize` | You can set the number of jobs the Node Controller processes itself before it delegates jobs to working nodes. The value `0` will immediately delegate jobs to working nodes, whereas the value `10` will only start delegating jobs if the 11th Job is running simultaneously. See also `controllerThreshold`*.* | | `controllerThreshold` | The setting `controllerRequestSize` can further be restricted by considering the average runtime (statistic) of a job. The value `5000` will only consider jobs with an average runtime less than *5000* ms. **NOTE:** This setting can be modified during runtime in the Control Center! | | `reconnectInterval` | If a connection (Channel) between two nodes is lost, the service tries to re-establish it (self-healing) in the specified interval (in seconds). **NOTE:** All nodes (Node Controller and working nodes) are connected to all other nodes. There are two channels between two nodes. A single failed channel does not yet lead to a failover. **NOTE:** We recommend setting the `reconnectInterval` to the next higher second relative to the timeout. | | `failoverAtShutdown` | Specifies whether a failover should be triggered when a Node Controller is shut down in a regular manner. | | `emailByLogoff` | Determines whether an email is sent when a node logs out of another node. **CAUTION****:** Results in increased email traffic. If a node logs out of an existing cluster of three nodes, three emails are sent. | | `emailByLogin` | Determines whether an email is sent when a node logs into another node. **CAUTION****:** Results in increased email traffic. If a node logs out of an existing cluster of three nodes, three emails are sent. | | `emailByLostConnection` | Determines whether an email is sent when the connection to a node is lost. **CAUTION****:** Results in increased email traffic. If a node logs out of an existing cluster of three nodes, three emails are sent. | | `addEmail` | Additional e-mail addresses can be added, which will be notified on `emailByLogoff`, `emailByLogin` and `emailByLostConnection`. The default email address is taken from the configuration file `./etc/startup.xml`. | | `setExternalUrl` | If this parameter is set, the specified URL is checked when the Node Controller is lost. If it can be reached, the working node will participate in determining the new Node Controller (raft consensus algorithm). If not, the working node shuts down. It is also checked, whether other working nodes can be reached. If they are reachable and can still ping the current Node Controller, the working node shuts down. **NOTE:** See also the parameter `setProxySettings`*.* | | `setProxySettings` | If an external proxy is configured, the external URL is not used. An external proxy can be used to prevent a "split brain," but it is also a "single point of failure". Please contact support@lobster.de for more information or setup. **NOTE:** If none of the parameters `setExternalUrl` and `setProxySettings` is used, only a reachability check between the nodes is performed and responded with a failover or a shutdown. | | `addNode` | An entry must be created for each node contained in the cluster (Node Controller and working nodes). Arguments: **Nodename** Here, the value of the *id* parameter in the node's configuration file `./etc/factory.xml` must be used. **Hostname** URL or IP of the node. **Retries** Number of heartbeat ping attempts before a failover is triggered. **Timeout** The waiting time after a heartbeat ping in milliseconds. **Heartbeat interval** The heartbeat ping interval in milliseconds. See also *Timeout* and *Retries*. **Failover port** The port for the failover mechanism. Default: *2320* **Preferred role** Use the value *MASTER* for a Node Controller and *SLAVE* for a working node. In a cluster, there may only be one master; the number of slaves is unlimited. **Message port for load balancing** The port for the load balancing mechanism. Default: *8020* | ## Deactivating SAP RequestListener *See also:* SAP RequestListener in Load Balance Failover section in [SAP](/v1/docs/en/intro-external-systems-sap#sap-requestlistener-in-load-balance-failover). ## Failure of the primary DMZ server *See also*: [DMZ cluster](/v1/docs/en/intro-dmz-cluster). Controlling server in Lobster's optional Load Balancing module. The Node Controller distributes incoming tasks across several additional servers (Working Nodes) and coordinates them. The module is operated only through it; some tasks run only on it, and a DMZ server must point to the Node Controller. Additional server that takes on part of the processing within the optional Lobster Load Balancing module: it carries out the tasks assigned to it by the Node Controller. Multiple Working Nodes increase throughput. A Working Node can only be used once it has been activated in the Node Controller. The Lobster Data Platform's operating mode ensures high availability and scalability. A node controller accepts input data and distributes processing tasks to any number of working nodes using a round-robin or load-balancing algorithm. If the node controller fails, a working node takes over its role. Files that store Lobster Data Platform settings. This includes profile configurations (`.lop`), system and tenant configurations, as well as XML or JSON-based mapping and connector configurations. Execution instance that arises when an **inbound agent** of a profile accepts data. The platform creates a backup file and processes the **job** through all profile phases. Running, successful, and failed jobs are visible in **the Control Center** . Central operational overview of the Lobster Data Platform. The Control Center displays running jobs, successful jobs, and error logs. Administrators use it to monitor operations, intervene in running jobs, and restart failed jobs. A central data record in partner management that consolidates the connection parameters for a communication partner, such as the URL, access credentials, and protocol. Changes to a channel immediately affect all profiles, ASM entries, and content inspection entries that use that channel.