Using a Load Balancer with HAProxy, Data Hub Cluster, and SSL
In this topic area, you learn how to configure the Data Hub with SSL enabled. The intent is for Data Hub to run behind a load-balancer. We also cover three common scenarios for ensuring Data Hub traffic remains encrypted.
Three Scenarios for Establishing Secure Cluster Communications
We distribute traffic among multiple backend Data Hub nodes through a load balancer. If one of the Data Hub nodes goes down, the load balancer redirects traffic to one of the other nodes, assuring that your Data Hub Cluster is still available.
When load balancing encrypted web traffic, there are a few configuration choices: SSL Proxy Termination, Passthrough Termination, and Double Termination.

Getting Callbacks from SAP Commerce When Using In-Memory Mode
When deploying a Data Hub cluster with SAP Commerce, and using in-memory mode, add the following property to your local.properties file.
#Configuration for node two at 10.0.0.2, port 8080 datahub.server.url=https://10.0.0.2:8443/datahub-webapp/v1Use the node IP address and port as the datahub.server.url value in the local.properties file on each node. Do not use the load balancer IP address. Instead, the node IP and port ensures that when Data Hub publishes to SAP Commerce, the resulting callback goes to the correct node.
Configuring Backoffice Data Hub Cockpit and the Data Hub Adapter
Both the Backoffice Data Hub Cockpit and Data Hub Adapter in SAP Commerce set up client connections with Data Hub. Use the URL of the load balancer as the destination for connections from SAP Commerce. The load balancer then routes the incoming requests to active cluster nodes.
To Verify the Scenarios, We Used the Following Test Environment
Here are the applications and versions used for these scenarios. These may vary depending on your environment.
|
Application |
Version |
|---|---|
|
Data Hub |
6.6 |
|
HA Proxy |
1.7.9 |
|
Linux |
Alpine |
|
Tomcat |
8.5.x |
|
Java |
8 |
Now that you have an understanding of running the Data Hub with SSL enabled. You have a solid foundation to get started on improving the security and reliability of your own server environment.