Supervisor Controller
Configuration reference for the service that runs agent commands and triggers forensics through the Supervisor.
Supervisor Controller#
Introduction#
Supervisor Controller (Sup Ctrl) works in dockerised mode. Sup Ctrl is in self-docker in JAR format. Keycloak (Wildfly) docker runs separately. Multiple Sup Ctrls can run simultaneously in any setup. All these Sup Ctrls connect to the Redis cache for the required configuration information. Redis provides a centralized caching mechanism. For every call to Sup Ctrl, Sup Ctrl connects to the Redis cache for the required configuration and for horizontal scaling. Sup Ctrl is involved in starting, stopping, and restarting agents. In the case of HEAL Offline, Sup Ctrl runs on the target server along with the Supervisor. Sup Ctrl triggers the forensics both remotely as well as via the Supervisor. Agents Maintenance Tool has a set of commands (see the Agent Maintenance Tool Guide). All these commands execute via Sup Ctrl.
Consul Keys#
The Supervisor Controller module utilizes a set of consul keys designed to facilitate its configuration and operation. These keys are essential for the module to function correctly and efficiently.
The consul keys are as follows:
service/supervisorcontroller/http2enabled
service/supervisorcontroller/port
service/supervisorcontroller/sslprotocol
service/supervisorcontroller/keystore
service/supervisorcontroller/truststore
service/supervisorcontroller/keystorepassword
service/rabbitmq/hostname
service/rabbitmq/port
service/rabbitmq/username
service/rabbitmq/password
service/rabbitmq/sslenable
service/rabbitmq/sslprotocol
service/rabbitmq/commandmessagesqueue
service/rabbitmq/a1eventsqueue
service/rabbitmq/forensicmessagesqueue
service/rabbitmq/agentmaintenancequeue
service/keycloak/hostname
service/keycloak/port/https
service/keycloak/ds/connectiontimeout
service/keycloak/ds/readtimeout
service/supervisorcontroller/threadPoolCoreSize
service/supervisorcontroller/threadPoolMaxSize
service/supervisorcontroller/threadSleepInterval
service/redis/nodes
service/redis/sslenable
service/cassandra/contactpoints
service/cassandra/port
service/cassandra/schema
service/supervisorcontroller/loglevel
service/supervisorcontroller/rootloglevel
service/supervisorcontroller/logs/maxfilesize
service/supervisorcontroller/logs/totalsizecap
service/supervisorcontroller/logs/maxhistory
service/supervisorcontroller/auditlogs/maxfilesize
service/supervisorcontroller/auditlogs/totalsizecap
service/supervisorcontroller/auditlogs/maxhistory
service/supervisorcontroller/health/metrics/updateinterval/milliseconds
service/supervisorcontroller/management/endpoints/web/exposure/include
service/supervisorcontroller/management/endpoints/jmx/exposure/include
service/supervisorcontroller/management/endpoints/health/enabled
service/supervisorcontroller/jmx/enabled
service/supervisorcontroller/redis/cache/mode 0
service/supervisorcontroller/accounts/configurationcache/expire/interval/minutes 5
service/supervisorcontroller/accounts/configurationcache/max/size 1000
service/supervisorcontroller/supervisor/identifier/configurationcache/expire/interval/minutes 5
service/supervisorcontroller/supervisor/identifier/configurationcache/max/size 1000
service/supervisorcontroller/instances/configurationcache/expire/interval/minutes 5
service/supervisorcontroller/instances/configurationcache/max/size 1000
service/supervisorcontroller/host/availability/update/queue/size 1000
service/supervisorcontroller/host/availability/data/send/updateinterval/milliseconds 60000
service/host/availability/kpi/identifier HEAL_HOST_AVAILABILITY
If you change the log level through these Consul keys, restart the module. To change the log level without a restart, see Change a Service's Log Level at Runtime.
Health Metrics#
The health metrics of the Supervisor Controller are critical indicators used to monitor and ensure the optimal performance and reliability of the system.
| Metric Name | Description |
|---|---|
| rmqReadData | This indicates the number of incoming command requests to Sup Ctrl. Default value is 0. |
| readQueueName | This indicates the input queue name corresponding to 'service/rabbitmq/commandmessagesqueue' consul key from which Sup Ctrl picks up the messages. Default value is command-messages. |
| a1eventMessagesQueueName | This indicates the output queue name for the forensics response messages which A1 Event Handler consumes. Default value is a1-event-messages. |
| forensicNotificationQueueName | This indicates the output queue name for the forensics response messages corresponding to 'service/rabbitmq/forensicmessagesqueue' consul key which Notification Processor consumes. Default value is raw-forensic-messages. |
| agentMaintenanceQueueName | This indicates the output queue name for the commands corresponding to 'service/rabbitmq/agentmaintenancequeue' consul key which Agent Maintenance Tool (AMT) triggers. AMT consumes these messages. Default value is agent-maintenance-response-messages. |
| rmqWriteA1EventMessageData | This indicates the number of messages Sup Ctrl writes to queue corresponding to 'service/rabbitmq/a1eventsqueue' consul key. Default value is 0. |
| rmqWriteForensicMessageData | This indicates the number of messages Sup Ctrl writes to queue corresponding to 'service/rabbitmq/forensicmessagesqueue' consul key. Default value is 0. |
| rmqWriteAgentMaintenanceMessageData | This indicates the number of messages Sup Ctrl writes to queue corresponding to 'service/rabbitmq/agentmaintenancequeue' consul key. Default value is 0. |
| redisKeysNotAvailable | This indicates the number of failures in fetching the necessary configuration data from Redis cache. Sup Ctrl reads data from Redis cache using Redis keys. If Sup Ctrl does not receive data for any Redis key(s), value for this metric increases by 1. The initial value for this metric is 0. |
You can view the KPIs of HEAL modules such as the Supervisor Controller in Control Center, and set thresholds for them at service level and instance level. See Set KPI thresholds for a service.