Take a Node out of Traffic (ECV Disable)
In general, the LB (load balancer) determines the health of an individual instance (back-end server) by monitoring a health URL that is configured for the app. If the health URL is an http monitor and it returns an HTTP 200 OK response, then the LB considers the instance to be healthy and traffic gets routed to the instance. Otherwise, no traffic goes to this instance. The standard ECV check in Tomcat is “/” which needs to be changed as prescribed in Configure ECV Check URL on OneOpsa. (See the diagram below.)
- Add the On-Demand attachment ecv-enable to Tomcat or the artifact.
- The on-demand file type is any custom file action that is available as an action on the corresponding operations page of the instance.
- When you add an attachment, select On Demand for Run on Event.
- Copy the contents on the Execute Command section as appropriate.
- Similarly add the corresponding On-Demand attachment, ecvDisable.
- If it is necessary to disable the ECV, select Tomcat from Operations and select disableECV.
To enable ECV and traffic, enable Tomcat.
To remotely debug, there is a debug action in Operations by default. To start the Tomcat in debug mode, select debug.
- The default jpda port is 8000. To open the ports, refer to Add or Delete a Security Group to Open or Close an Additional Port.
If you are using eclipse, conf. looks like this: