Artemis network health check feature not configurable from WildFly
Overview
Issue Metadata
Issue
Related Issues
Dev Contacts
QE Contacts
Testing By
[X] Engineering
[ ] QE
Affected Projects or Components
Other Interested Projects
Requirements
In order to help mitigate the possibility of split brain problems Artemis has the ability to ping a configurable list of hosts to check the health of the brokers network connection, this feature is configured using the following parameters:
-
network-check-NIC
-
network-check-period
-
network-check-timeout
-
network-check-list
-
network-check-URL-list
-
network-check-ping-command
-
network-check-ping6-command
None of these parameters are available from an EAP configuration.
Hard Requirements
Create the attributes to be able to configure the Artemis broker.
Nice-to-Have Requirements
N/A
Non-Requirements
N/A
Implementation Plan
-
Add an optional STRING
network-check-nic
attribute, to specify the NIC you want to use to check the network health. -
Add a positive LONG
network-check-period
attribute, with a default value set to5000
in milliseconds. -
Add a positive LONG
network-check-timeout
attribute, with a default value set to1000
in milliseconds. -
Add a LIST of STRING
network-check-list
attribute.Make sure you understand your network topology as this is meant to check if your network is up. Using IPs that could eventually disappear or be partially visible may defeat the purpose. You can use a list of multiple IPs, any successful ping will make the server OK -
Add a LIST of STRING
network-check-URL-list
attribute if you want to use an HTTP server to validate the network -
Add a STRING
network-check-ping-command
attribute for testing the network in IPv4, with a default value set toping -c 1 -t %d %s
. -
Add a STRING
network-check-ping6-command
attribute for testing the network in IPv6, with a default value set toping6 -c 1 %2$s
.
Those attributes will be grouped in the network-health
attribute group for the /subsystem=messaging-activemq/server resource.
Test Plan
The tests will check that setting the attribute values and reloading will return the new values and that the server will start properly.
Community Documentation
The feature will be documented in WildFly Admin Guide (in the Messaging Configuration section).
Release Note Content
See Overview and Artemis documentation.