Tools

Set up multiple instances of Web Help Desk

This article provides step by step procedure on how to setup multiple instance of Web Help Desk

First published date

10/18/2018 10:37 AM

Last published date

1/14/2020 5:19 PM

Overview

This article provides steps to set up multiple instances of Web Help Desk with more than a one front-end instance and a load balancer

Product section

Web Help Desk

Resolution

  1. For Node 1 is the first WHD instance to be set up. Activate the license at the first start up.
  2. For Nodes 2, 3 4 and 5, install WHD and stop the service.
    1. Copy the files from step 1's configuration folder to the <WebHelpDesk>/conf folder of each Node (2, 3, 4 and 5):
      • whd.conf
      • keystore.jks (if you have HTTPS)
      • .whd.properties (this contains the DB connection info)
    2. Modify the <WebHelpDesk>/conf/tomcat_web_template.xml file and set the Daemon Mode to none (should be the on the last 4 lines):

      from:

      <env-entry-name>WHDDaemonMode</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>background</env-entry-value>

       

      to:

      <env-entry-name>WHDDaemonMode</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>none</env-entry-value>

       

    3. Add the JVM Argument -DClusterSecondaryNode=true to the configuration.
      For Windows:
      Edit the conf file <WebHelpDesk>/bin/wrapper/conf/wrapper_template.conf then add the following line in the # Java Additional Parameters section of that file setting the next sequential number in the list:
      wrapper.java.additional.<NUMBER>=-DClusterSecondaryNode=true


      where <NUMBER> is the next proceeding number.

      For Mac or Linux:
      Edit <WebHelpDesk>/conf/whd.conf then add the following line at the end of the config file:
      JAVA_OPTS="-DClusterSecondaryNode=true"
  3. Make Node 1 the dedicated daemon instance, that way, all it does is run the WHD daemons especially for heavy emails and database interactions.
    1. Edit the <WebHelpDesk>/conf/tomcat_web_template.xml file and set the Daemon Mode to dedicated (should be the on the last 4 lines):
      from:
      <env-entry-name>WHDDaemonMode</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>background</env-entry-value>

      to:
      <env-entry-name>WHDDaemonMode</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>dedicated</env-entry-value>
    2. Since this machine is no longer offering the Web UI, you will have to take it off the pool for from your load balancer.
  4. In your load balancer, enable Sticky sessions as WHD will require this for tracking sessions.
  5. Restart all WHD instances.