Enable HA on Gathr Webstudio

When HA is enabled on Gathr, it provides surety on the availability of Gathr Webstudio. It is therefore recommended that Gathr Webstudio should be HA enabled for better availability.

This topic describes the procedure to setup High Availability (HA) on Gathr Webstudio.

Prerequisites

  • NFS mount point or common shared location should be accessible between the two Gathr Webstudio machines.

  • Tomcat should be deployed on the first machine. To know more, see Embedded Gathr →

Steps to Enable HA

  1. In the config.properties - set deployment.mode as Cluster instead of standalone on the first machine.

  2. Copy the installation folder from the first machine to the second machine.

  3. Create NFS mount point directory location as follows:

    • Create one common folder, example: “gathrfiles”
  4. Copy these folders to the NFS mount point:

    • inspectdata

    • lib

    • pipelineData

    • uploadjar

    HA_Tomcat_1

  5. Delete inspectdata, lib, pipelineData and uploadjar folders from Gathr installation directory.

  6. Create softlink from mountpoint to tomcat installation directory (on both machines).

    HA_Tomcat_2

    Example:

    Run the below commands from Gathr installation directory:

    ln -s <mountpoint dir> / inspectdata /inspectdata
    ln -s <mountpoint dir> /lib /lib
    ln -s <mountpoint dir> /pipelinedata /pipelinedata
    ln -s <mountpoint dir> /uploadjar /uploadjar
    
  7. In env-config.yaml, update the Gathr URL, sax.web.url and sax.ui.host with respective hostname.

  8. Start tomcat on both the machines.

  9. Both URLs should be accessible separately now:

Validation:

  • If you create a pipeline, then the same should be available on the other tomcat.

  • You should be able to inspect pipelines on both the tomcats.

Top