Loadbalancing

<< Click to display Table of Contents >>

Navigation:  Client Applications > The Cordaware Infoclient > Configuration >

Loadbalancing

In Cordaware bestinformed you have the possibility to distribute your Infoclients to different Infoservers for load balancing or in case of a server failure. This way you can save the resources of your servers and set up a fail-safe system.

 

The following Infoclient.ini entries are available for this purpose:

 

Setting

Default Value / Examle

Function

LoadBalancer

LoadBalancer=DNSAdresse

With the setting "LoadBalancer=" you can specify a DNS address. The IPv4 or IPv6 records behind this DNS address are now used for load balancing.

LoadBalancerRandom

LoadBalancerRandom=True/False

Default = False

With "LoadBalancerRandom=True" the IPv4 or IPv6 addresses used in LoadBalancer are used in random order. Otherwise, they are assigned in turn.

Serverlist

Serverlist=infoserver1.mycompany.org,192.168.1.23

List of alternative Infoservers to which the Infoclient should connect if the connection to the currently connected Infoserver is lost.

ServerListRandom

ServerListRandom=True/False

Default = False

Uses a random entry of "ServerList=". Otherwise, the entries are used in order.

UseLoadBalancerAndServerList

UseLoadBalancerAndServerList=True/False

Default = False

Uses "UseLoadBalancerAndServerList=True" to use both the entries at "LoadBalancer=" and those of "ServerList=".

ServerlistBeforeLoadBalancer

ServerlistBeforeLoadBalancer=True/False

Default = False

Uses "ServerlistBeforeLoadBalancer=True" to load the entries of "Serverlist=" before the entries of "LoadBalancer=".

LoadBalancerIPv4

LoadBalancerIPv4=True/False
Default=True

With LoadBalancerIPv4=True IPv4 addresses are taken into account for the setting "LoadBalancer=".

LoadBalancerIPv6

LoadBalancerIPv6=True/False

Default=True

With LoadBalancerIPv6=True, IPv6 addresses are taken into account in the "LoadBalancer=" setting.

LoadBalancerIPv6First

LoadBalancerIPv6First=True/False

Default=True

LoadBalancerIPv6First=True specifies that IPv6 address is used before IPv4 addresses for the "LoadBalancer=" setting.

LoadBalancerCacheTime

LoadBalancerCacheTime=300 (Default=300)

Sets the cache time in seconds.

 

 

Example 1: Load balancer with IPv4 / IPv6 records behind a DNS address

 

In this example, a DNS address is used for load balancing, behind which various IPv4 / IPv6 records are located. We want to distribute our Infoclients to the different IPv4 / IPv6 records to save our resources.

 

For this we enter the following in the Infoclient.ini of our Infoclients in the section [General]:

 

LoadBalancer=YourDNSAddress

 

Now the Infoclients will use the IPv4 / IPv6 records of the DNS address to establish a connection.

If you want the IPv4 / IPv6 records not to be used in turn, you can use the Infoclient.ini setting LoadBalancerRandom=True to assign the IPv4 / IPv6 records randomly.

 

 

Example 2: Load balancer and failover via serverlist

 

In this example we use the Infoclient.ini entry Serverlist= to set up a failover. With the entry Serverlist= we can specify a list of Infoservers to which an Infoclient connects as soon as it loses the connection to its current Infoserver. However, the entries of the serverlist are used in turn by default.

 

To use this setting now in addition to load balancing, enter the following Infoclient.ini entry in the [General] section:

 

ServerListRandom=True

 

When the Infoclient is started, ServerListRandom=True specifies that a random entry of the server list is used and a connection is established to this server.

 

 

Combining the settings from example 1 & 2

 

To combine the settings used in Example 1 and Example 2, the Infoclient.ini setting UseLoadBalancerAndServerList is available.

This uses both the LoadBalancer and ServerList setting entries. By default, the LoadBalancer entries are used before the ServerList entries. To reverse the order, you can set ServerListBeforeLoadBalancer=True in the Infoclient.ini.