Liveness Health Check
The sample liveness probe is provided through the live.sh script configured in the deployment object.
... livenessProbe: exec: command: - live.sh - '-spawnTimeout' - '4' - '--' - '-server' - tcp://localhost:${EMS_INTERNAL_PORT} - '-user' - 'probeuser' - '-password' - 'probepassword' initialDelaySeconds: 1 timeoutSeconds: 5 periodSeconds: 6 ...
Here the cluster will perform a periodic liveness check based on the live.sh script and the corresponding parameters.
The -spawnTimeout parameter is an internal timeout used by the probe that should be set relative to the probe's periodSeconds setting ).
The above example matches the EMS server sample configuration. It should be tailored to your target configuration using the following additional probe parameters, when relevant:
Option | Description |
---|---|
-server <server_url> | Connect to specified server (default is tcp://localhost:7222). |
-timeout <timeout> | Timeout of server request (in seconds) (default is 10). |
-delay <delay> | Delay between server requests (in seconds) (default is 1). |
-user <user-name> | Use this user name to connect to server (default is admin). |
-password <password> | Use this password to connect to server (default is NULL). |
-pwdfile <passwd file> | Use the password in the specified file (to hide it). |
-module_path <path> | Path to find dynamic libraries such as SSL. |
-ssl_trusted <filename> | File containing trusted certificate(s). This parameter may be entered more than once if required. |
-ssl_identity <filename> | File containing client certificate and optionally extra issuer certificate(s) and private key. |
-ssl_issuer <filename> | File containing extra issuer certificate(s) for client-side identity. |
-ssl_password <password> | Private key or PKCS12 password. |
-ssl_pwdfile <pwd file> | Use the private key or the PKCS12 password from this file. |
-ssl_key <filename> | File containing the private key. |
-ssl_noverifyhostname | Do not verify the host name against the name in the certificate. |
-ssl_hostname <name> | Name expected in the certificate sent by the host. |
-ssl_trace | Show loaded certificates and certificates sent by the host. |
-ssl_debug_trace | Show additional tracing. |
Copyright © TIBCO Software Inc. All rights reserved.