Configuring health management for Liberty
Health management in a Liberty collective can prevent the disruption of service by detecting common problems and generating diagnostic actions based on configured health policies. The health management functions are enabled by two Liberty features, health manager and health analyzer.
Before you begin
- Create the environment that you want to monitor. When you create a health policy, have in mind the target of the policy: server, cluster, or host.
- If you want to gain the full function of the health management feature, enable both the auto scaling and dynamic routing features For more information, see Setting up auto scaling for Liberty collectives and Setting up dynamic routing for Liberty collectives.
- In Liberty version 21.0.0.8 and later, you can configure health management with any specification-compliant Java runtime environment (JRE) or Java SDK, including IBM Java 11.
- In Liberty version 21.0.0.7 and earlier,
you must use one of the following IBM Java developer kits for Windows or Linux® operating systems to configure
health management:
- Java 8
- Java 7 Fix Pack 8 and later
- Java 6 Fix Pack 7 and later
Note: In Liberty version 21.0.0.7 and earlier, IBM Java 11 does not provide the necessary resources to configure health management.. - For Windows users, the root user does not have read/write permission to the C:\Windows\Temp directory unless you are an administrator. You might want to change the permission of the C:\Windows\Temp directory to avoid this issue.
-Djava.io.tmpdir=/path/to/tmpdir
About this task
You can create health policies for common server health conditions. For more information, see Health management.
- Capture diagnostics (heap dump and thread dump)
- Restart server
- Enter server into maintenance mode
- Exit server out of maintenance mode. For use within the same health policy, where an earlier action entered maintenance mode prior to performing other actions.
Watch: Video: Health management for Liberty collectives provides an overview of health management and demonstrates how it can help find and mitigate problems in your Liberty applications. [Transcript]
Procedure
Results
With health policies enabled, Intelligent Management can monitor collective members for problems, and perform diagnostic actions.