Skip to content

A1 Event Handler

Configuration reference for the service that forwards messages to plugins such as Notifications Sink and Forensics.

2 min read Updated SS

A1 Event Handler#

Introduction#

The A1 Event Handler incorporates Redis cache as a fundamental component to enhance its message forwarding capabilities. It is designed to efficiently forward messages to a variety of plugins, like Notifications Sink and Forensics.

Within the A1 Event Handler, there are two queues utilized to optimize message processing:

  • RMQ Worker queue and
  • Message Executor queue.

These queues play a crucial role in ensuring that messages are handled and dispatched effectively to the respective plugins.

To troubleshoot the A1 Event Handler, see A1 Event Handler Issues.

Consul Keys#

The A1 Event Handler 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/a1eventhandler/qname
service/keycloak/cassandranodes
service/a1eventhandler/isssl
service/rabbitmq/hostname
service/rabbitmq/port
service/rabbitmq/username
service/rabbitmq/password
service/rabbitmq/sslenable
service/rabbitmq/sslprotocol
service/redis/nodes
service/redis/sslenable
service/a1eventhandler/rabbitmq/prefetch/count 10
service/a1eventhandler/rabbitmq/threads/multiplier 2
service/a1eventhandler/worker/threads/multiplier 10

Update the above consul keys in the below files of A1 Event Handler.

conf.properties.tmpl
plugin-details.json.tmpl

Health Metrics#

The health metrics of the A1 Event Handler are critical indicators used to monitor and ensure the optimal performance and reliability of the system.

Metric Description
ErrorCount A1 event handler reads from the queue corresponding to 'service/a1eventhandler/qname' consul key. This is the number of errors while processing or reading from the queue.
The initial value for this metric is 0.
PluginWiseCount This is a map - Map <String, Integer>. Key is a String which is the plugin type. Value is Integer which is the number of calls A1 Event Handler makes to the respective plugin for sending messages to the plugin.
MessageExecutorActiveSize This is the total number of active threads.
The initial value for this metric is 0.
MessageExecutorPoolSize This is the total number of threads in the pool. This is the maximum number of threads that can go into an active state.
The initial value for this metric is 0.
MessageExecutorQueueSize This is the total number of tasks present in the Message Executor queue which are pending due to active threads count matching the pool size.
Initial value for this metric is 0.
RMQReadData A1 Event Handler continuously reads data from RMQ worker queue. This is the number of messages which A1 Event Handler read successfully from RMQ worker queue.
RMQWorkerActiveSize This is the total number of active threads.
Initial value for this metric is 0.
RMQWorkerPoolSize This is the total number of threads in the pool. This is the maximum number of threads that can go in active state.
Initial value for this metric is 0.
RMQWorkerQueueSize This is the total number of tasks present in the RMQ Worker queue which are pending due to active threads count matching the pool size. Initial value for this metric is 0.

You can view the KPIs of HEAL modules such as the A1 Event Handler in Control Center, and set thresholds for them at service level and instance level. See Set KPI thresholds for a service.