The reverse-proxy features load balancing capability enabling connections to be transferred to the available web server.
backends
.Round-Robin
using the weight
policy to distribute the load.You have 4 available method on the drop-down Method
list:
Cookie (Seconds)
" field.Note: Adding or removing a server from the group may result in most keys being reassigned to different servers.
When backends provide a Web application that uses a session system stored by the Web application, it's imperative to use Strict hashed IP or Cookie method
The difference between strictly hashed IP and the Cookie method is that session keeping for the first option is based on the client's public IP, whereas the Cookie method is browser-based.
So, if you want to keep a session in a world where DHCP changes regularly, or where the reverse-proxy is behind equipment that masks source IP addresses (NAT, Load-balancer), the cookie method will be preferred.
Is the size of the shared memory area that holds the backend selection configuration and execution state that are shared between work processes.
It is not possible to recommend an ideal memory zone size, as usage patterns vary considerably.
The amount of memory required is determined by which features (such as session persistence, health checks or DNS reset) are enabled and how upstream servers are identified.
When you add or edit a backend rule, you have several options:
You can set a fully hostname ( www.domain.tld ) or a IP address.
When you specify a host name, the reverse proxy will resolve the name to retrieve the IP address.
An additional trick is to provide specific DNS servers that would be in charge of giving it a different backend IP address with an algorythm that better meets your expectations.
If the backend only wants to receive SSL connections, you can specify that the reverse-proxy must use the SSL protocol to transfer requests.
Usually, it's preferable to use HTTP only, as SSL and certificates are handled by the reverse-proxy.
If you mix SSL backends with HTTP backends, Artica will have to separate the flows into two distinct groups.
One for the HTTP flow and the other for the SSL flow.
Using two separate backends for each protocol will not balance the flows.
4 backends, two HTTP and two SSL, will then offer the balancing mode
By default, the reverse-proxy distributes requests among the servers in according to their weights using the Round Robin method.
The weight parameter to the server directive sets the weight of a server (the default weight is 1).
Basically, the weight indicates the number of requests the web server will receive before switching to the next server:
let's say we have 3 backends:
Out of 16 requests, 1.2.3.4 will receive 10 requests, then 1.2.3.5 with 5 requests and 1.2.3.6 with 1 request
set the duration during which the specified number of unsuccessful attempts to communicate with the backend must occur for the server to be considered unavailable and the period during which the backend will be considered unavailable.
Defines the number of unsuccessful attempts to communicate with the server that must occur within the duration defined by the Failure timeout
parameter before the server is considered unavailable for a duration also defined by the Failure timeout
parameter.
marks the backend as a backup.
It will receive requests when the primary backends are unavailable.
It is like a Fail-Over method
Marks the server as permanently unavailable.