From d0b493cfd4c57b73f7637aeca76be42a9d1d06fc Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Tue, 11 Mar 2025 11:22:49 +0100 Subject: [PATCH 1/2] note on the possibility of duplicate alerts --- source/adminguide/events.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/adminguide/events.rst b/source/adminguide/events.rst index 7766973507..9b9a8172a2 100644 --- a/source/adminguide/events.rst +++ b/source/adminguide/events.rst @@ -59,6 +59,14 @@ machine on the event bus. All the CloudStack events (alerts, action events, usage events) and the additional category of resource state change events, are published on to the events bus. +.. note:: + Alerts for some more important events will be send multiple + times for the same event. This is due to the nature of guarding + certain resources from multiple threads in the code, to make sure + that events are not missed. Examples are "Host down" or + "HA starting VM". These are considered to important to not send + immediately and hence a check if they are queued can not be done. + Implementations ~~~~~~~~~~~~~~~ An event bus is introduced in the From c4ff61fcd4d61fa90c220a4e10124d724e9ce513 Mon Sep 17 00:00:00 2001 From: dahn Date: Tue, 11 Mar 2025 12:11:34 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: NuxRo --- source/adminguide/events.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/adminguide/events.rst b/source/adminguide/events.rst index 9b9a8172a2..d25fa4074c 100644 --- a/source/adminguide/events.rst +++ b/source/adminguide/events.rst @@ -60,12 +60,12 @@ events, usage events) and the additional category of resource state change events, are published on to the events bus. .. note:: - Alerts for some more important events will be send multiple - times for the same event. This is due to the nature of guarding + Alerts for some more important events will be sent multiple + times. This is due to the nature of guarding certain resources from multiple threads in the code, to make sure that events are not missed. Examples are "Host down" or - "HA starting VM". These are considered to important to not send - immediately and hence a check if they are queued can not be done. + "HA starting VM". These are considered too important to not send + immediately and hence a check if they are already queued can not be done. Implementations ~~~~~~~~~~~~~~~