How to Set Up High Availability for One Connect for SAP
One Connect's Data Modeler transmits data and metadata to the Smart Gateway via an HTTP endpoint configured in SAP transaction SM59 as an RFC destination (Connection Type G).
To ensure uninterrupted data flow, One Connect supports a high availability (HA) configuration with automatic failover between a primary and secondary Smart Gateway endpoint. If the primary endpoint becomes unavailable, the system automatically redirects all transmissions to the secondary endpoint; with no manual intervention required.
This article walks through how to configure both endpoints and explains the failover behavior.
To enable outbound data transmission from SAP, create an RFC destination in transaction SM59 with the following settings:
|
Setting |
Value |
|
Connection Type |
G — HTTP Connection to External Server |
|
Target Host |
Hostname or IP of the primary Smart Gateway |
|
Service / Port |
Port number of the Smart Gateway HTTP service |
|
Path Prefix |
Path as specified in your One Connect deployment |
After creating the destination, validate it using both the Connection Test and HTTP Test options within SM59. A valid and active endpoint is required before proceeding.
Create an entry in table ZONTA_OC_PARAM with the following values:
|
Field |
Value |
|
Parameter Name |
RFC_DESTINATION |
|
Parameter Value |
Name of the RFC destination created in SM59 |
This registers the primary endpoint. One Connect will use this destination for all data transmissions during both batch and real-time processes.
Repeat the same process from Step 1.1 to create a second RFC destination pointing to your secondary Smart Gateway instance. Validate it using the Connection Test and HTTP Test.
Create an additional entry in table ZONTA_OC_PARAM:
|
Field |
Value |
|
Parameter Name |
RFC_SECONDARY |
|
Parameter Value |
Name of the secondary RFC destination created in SM59 |
Once both endpoints are configured, One Connect applies the following processing logic for every data transmission — whether triggered by a batch job or a real-time event:
Note: No manual switchover or restart is required. The failover and recovery process is fully automatic.
|
Parameter |
Table |
Purpose |
|
RFC_DESTINATION |
ZONTA_OC_PARAM |
Primary Smart Gateway endpoint |
|
RFC_SECONDARY |
ZONTA_OC_PARAM |
Secondary Smart Gateway endpoint (failover) |
By configuring both parameters, you ensure higher availability and resilience for your One Connect data transmission processes. In the event of a primary endpoint outage, data delivery continues seamlessly through the secondary endpoint until the primary is restored.