High Availability support in UFT Mobile (on-premises)

This topic describes how to configure high availability in an active-passive configuration using multiple servers. In this mode there is one UFT Mobile server which is active, to which the load balancer routes all the requests, and another passive UFT Mobile server, ready to take over in case of a failure in the active server. Monitoring that both servers are always up is recommended, to ensure that there is always a passive UFTM server ready.

This section is relevant only for on-premises deployments of UFT Mobile.

For configuring high availability for the PostgreSQL database, refer to the PostgreSQL documentation.

Prerequisites

This section lists the prerequisites for implementing high availability.

Database prerequisites

  • An external database installed on a separate machine should be used—not the UFT Mobile embedded PostgreSQL.
  • If you are currently using the UFTM embedded PostgreSQL, migrate it an external PostgreSQL. For details, see Migrate the exported data to an external database.
  • Increase the default maximum number PostgreSQL connections (by default 100) to 200 for UFT Mobile. For details, refer to the PostgreSQL documentation.

File storage prerequisites

  • Make sure you have a location on the network in which to store the UFT Mobile files.

  • If your UFT Mobile file storage is currently on the UFT Mobile server, move it to a separate machine. For details, see Migrate the file storage system.

Back to top

Install UFT Mobile

This section describes how to install UFT Mobile on two servers for high availability.

  1. Install the first UFT Mobile server. During the installation, use the load balancer FQDN in the server configuration, indicate that you want to use the external PostgreSQL, and provide the files storage path. This server will be in active mode.
  2. Install the second UFT Mobile server. During the installation, use the load balancer FQDN in the server configuration, and select to use the same database and files storage path. By querying the database, the server will detect that there is an active server, and will go into passive mode.

Tip: If you have already installed the server, you can modify the server configuration to use the load balancer FQDN. For details, see Reconfigure the UFT Mobile server (on-premises)

We recommend monitoring that both the active and passive servers are always up. If a server fails, make sure to restart it, to ensure that there is always a passive UFTM server ready.

Back to top

Configure the load balancer

To complete the implementation, you configure the load balancer.

To check which UFT Mobile server is currently active, configure your load balancer to use the following REST API request:

GET https://<server address>:<server port>/rest/v2/status/active

  • If the server is active, you will receive the 200 OK response.
  • If the server is passive, it will return the 503 - Service Unavailable response.

Sample HAProxy configuration

The following is an example of a common load balancer. It uses an HAProxy (high availability proxy) configuration for the backend section in the haproxy.cfg file.

backend webservers

  ...
  option httpchk GET /rest/v2/status/active HTTP/1.0
  server server1 <address>:<port> check fall 1 rise 1
  server server2 <address>:<port> check fall 1 rise 1

Back to top

See also: