You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-17Lines changed: 34 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
# SWF Fast Monitoring Agent
2
2
3
-
**`swf-fastmon-agent`** is a fast monitoring service for the ePIC streaming workflow testbed.
3
+
**`swf-fastmon-agent`** is a fast monitoring service for the ePIC streaming workflow testbed.
4
4
5
-
This agent pulls metadata of Time Frames (TF) and distributes the information via ActiveMQ message queues, enabling real-time remote monitoring of ePIC data acquisition processes.
5
+
This agent monitors STF (Super Time Frame) files, samples TF (Time Frame) subsets, and distributes metadata via ActiveMQ message queues, enabling real-time remote monitoring of ePIC data acquisition processes. The agent includes both server-side monitoring capabilities and a client for remote visualization.
6
6
7
7
## Architecture Overview
8
8
9
9
The fast monitoring agent is designed as part of the **SWF testbed ecosystem** and integrates with:
10
10
-**swf-monitor**: PostgreSQL database and Django web interface for persistent monitoring data
11
-
-**swf-testbed**: Infrastructure orchestration and process management
11
+
-**swf-testbed**: Infrastructure orchestration and process management
12
+
-**swf-common-lib**: Shared utilities and BaseAgent framework for messaging
12
13
-**swf-data-agent**: Receiving messages when STF files are available for fast monitoring
13
14
14
-
The agent operates as a managed service within the swf-testbed ecosystem, automatically configured and monitored through the central CLI.
15
+
The agent operates as a managed service within the swf-testbed ecosystem, automatically configured and monitored through the central CLI. It extends the BaseAgent class from swf-common-lib for consistent messaging and logging across the ecosystem.
15
16
16
17
--------------
17
18
@@ -28,9 +29,14 @@ The agent operates as a managed service within the swf-testbed ecosystem, automa
28
29
cd$SWF_PARENT_DIR/swf-testbed
29
30
swf-testbed status # Check if fast monitoring agent is running
30
31
31
-
# Manual development run (for testing)
32
+
# Manual development run (message-driven mode - default)
32
33
cd ../swf-fastmon-agent
33
34
python -m swf_fastmon_agent.main
35
+
36
+
# Continuous monitoring mode (for testing)
37
+
cd ../swf-fastmon-agent
38
+
export FASTMON_MODE=continuous
39
+
python -m swf_fastmon_agent.main
34
40
```
35
41
36
42
### Working with Django Models
@@ -54,18 +60,29 @@ The fast monitoring agent is configured through the swf-testbed ecosystem:
54
60
55
61
## Agent Components
56
62
57
-
-**Metadata Extraction**: Pulls Time Frame metadata from data acquisition systems
58
-
-**Message Publishing**: Distributes metadata via ActiveMQ to registered subscribers
59
-
-**Database Integration**: Stores monitoring data in swf-monitor PostgreSQL database
60
-
-**Subscriber Management**: Handles subscription requests and message routing
61
-
-**Status Reporting**: Provides health checks and performance metrics
63
+
### Fast Monitor Agent
64
+
-**STF File Monitoring**: Monitors directories for newly created STF files
65
+
-**TF Sampling**: Simulates TF subsamples from STF files based on configuration
66
+
-**Database Integration**: Records STF and TF metadata in swf-monitor PostgreSQL database
67
+
-**Message Broadcasting**: Distributes TF file notifications via ActiveMQ to clients
68
+
-**Dual Operation Modes**:
69
+
-**Message-driven mode**: Responds to data_ready messages from swf-data-agent
0 commit comments