Skip to content

Commit 574bec9

Browse files
committed
added information on the new DB
Signed-off-by: Srinadh Penugonda <[email protected]>
1 parent 941d00a commit 574bec9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
Loading

doc/event-alarm-framework/event-alarm-framework.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ Event and Alarm Framework
3737
* [3.1.8 Pull Model](#318-pull-model)
3838
* [3.1.9 Supporting third party containers](#319-supporting-third-party-containers)
3939
* [3.2 DB Changes](#32-db-changes)
40-
* [3.2.1 STATE DB](#321-state-db)
41-
* [3.2.2 APPL DB](#322-appl-db)
40+
* [3.2.1 EVENT DB](#321-event-db)
4241
* [3.3 User Interface](#33-user-interface)
4342
* [3.3.1 Data Models](#331-data-models)
4443
* [3.3.2 CLI](#332-cli)
@@ -100,9 +99,9 @@ Such a change has an important metric called *severity* to indicate how critical
10099
An operator could *ACKNOWLEDGE/UNACKNOWLEDGE* an alarm. This indicates that the operator is aware of the faulty condition.
101100

102101
The set of alarms and their severities are an indication to health of various applications of the system and System LED can be deduced from alarms.
103-
An acknowledged alarm means that operator is aware of the condition so, acknowledged alarm should be taken out of consideration from deciding system LED state.
102+
An acknowledged alarm means that operator is aware of the condition so, acknowledged alarm will be taken out of consideration.
104103

105-
Both events and alarms get recorded in the STATE_DB.
104+
Both events and alarms get recorded in a new DB called EVENT DB in a new redis instance.
106105

107106
1. Event History Table
108107

@@ -836,13 +835,14 @@ and are being evaluated.
836835
Approach 1 is preferred.
837836

838837
## 3.2 DB Changes
839-
### 3.2.1 STATE DB
838+
### 3.2.1 EVENT DB
839+
A new instance, redis4, is created and EVENT DB uses the new instance.
840+
The following tables uses Event DB.
840841
Table EVENTPUBSUB is used for applications to write events and for eventd to access and process them.
841-
Four other new tables are introduced.
842-
Event History Table (EVENT) and Current Alarm Table (ALARM).
843-
To maintain various statistics of events, these two are introduced : EVENT_STATS and ALARM_STATS.
844-
### 3.2.2 APPL DB
845-
Application DB is used to house EVPROFILE table to communicate name of the custom event profile when configured through NBI.
842+
Event History Table (EVENT) and Current Alarm Table (ALARM) are used to house events and alarms respectively.
843+
To maintain various statistics of events, these two tables are used : EVENT_STATS and ALARM_STATS.
844+
845+
EVPROFILE table is used by mgmt-framework to communicate name of the custom event profile when configured through NBI.
846846
Eventd reads the file name from this table and merges it with its static_event_map.
847847

848848
## 3.3 User Interface

0 commit comments

Comments
 (0)