vSphere Availability

 View Only
Expand all | Collapse all

How to monitor application in VMware HA

  • 1.  How to monitor application in VMware HA

    Posted Sep 16, 2022 12:23 PM

    We have configured VMware HA in lab with two ESXi machine and a Vcenter. We also attached a a SAN with both ESXi machines and created a datastore and connect it with both ESXi machines. A VM is created on SAN. We checked failover of VM thru rebooting ESXi host and the failover is successful. Now we want to install a KONG software on this VM. KONG comprise on application and a database. We now want to monitor both application and database so in case anything crashes, we want to trigger a failover to other ESXi host. Please advise and also share any quick document



  • 2.  RE: How to monitor application in VMware HA

    Posted Sep 18, 2022 04:42 AM

    hi zahid, 

    I cant understand your request clearly , but as I know you want have HA on VM with KONG app, so if you have HA on ESXi you dont need anything else and VM failover on other hosts.

    what you need Exactly ??

     



  • 3.  RE: How to monitor application in VMware HA

    Posted Sep 19, 2022 07:21 AM

    Let me describe again. Suppose we have a VMware HA and top of it a VM is hosted and working fine. In case Active base machine (where a VM is hosted) collapse. The VM will failover to standby VMware base machine.

    Now the query:   in case we have an application installed (suppose we have KONG api gateway is the application) on top of VM and we want to monitor that application and in case of application failed then the application reboot to x amount of time OR VM should reboot and started on standby VMware base machine  



  • 4.  RE: How to monitor application in VMware HA

    Posted Sep 19, 2022 08:02 AM

    hello , 

    for monitoring APP you cant used Vmware tools , you must used another application monitoring like Solarwinds and .... and make trigger action for that. 

    you also can make sample monitoring with scripting , for example make batch job file to telnet your application port if it does not answer you restart app or VM from your monitoring station



  • 5.  RE: How to monitor application in VMware HA

    Posted Sep 19, 2022 01:22 PM

    Means there is no way to monitor application under VM which(VM) is hosted on VMware HA ?



  • 6.  RE: How to monitor application in VMware HA

    Posted Sep 19, 2022 02:14 PM
    • Failure of an ESXi host / Storage Connectivity
      If an ESXi host fails, VMs running on that host are automatically restarted on other ESXi hosts.
    • Guest operating system failure
      If the VM Monitoring option is enabled and the VM stops sending heartbeats, the guest OS is reset. The VM remains on the same ESXi host.
    • Application failure and monitoring agent
      The agent on an ESXi host can monitor the heartbeats of applications running inside a VM. If an application fails, the VM is restarted but remains on the same host. This type of monitoring requires a third-party application monitoring agent and VMware tools.

    I cant remember when this was announced but i think it was to 6.5/6.7? I have never seen a product there (i have Symantec in mind). So again.. the 1 and 2 are part of the normal vSphere HA but only 1 is what everyone have enabled and in use.



  • 7.  RE: How to monitor application in VMware HA

    Posted Sep 19, 2022 02:30 PM

    I have no issue with point 1 & 2 and yes I am interested in point-3.... So what I understand that VMware does not have any built-in solution which can check application level monitoring and restart VM in case does not find application heartbeat ?



  • 8.  RE: How to monitor application in VMware HA

    Posted Sep 19, 2022 02:33 PM

    Correct.

    My understanding was that VMware only offer a API and leverage to the already existing HA but other Vendors  are needed to get it working.

    Similar to the KMS where for a long time you only can connect to an external 3rd. Party one and now with 7.0.3 VMware provides an internal one.

    Regards,
    Joerg



  • 9.  RE: How to monitor application in VMware HA

    Posted Sep 20, 2022 06:32 AM

    ZahidHaseeb1978_0-1663655528107.png

     



  • 10.  RE: How to monitor application in VMware HA



  • 11.  RE: How to monitor application in VMware HA

    Posted Sep 21, 2022 11:11 AM

    Seems I am near to my query.

    You have shared SDK guide in above link so that we can built application monitoring support for a custom application. This will help to monitor application thru VMware HA and restart it in case of application failure. Does VMware have any pre built-in application monitoring support for famous applications like (IIS/apache or MS SQL/Oracle/PostgreSQL) ? OR VMware does not have any pre built-in support for any application monitoring and have to use SDK guide for application monitoring support. Correct ?   



  • 12.  RE: How to monitor application in VMware HA

    Posted Sep 23, 2022 06:34 AM

    VMware doesn't have anything prebuild, we have the SDK and that's it. We used to have a product which did something similar, but that was abandoned probably 4-5 years ago. So if you need this functionality you will need to build it yourself.