Configuring Apache as a Load Balancer for the EIS Back End

When you use Apache as a load balancer for the EIS back end, some of the configuration file settings are different from those for Apache as a load balancer on the front end.

  1. If the load balancer connects to SAP Data Orchestration Engine – DOE to load balancer to SAP Mobile Platform cluster to device – use the settings below.
    Add the lines below to the Apache Web Server configuration file (httpd.conf). Replace terms in italics with actual values in your environment:
    • DOE_cluster – DOE cluster ID
    • US#_IP – IP address for SAP Mobile Server #
    • US#_node – node name for SAP Mobile Server #
    • US#_port – port number for SAP Mobile Server #
        ProxyPass / balancer://DOE_cluster/ stickysession=X-SUP-SESSID
        ProxyPassReverse / http://US1_srvr:US1_port/doe/publish
        ProxyPassReverse / http://US2_srvr:US2_port/doe/publish
        <Proxy balancer://DOE_cluster>
          BalancerMember http://US1_srvr:US1_port/doe/publish route=US1_node
          BalancerMember http://US2_srvr:US2_port/doe/publish route=US2_node
    

    Extend the example above to any number of SAP Mobile Servers by adding them to the ProxyPassReverse and BalancerMember lists.

  2. If the load balancer connects to SAP MobileGateway – MobileGateway to load balancer to SAP Mobile Platform cluster to device – use the settings below in place of the corresponding settings in Configuring Apache 2.2 as a Load Balancer.
    Add the lines below to the Apache Web Server configuration file (httpd.conf). Replace terms in italics with actual values in your environment:
    • DOE_cluster – DOE cluster ID.
    • US#_IP – IP address for SAP Mobile Server #.
    • US#_node – node name for SAP Mobile Server #.
    • US#_port – port number for SAP Mobile Server #.
    Note: The only difference in the settings below, relative to the settings for DOE, is the omission of "/doe/publish" in the references to SAP Mobile Server instances.
        ProxyPass / balancer://DOE_cluster/ stickysession=X-SUP-SESSID
        ProxyPassReverse / http://US1_srvr:US1_port
        ProxyPassReverse / http://US2_srvr:US2_port
        <Proxy balancer://DOE_cluster>
          BalancerMember http://US1_srvr:US1_port route=US1_node
          BalancerMember http://US2_srvr:US2_port route=US2_node
    

    Extend the example above to any number of SAP Mobile Servers by adding them to the ProxyPassReverse and BalancerMember lists.