Show TOC

Background documentationHigh Availability with the Standalone Enqueue Server Locate this document in the navigation structure

 

You can use the standalone enqueue server as part of a high availability (HA) solution.

The HA enqueue server consists of the standalone enqueue server and an enqueue replication server. The replication enqueue server runs on another host and contains a replica of the lock table (replication table).

This graphic is explained in the accompanying text.

Configuring the Enqueue Server in an HA Environment

All clients and the replication server too are connected to the standalone enqueue server.

In the case of AS ABAP each work process has a separate connection to the standalone enqueue server. With AS Java each Server Process in the J2EE cluster has a separate connection to the standalone enqueue server.

The standalone enqueue server communicates with its clients via port sapdpXX (XX indicates the instance number of the SCS/ASCS instance). Since an AS ABAP instance also communicates with its clients via this port, the standalone enqueue server must be running in a separate instance, whose instance number is not yet assigned on the host.

Connection Between Enqueue Server and Replication Server

The enqueue server opens the port sapgwXX (or enque/encni/repl_port) to wait for the connection from the replication server. If there is already a connection from the replication server, the enqueue server rejects any further connections, the message "Connect received, but already connected" is written to dev_enqrepl. The message "Connect from host lw1006.wdf.sap.corp" indicates which host the problem is coming from.

To write this message, the IP address must be converted into the host name. While the host name is being resolved the enqueue server is idle. If the name change is taking too long due to an incorrect network configuration, you can specify in parameter enque/encni/no_addr_resolve that the IP address is used instead of the host name.

Failover
Enqueue Server Failure

If the standalone enqueue server fails, it is started by the HA software on the host on which the replication server is running. The replication table stored on the replication server is transferred to the standalone enqueue server and the new lock table is created from it. The HA software also ensures that while the standalone enqueue server is out of action, clients' connection attempts go through host B instead of host A. For more information, see Replication and Failover.

Replication Server Failure

If the replication server fails, it can be restarted on a different host. It retrieves the replication table from the standalone enqueue server when it restarts. When the replication server is running it is supplied only with delta information arising from each request to the enqueue server.

More Information

For more information about the HA concept with the standalone enqueue server see the following sections.

Replication and Failover

Polling Concept

Working with the Backup File