Forum Discussion

Zahid_Haseeb's avatar
Zahid_Haseeb
Moderator
7 years ago

How can we cluster REDIS & KONG API GATEWAY

- How can we cluster both subjected applications thru using VCS(best practices )۔
- Does veritas designed any agent or in process to design agents for REDIS & KONG API GATEWAY ?
- Do we only have option to use application agent in vcs? (Any document available for this point)
  • Hi Zaheed

    If there was an agent it would be listed on the sort site. You can check with the application vendor, sometimes they pay professional services to make one which they then distribute to their clients.

    Alternatively you can use the avialable agents to build you own custom agent. You just need to figure out what the application needs for it to be online e.g IP connections, where it stores its data, which processes need to be online, how to stop, start and monitor them etc.

    You can check the bundled agents guide as well as the agent developer's guide.

  • Hi Zaheed

    If there was an agent it would be listed on the sort site. You can check with the application vendor, sometimes they pay professional services to make one which they then distribute to their clients.

    Alternatively you can use the avialable agents to build you own custom agent. You just need to figure out what the application needs for it to be online e.g IP connections, where it stores its data, which processes need to be online, how to stop, start and monitor them etc.

    You can check the bundled agents guide as well as the agent developer's guide.

    • Zahid_Haseeb's avatar
      Zahid_Haseeb
      Moderator

      Thanks for your input. I utilized custom agent. For KONG i created below scripts and its working fine.

       

      #!/bin/bash

      /usr/bin/pkill nginx                                   #This will kill couple of occupied ports/seems bug

      /usr/local/bin/kong start

      #Now save this script like kong-start.sh

       

      CREATE Stop Script         

      #!/bin/bash

      /usr/local/bin/kong quit

      #Now save this script like kong-stop.sh

       

      Run KONG API GATEWAY and pick its process which resource to add under APPLICATION RESOURCE as attribute thru below command

      ps -ef |grep kong

      Put start, stop and monitor process under APPLICATION RESOURCE attributes like this:

      start attribute                             /opt/HA/kong-start.sh start

      stop attribute                              /opt/HA/kong-stop.sh stop

      monitor process                        ngnix master xxxxxxxxxxxxxxx