Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Load balancing

Load balancing

The Apache HTTP Server, with the mod_proxy_balancer and JK Connector (mod_jk) modules, is used to load balance a cluster of servers.

Setting up the Apache HTTP Server

  1. Download the latest version of Apache from http://httpd.apache.org/download.cgi.
  2. If you download the source code and configure it manually, enable SSL as follows:
    $ {APACHE_HTTP_SERVER_SRC_DIR}/configure --enable-ssl
      --enable-so -enable-mods-shared="proxy \
      proxy_http proxy_ftp proxy_connect headers cache 
      disk_cache mem_cache"
      --prefix={INSTALL_FULL_PATH}
    $ {APACHE_HTTP_SERVER_SRC_DIR}/make
    $ {APACHE_HTTP_SERVER_SRC_DIR}/make install
    
  3. Set up SSL for the Apache server:
    1. Create an SSL key and certificate. For more information, see http://www.informit.com/articles/article.aspx?p=30115.
    2. Copy the SSL key to APACHE_HOME\conf, and rename the file to "server.key".
    3. Copy the SSL certificate to APACHE_HOME\conf, and rename the file to "server.crt".
  4. Enter the following to start the Apache server with SSL enabled:
    {APACHE_HOME}/bin/apachectl startssl
    
  5. Enter the following to stop the server:
    {APACHE_HOME}/bin/apachectl stop