eboa 1.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eboa-1.0.8/AUTHORS +6 -0
- eboa-1.0.8/LICENSE +19 -0
- eboa-1.0.8/MANIFEST.in +10 -0
- eboa-1.0.8/PKG-INFO +553 -0
- eboa-1.0.8/README.md +505 -0
- eboa-1.0.8/doc/publishing.md +90 -0
- eboa-1.0.8/pyproject.toml +93 -0
- eboa-1.0.8/setup.cfg +4 -0
- eboa-1.0.8/src/eboa/__init__.py +0 -0
- eboa-1.0.8/src/eboa/analysis/__init__.py +0 -0
- eboa-1.0.8/src/eboa/analysis/analysis.py +740 -0
- eboa-1.0.8/src/eboa/analysis/functions.py +16 -0
- eboa-1.0.8/src/eboa/analysis/plotting.py +59 -0
- eboa-1.0.8/src/eboa/common/__init__.py +0 -0
- eboa-1.0.8/src/eboa/common/commands.py +23 -0
- eboa-1.0.8/src/eboa/common/resources.py +19 -0
- eboa-1.0.8/src/eboa/config/datamodel.json +13 -0
- eboa-1.0.8/src/eboa/config/engine.json +9 -0
- eboa-1.0.8/src/eboa/config/health.xml +18 -0
- eboa-1.0.8/src/eboa/config/reporting_generators.xml +41 -0
- eboa-1.0.8/src/eboa/config/triggering.xml +26 -0
- eboa-1.0.8/src/eboa/cron/boa_cron +4 -0
- eboa-1.0.8/src/eboa/datamodel/__init__.py +0 -0
- eboa-1.0.8/src/eboa/datamodel/alerts.py +318 -0
- eboa-1.0.8/src/eboa/datamodel/annotations.py +319 -0
- eboa-1.0.8/src/eboa/datamodel/base.py +26 -0
- eboa-1.0.8/src/eboa/datamodel/dim_signatures.py +29 -0
- eboa-1.0.8/src/eboa/datamodel/eboa_data_model.dbm +3657 -0
- eboa-1.0.8/src/eboa/datamodel/eboa_data_model.sql +3135 -0
- eboa-1.0.8/src/eboa/datamodel/errors.py +20 -0
- eboa-1.0.8/src/eboa/datamodel/events.py +400 -0
- eboa-1.0.8/src/eboa/datamodel/explicit_refs.py +120 -0
- eboa-1.0.8/src/eboa/datamodel/functions.py +40 -0
- eboa-1.0.8/src/eboa/datamodel/gauges.py +39 -0
- eboa-1.0.8/src/eboa/datamodel/sources.py +173 -0
- eboa-1.0.8/src/eboa/debugging.py +62 -0
- eboa-1.0.8/src/eboa/engine/__init__.py +0 -0
- eboa-1.0.8/src/eboa/engine/alerts.py +16 -0
- eboa-1.0.8/src/eboa/engine/common_functions.py +215 -0
- eboa-1.0.8/src/eboa/engine/engine.py +5429 -0
- eboa-1.0.8/src/eboa/engine/errors.py +250 -0
- eboa-1.0.8/src/eboa/engine/export.py +612 -0
- eboa-1.0.8/src/eboa/engine/functions.py +358 -0
- eboa-1.0.8/src/eboa/engine/operators.py +31 -0
- eboa-1.0.8/src/eboa/engine/parsing.py +788 -0
- eboa-1.0.8/src/eboa/engine/printing.py +63 -0
- eboa-1.0.8/src/eboa/engine/query.py +4689 -0
- eboa-1.0.8/src/eboa/ingestion/__init__.py +0 -0
- eboa-1.0.8/src/eboa/ingestion/eboa_ingestion.py +326 -0
- eboa-1.0.8/src/eboa/ingestion/eboa_scheduler_ingestion.py +80 -0
- eboa-1.0.8/src/eboa/ingestion/functions.py +557 -0
- eboa-1.0.8/src/eboa/ingestion/orbit.py +211 -0
- eboa-1.0.8/src/eboa/ingestion/swath.py +405 -0
- eboa-1.0.8/src/eboa/ingestion/vector.py +179 -0
- eboa-1.0.8/src/eboa/ingestion/xpath_functions.py +38 -0
- eboa-1.0.8/src/eboa/ingestions/__init__.py +0 -0
- eboa-1.0.8/src/eboa/ingestions/ingestion_dec/__init__.py +0 -0
- eboa-1.0.8/src/eboa/ingestions/ingestion_dec/ingestion_dec.py +228 -0
- eboa-1.0.8/src/eboa/logging.py +121 -0
- eboa-1.0.8/src/eboa/processors/__init__.py +0 -0
- eboa-1.0.8/src/eboa/processors/eboa_processor.py +27 -0
- eboa-1.0.8/src/eboa/processors/eboa_processor_changing_name.py +33 -0
- eboa-1.0.8/src/eboa/processors/failing_processor.py +27 -0
- eboa-1.0.8/src/eboa/schemas/eboa_schema.json +195 -0
- eboa-1.0.8/src/eboa/schemas/eboa_schema.xsd +186 -0
- eboa-1.0.8/src/eboa/schemas/reporting_generators_schema.xsd +34 -0
- eboa-1.0.8/src/eboa/schemas/triggering_schema.xsd +33 -0
- eboa-1.0.8/src/eboa/scripts/__init__.py +1 -0
- eboa-1.0.8/src/eboa/scripts/aggregate_metrics.py +84 -0
- eboa-1.0.8/src/eboa/scripts/boa_init.py +153 -0
- eboa-1.0.8/src/eboa/scripts/eboa_continue_triggering.py +54 -0
- eboa-1.0.8/src/eboa/scripts/eboa_init.py +90 -0
- eboa-1.0.8/src/eboa/scripts/eboa_init_ddbb.sh +79 -0
- eboa-1.0.8/src/eboa/scripts/eboa_mjd_to_utc.py +44 -0
- eboa-1.0.8/src/eboa/scripts/eboa_utc_to_mjd.py +41 -0
- eboa-1.0.8/src/eboa/scripts/ingestion_health_status.py +696 -0
- eboa-1.0.8/src/eboa/scripts/init_provided_ddbb.sh +96 -0
- eboa-1.0.8/src/eboa/scripts/initialize_eboa_ddbb.sh +20 -0
- eboa-1.0.8/src/eboa/scripts/modify_existing_ddbb.sh +80 -0
- eboa-1.0.8/src/eboa/scripts/orc_init.py +91 -0
- eboa-1.0.8/src/eboa/scripts/start_eboa.sh +6 -0
- eboa-1.0.8/src/eboa/triggering/__init__.py +0 -0
- eboa-1.0.8/src/eboa/triggering/eboa_triggering.py +522 -0
- eboa-1.0.8/src/eboa/triggering/errors.py +40 -0
- eboa-1.0.8/src/eboa/triggering/xpath_functions.py +40 -0
- eboa-1.0.8/src/eboa.egg-info/PKG-INFO +553 -0
- eboa-1.0.8/src/eboa.egg-info/SOURCES.txt +105 -0
- eboa-1.0.8/src/eboa.egg-info/dependency_links.txt +1 -0
- eboa-1.0.8/src/eboa.egg-info/requires.txt +28 -0
- eboa-1.0.8/src/eboa.egg-info/top_level.txt +2 -0
- eboa-1.0.8/src/rboa/__init__.py +0 -0
- eboa-1.0.8/src/rboa/datamodel/__init__.py +0 -0
- eboa-1.0.8/src/rboa/datamodel/alerts.py +68 -0
- eboa-1.0.8/src/rboa/datamodel/reports.py +384 -0
- eboa-1.0.8/src/rboa/engine/__init__.py +0 -0
- eboa-1.0.8/src/rboa/engine/engine.py +741 -0
- eboa-1.0.8/src/rboa/engine/errors.py +30 -0
- eboa-1.0.8/src/rboa/engine/functions.py +27 -0
- eboa-1.0.8/src/rboa/engine/parsing.py +216 -0
- eboa-1.0.8/src/rboa/reporting/__init__.py +0 -0
- eboa-1.0.8/src/rboa/reporting/rboa_reporting.py +225 -0
- eboa-1.0.8/src/rboa/resources.py +11 -0
- eboa-1.0.8/src/rboa/triggering/__init__.py +0 -0
- eboa-1.0.8/src/rboa/triggering/errors.py +40 -0
- eboa-1.0.8/src/rboa/triggering/rboa_triggering.py +251 -0
- eboa-1.0.8/tools/check_distribution.py +68 -0
- eboa-1.0.8/tools/check_installed_resources.py +37 -0
eboa-1.0.8/AUTHORS
ADDED
eboa-1.0.8/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2017-2026 BOA authors and contributors <see AUTHORS file>.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
eboa-1.0.8/MANIFEST.in
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
include README.md LICENSE AUTHORS
|
|
2
|
+
include doc/publishing.md tools/check_distribution.py tools/check_installed_resources.py
|
|
3
|
+
recursive-include src/eboa/config *.json *.xml
|
|
4
|
+
recursive-include src/eboa/schemas *.json *.xsd
|
|
5
|
+
recursive-include src/eboa/datamodel *.sql *.dbm
|
|
6
|
+
include src/eboa/cron/boa_cron
|
|
7
|
+
prune src/tests
|
|
8
|
+
prune src/examples
|
|
9
|
+
prune src/eboa/ingestions/ingestion_dec/tests
|
|
10
|
+
global-exclude __pycache__ *.py[cod] .*.swp
|
eboa-1.0.8/PKG-INFO
ADDED
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eboa
|
|
3
|
+
Version: 1.0.8
|
|
4
|
+
Summary: Engine for Business Operation Analysis
|
|
5
|
+
Author-email: Daniel Brosnan <d.brosnan.b@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/danielbrosnan/eboa
|
|
8
|
+
Project-URL: Repository, https://github.com/danielbrosnan/eboa
|
|
9
|
+
Project-URL: Issues, https://github.com/danielbrosnan/eboa/issues
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
15
|
+
Classifier: Topic :: Database
|
|
16
|
+
Requires-Python: <3.12,>=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
License-File: AUTHORS
|
|
20
|
+
Requires-Dist: setuptools<81,>=77.0.3
|
|
21
|
+
Requires-Dist: sqlalchemy==1.3.22
|
|
22
|
+
Requires-Dist: psycopg2-binary==2.9.11
|
|
23
|
+
Requires-Dist: geoalchemy2==0.11.1
|
|
24
|
+
Requires-Dist: python-dateutil==2.9.0.post0
|
|
25
|
+
Requires-Dist: openpyxl==3.1.5
|
|
26
|
+
Requires-Dist: lxml==6.0.2
|
|
27
|
+
Requires-Dist: shapely==2.0.7
|
|
28
|
+
Requires-Dist: matplotlib==3.9.4
|
|
29
|
+
Requires-Dist: oslo.concurrency==7.2.0
|
|
30
|
+
Requires-Dist: Pillow==11.3.0
|
|
31
|
+
Requires-Dist: xmlschema==4.2.0
|
|
32
|
+
Requires-Dist: jsonschema==4.25.1
|
|
33
|
+
Requires-Dist: psutil==7.2.2
|
|
34
|
+
Requires-Dist: inotify==0.2.12
|
|
35
|
+
Requires-Dist: scipy==1.13.1
|
|
36
|
+
Requires-Dist: astropy==6.0.1
|
|
37
|
+
Requires-Dist: numpy<2,>=1.23
|
|
38
|
+
Requires-Dist: pyquaternion==0.9.9
|
|
39
|
+
Requires-Dist: sgp4==2.25
|
|
40
|
+
Provides-Extra: tests
|
|
41
|
+
Requires-Dist: nose==1.3.7; extra == "tests"
|
|
42
|
+
Requires-Dist: before_after==1.0.1; extra == "tests"
|
|
43
|
+
Requires-Dist: coverage==7.10.7; extra == "tests"
|
|
44
|
+
Requires-Dist: termcolor==3.1.0; extra == "tests"
|
|
45
|
+
Requires-Dist: pytest-cov==7.0.0; extra == "tests"
|
|
46
|
+
Requires-Dist: Sphinx==7.4.7; extra == "tests"
|
|
47
|
+
Dynamic: license-file
|
|
48
|
+
|
|
49
|
+
# EBOA: Engine for Business Operation Analysis #
|
|
50
|
+
|
|
51
|
+
This component is the data storage management tool for the Business Operation Analysis.
|
|
52
|
+
The data management makes use of a data model containing the following main entities:
|
|
53
|
+
|
|
54
|
+
1. **Events**: periods of time associated to a gauge of a certain aspect business-related
|
|
55
|
+
|
|
56
|
+
2. **Annotations**: particular aspects associated to an explicit reference
|
|
57
|
+
|
|
58
|
+
3. **Explicit references**: identifiers referring to an entity business-related
|
|
59
|
+
|
|
60
|
+
4. **Sources**: blocks of information received from external interfaces to process; after processing, interesting information is extracted and stored
|
|
61
|
+
|
|
62
|
+
5. **Alerts**: notifications to users regarding anomalies identified by the system related to previous entities
|
|
63
|
+
|
|
64
|
+
6. **Reports**: containers of analysis
|
|
65
|
+
|
|
66
|
+
## Purpose ##
|
|
67
|
+
|
|
68
|
+
EBOA (Engine for Business Operation Analysis) serves as a comprehensive data storage and management platform designed to handle complex business operation data with maximum flexibility and efficiency. It provides a robust foundation for storing, retrieving, and analyzing time-tagged information without requiring predefined schemas or extensive configuration.
|
|
69
|
+
|
|
70
|
+
The system is built around the following core requirements and capabilities:
|
|
71
|
+
|
|
72
|
+
### Data Integrity and Traceability ###
|
|
73
|
+
- **Complete traceability**: All data maintains full traceability to its source of information, including data generated within the infrastructure itself
|
|
74
|
+
- **Source validation**: Ensures data provenance and reliability through comprehensive source tracking
|
|
75
|
+
|
|
76
|
+
### Flexibility and Adaptability ###
|
|
77
|
+
- **Schema-less insertion**: No pre-configuration required for inserting new types of data
|
|
78
|
+
- **Dynamic data structures**: Supports flexible linking between events, annotations, and explicit references
|
|
79
|
+
- **Modern data types**: Includes contemporary data types for comprehensive data storage capabilities
|
|
80
|
+
|
|
81
|
+
### Performance and Scalability ###
|
|
82
|
+
- **Parallel processing**: Leverages RDBMS parallelism mechanisms for efficient data insertion
|
|
83
|
+
- **Geo-query support**: Includes geospatial query functionalities for location-based analysis
|
|
84
|
+
- **Dynamic access**: Enables quick, on-demand access to information based on user requirements
|
|
85
|
+
|
|
86
|
+
### Development and Operations ###
|
|
87
|
+
- **Continuous development**: Follows continuous development and continuous integration practices
|
|
88
|
+
- **Structured data access**: Provides organized, structured access to stored information for effective management
|
|
89
|
+
|
|
90
|
+
## Scope ##
|
|
91
|
+
|
|
92
|
+
EBOA is designed for enterprise and analytical systems that require robust storage and management of time-series and time-tagged business data. It excels in environments where data complexity, volume, and dynamic requirements demand a flexible, scalable solution.
|
|
93
|
+
|
|
94
|
+
### Target Systems ###
|
|
95
|
+
- Real-time business operation monitoring and analysis platforms
|
|
96
|
+
- Event-driven architectures requiring centralized data storage
|
|
97
|
+
- Multi-source data aggregation systems
|
|
98
|
+
- Complex business intelligence and reporting platforms
|
|
99
|
+
- Systems requiring dynamic schema adaptation without downtime
|
|
100
|
+
|
|
101
|
+
### Supported Operations ###
|
|
102
|
+
- Insertion, update, and deletion of events, annotations, and related business entities
|
|
103
|
+
- Complex queries across multi-dimensional business data
|
|
104
|
+
- Flexible linking and relationship management between different data types
|
|
105
|
+
- Annotation and enrichment of business operations data
|
|
106
|
+
- Alert generation and reporting on business events
|
|
107
|
+
|
|
108
|
+
### Data Model Characteristics ###
|
|
109
|
+
- Optimized for time-tagged information with comprehensive temporal tracking
|
|
110
|
+
- Hierarchical data organization enabling quick structured access
|
|
111
|
+
- Support for complex data types including geometric/location data
|
|
112
|
+
- Dynamic value structures supporting unlimited data dimensionality
|
|
113
|
+
- Maintains referential integrity while providing maximum flexibility
|
|
114
|
+
|
|
115
|
+
### Integration Capabilities ###
|
|
116
|
+
- Multi-format data input support (XML, JSON, Python dictionaries)
|
|
117
|
+
- Schema-based validation ensuring data quality
|
|
118
|
+
- Parallel data processing leveraging modern database capabilities
|
|
119
|
+
- Priority-based data conflict resolution
|
|
120
|
+
- Scalable for high-volume, concurrent data operations
|
|
121
|
+
|
|
122
|
+
## Data Management ##
|
|
123
|
+
|
|
124
|
+
EBOA provides comprehensive capabilities for managing data throughout its lifecycle, from initial orchestration and ingestion through storage and retrieval. This section covers input orchestration and triggering mechanisms, the data ingestion pipeline, various insertion methods at different hierarchical levels, and the underlying data model that supports flexible, schema-less data management.
|
|
125
|
+
|
|
126
|
+
### Input Orchestration ###
|
|
127
|
+
|
|
128
|
+
EBOA implements a sophisticated input orchestration system that manages the ingestion of data from multiple external sources in parallel while maintaining strict data consistency. The system provides intelligent file-based triggering, concurrent processing, and robust synchronization mechanisms to handle high-volume, multi-source data ingestion scenarios. The image bellow summarizes the input orchestration process (note that BOA relies in other components like [DEC](https://github.com/borjalopezfernandez/dec), [ORC](https://github.com/borjalopezfernandez/dec) and [minArc](https://github.com/borjalopezfernandez/minarc) for providing the complete orchestration strategy).
|
|
129
|
+
|
|
130
|
+

|
|
131
|
+
|
|
132
|
+
#### Triggering Mechanism ####
|
|
133
|
+
|
|
134
|
+
EBOA's triggering system provides flexible, configuration-driven activation of ingestion processes:
|
|
135
|
+
|
|
136
|
+
- **File-Based Detection**: Incoming files trigger ingestion processes based on configurable pattern matching rules defined in `triggering.xml`
|
|
137
|
+
- **Rule-Driven Execution**: Each matched rule can specify custom commands to execute, enabling integration with diverse data sources and ingestion processors
|
|
138
|
+
- **XPath-Based Matching**: Advanced rule matching using XPath expressions for filename patterns and content analysis
|
|
139
|
+
- **Conditional Processing**: Rules support conditional execution (skip modes) for files that require registration without triggering processing
|
|
140
|
+
- **Dynamic Command Execution**: Commands are executed in isolated processes with proper error handling and logging
|
|
141
|
+
|
|
142
|
+
#### Parallel Input Processing ####
|
|
143
|
+
|
|
144
|
+
EBOA is architected to robustly digest multiple inputs in parallel while ensuring data consistency:
|
|
145
|
+
|
|
146
|
+
##### Concurrency Architecture #####
|
|
147
|
+
|
|
148
|
+
- **Source-Level Locking**: Each data source is protected by a synchronized lock based on source name using `lockutils.synchronized_with_prefix('eboa-')`
|
|
149
|
+
- Prevents concurrent processing of the same source file
|
|
150
|
+
- Ensures sequential consistency for inter-source dependencies
|
|
151
|
+
- Uses external mutex locks stored in `/dev/shm` for inter-process synchronization
|
|
152
|
+
|
|
153
|
+
- **Thread-Safe Database Access**:
|
|
154
|
+
- Thread-safe database sessions via `scoped_session(Session)` for each ingestion process
|
|
155
|
+
- Isolated database connections prevent session conflicts
|
|
156
|
+
- PostgreSQL configured with `max_connections=100` and `max_locks_per_transaction=128`
|
|
157
|
+
|
|
158
|
+
- **Parallel Ingestion Limits**:
|
|
159
|
+
- Configurable `MAXIMUM_PARALLEL_INGESTIONS` parameter controls concurrent load
|
|
160
|
+
- Queue-based scheduling ensures system resources aren't overwhelmed
|
|
161
|
+
- Automatic monitoring prevents exceeding configured limits
|
|
162
|
+
|
|
163
|
+
##### Process Synchronization #####
|
|
164
|
+
|
|
165
|
+
The system implements multiple layers of synchronization to coordinate parallel ingestions:
|
|
166
|
+
|
|
167
|
+
- **Fair Lock Distribution**: Lock mechanisms prevent starvation of waiting ingestion processes
|
|
168
|
+
- **Dependency Blocking**: Ingestions can block on external dependencies until blocking sources complete
|
|
169
|
+
- **Progress Tracking**: Active ingestions are tracked in shared memory folders for visibility and management
|
|
170
|
+
- **Clean Shutdown**: Proper cleanup of ingestion markers ensures system consistency even after failures
|
|
171
|
+
|
|
172
|
+
#### Data Consistency Guarantees ####
|
|
173
|
+
|
|
174
|
+
EBOA maintains strict ACID properties across parallel ingestions through sophisticated mechanisms:
|
|
175
|
+
|
|
176
|
+
##### Transactional Integrity #####
|
|
177
|
+
|
|
178
|
+
- **Atomic Operations**: All ingestion operations wrapped in database transactions with complete rollback on errors
|
|
179
|
+
- **Savepoint Handling**: Nested transactions (savepoints) provide recovery points for complex multi-step operations
|
|
180
|
+
- **Error Isolation**: Failed ingestions are completely rolled back, leaving database in consistent state
|
|
181
|
+
- **Status Persistence**: Each ingestion's outcome recorded in `source_statuses` table with detailed tracking
|
|
182
|
+
|
|
183
|
+
##### Write Conflict Resolution #####
|
|
184
|
+
|
|
185
|
+
The system employs intelligent algorithms to resolve conflicts between concurrent ingestions:
|
|
186
|
+
|
|
187
|
+
- **Generation Time Precedence**: When multiple versions arrive simultaneously, earlier-generated data takes precedence
|
|
188
|
+
- **Priority-Based Selection**: Insertion methods incorporate priority values to determine data dominance
|
|
189
|
+
- **Event Key Deduplication**: The EVENT_KEYS method ensures only highest-generation-time events with same key remain visible
|
|
190
|
+
- **Temporal Ordering**: Validity period and generation timestamps ensure causal consistency
|
|
191
|
+
|
|
192
|
+
##### Mutual Exclusion #####
|
|
193
|
+
|
|
194
|
+
- **Source-Level Serialization**: Prevents concurrent modification of same source through synchronized locking
|
|
195
|
+
- **Transaction Isolation Levels**: PostgreSQL's SERIALIZABLE isolation ensures phantom-read prevention
|
|
196
|
+
- **Conflict Detection**: Explicit conflict handling through INSERT_and_ERASE algorithms
|
|
197
|
+
- **Invariant Preservation**: All data model constraints maintained through transactions
|
|
198
|
+
|
|
199
|
+
#### Robustness and Reliability ####
|
|
200
|
+
|
|
201
|
+
The input orchestration system is engineered for production-grade reliability:
|
|
202
|
+
|
|
203
|
+
##### Error Handling #####
|
|
204
|
+
|
|
205
|
+
- **Graceful Degradation**: Failed ingestions don't crash system; errors are logged and tracked
|
|
206
|
+
- **Detailed Status Reporting**: Each ingestion generates status records with error messages for operator visibility
|
|
207
|
+
- **Exception Recovery**: Caught exceptions prevent cascading failures across multiple ingestions
|
|
208
|
+
- **Logging and Audit Trail**: Comprehensive logging enables troubleshooting and compliance
|
|
209
|
+
|
|
210
|
+
##### Resilience Features #####
|
|
211
|
+
|
|
212
|
+
- **Progress Checkpointing**: Ingestion progress saved at each step for recovery capability
|
|
213
|
+
- **Timeouts and Limits**: Built-in protection against hung processes through configurable timeouts
|
|
214
|
+
- **State Persistence**: On-going ingestions tracked persistently, enabling restart and recovery
|
|
215
|
+
- **Resource Monitoring**: Real-time monitoring prevents resource exhaustion
|
|
216
|
+
- **Performance Tracking**: Ingestion duration and metrics enable performance analysis and optimization
|
|
217
|
+
|
|
218
|
+
##### Consistency After Failures #####
|
|
219
|
+
|
|
220
|
+
- **Transaction Rollback**: Incomplete operations automatically rolled back to maintain consistency
|
|
221
|
+
- **Idempotent Operations**: Ingestions can be safely retried without creating duplicates
|
|
222
|
+
- **State Recovery**: System can identify and handle orphaned ingestion markers
|
|
223
|
+
- **Clean Restarts**: Failed ingestion markers cleaned up automatically
|
|
224
|
+
|
|
225
|
+
### Data Ingestion ###
|
|
226
|
+
|
|
227
|
+
The data ingestion starts by initializing the insertion context and registering the DIM signature and source associated with the incoming operation. EBOA then inserts the metadata needed by that operation, including gauges, annotation configurations, explicit references, links, and alert configuration data.
|
|
228
|
+
|
|
229
|
+
Once the context is ready, events and annotations are bulk-inserted. Depending on the configured insertion method, some records become immediately visible while others are inserted as hidden candidates pending conflict resolution. As shown in the diagram above, EBOA then runs a deprecation pass that applies the configured rules, such as generation-time precedence, priority precedence, event-key resolution, or interval splitting.
|
|
230
|
+
|
|
231
|
+
After deprecated data has been removed, EBOA processes counter updates, writes the final ingestion status, and commits the transaction. The image bellow summarizes that end-to-end path from operation input to finalized visible data.
|
|
232
|
+
|
|
233
|
+

|
|
234
|
+
|
|
235
|
+
#### Insertion Methods ####
|
|
236
|
+
|
|
237
|
+
EBOA supports various insertion methods at different hierarchical levels, allowing flexible data management based on different update strategies:
|
|
238
|
+
|
|
239
|
+
##### Operation Level (DIM Signature) #####
|
|
240
|
+
|
|
241
|
+
These methods apply to all events and annotations linked to gauges associated with a specific DIM signature:
|
|
242
|
+
|
|
243
|
+
- **insert**: Basic insertion without any filtering or removal of existing data. Insertion methods at event level are applied.
|
|
244
|
+
|
|
245
|
+
- **insert_and_erase**: Applies INSERT_and_ERASE logic to all events linked to all gauges associated with the DIM signature.
|
|
246
|
+
|
|
247
|
+

|
|
248
|
+
|
|
249
|
+
- **insert_and_erase_with_priority**: Same as insert_and_erase but using priority values to determine data relevance.
|
|
250
|
+
|
|
251
|
+

|
|
252
|
+
|
|
253
|
+
- **insert_and_erase_with_equal_or_lower_priority**: Similar to insert_and_erase_with_priority with specific priority handling.
|
|
254
|
+
|
|
255
|
+

|
|
256
|
+
|
|
257
|
+
###### Key Behavioral Differences ######
|
|
258
|
+
|
|
259
|
+
- **Scope**: Operation-level methods apply uniformly to all gauges within a DIM signature, enabling aggregate conflict resolution strategies across multiple events
|
|
260
|
+
- **Granularity**: Lacks per-event customization; all events under the DIM signature follow the same insertion and visibility rules
|
|
261
|
+
- **Simplicity**: Enables bulk application of insertion policies without individual event configuration
|
|
262
|
+
- **Use Case**: Best for homogeneous data sources where all measurements should follow identical conflict resolution strategies
|
|
263
|
+
|
|
264
|
+
##### Event Level #####
|
|
265
|
+
|
|
266
|
+
These methods apply to individual events based on their gauge configuration:
|
|
267
|
+
Note: these methods are applied if at operation level the mode of insertion is configured as "insert".
|
|
268
|
+
|
|
269
|
+
- **SIMPLE_UPDATE**: All events are inserted without any filtering or removal.
|
|
270
|
+
|
|
271
|
+

|
|
272
|
+
|
|
273
|
+
- **INSERT_and_ERASE**: Events are inserted but initially flagged as not visible. The system keeps only events with the greatest generation time within the source's validity period, removing or splitting others as needed.
|
|
274
|
+
|
|
275
|
+

|
|
276
|
+
|
|
277
|
+
- **INSERT_and_ERASE_with_EQUAL_or_LOWER_PRIORITY**: INSERT_and_ERASE with specific priority comparison logic.
|
|
278
|
+
|
|
279
|
+

|
|
280
|
+
|
|
281
|
+
- **INSERT_and_ERASE_with_PRIORITY**: Same as INSERT_and_ERASE, but uses priority values for source relevance.
|
|
282
|
+
|
|
283
|
+

|
|
284
|
+
|
|
285
|
+
- **INSERT_and_ERASE_per_EVENT**: Similar to INSERT_and_ERASE, but the validity period is determined per individual event rather than the source.
|
|
286
|
+
|
|
287
|
+

|
|
288
|
+
|
|
289
|
+
- **INSERT_and_ERASE_per_EVENT_with_PRIORITY**: Combines per-event validity checking with priority-based selection.
|
|
290
|
+
|
|
291
|
+

|
|
292
|
+
|
|
293
|
+
- **INSERT_and_ERASE_INTERSECTED_EVENTS_with_PRIORITY**: Handles intersecting events with priority considerations.
|
|
294
|
+
|
|
295
|
+

|
|
296
|
+
|
|
297
|
+
- **EVENT_KEYS**: Events are inserted but flagged as not visible. Keeps events with the same event key and DIM signature that have the greatest generation time.
|
|
298
|
+
|
|
299
|
+
- **EVENT_KEYS_with_PRIORITY**: Same as EVENT_KEYS, but incorporates priority values.
|
|
300
|
+
|
|
301
|
+
- **SET_COUNTER**: For counter-type gauges, sets the counter value.
|
|
302
|
+
|
|
303
|
+
- **UPDATE_COUNTER**: For counter-type gauges, updates the existing counter value.
|
|
304
|
+
|
|
305
|
+
###### Key Behavioral Differences ######
|
|
306
|
+
|
|
307
|
+
- **Visibility Model**: SIMPLE_UPDATE makes data immediately visible, while INSERT_and_ERASE variants flag events as hidden candidates pending deprecation pass completion
|
|
308
|
+
- **Validity Period Scope**: Source-level variants (INSERT_and_ERASE, INSERT_and_ERASE_with_PRIORITY) apply source validity periods uniformly, while per-event variants (INSERT_and_ERASE_per_EVENT*) determine validity individually for each event
|
|
309
|
+
- **Conflict Resolution Strategy**: Generation-time-based methods prioritize earlier-generated data, priority-based methods use source priority rankings, and EVENT_KEYS methods use event key deduplication
|
|
310
|
+
- **Counter Operations**: SET_COUNTER and UPDATE_COUNTER are specialized methods for counter-type gauges, distinguishing between initial setting and incremental updates
|
|
311
|
+
- **Intersection Handling**: The `INSERT_and_ERASE_INTERSECTED_EVENTS_with_PRIORITY` variant specifically handles overlapping temporal intervals by examining existing events at intersecting time periods, using priority considerations for conflict resolution. This is different from other priority-based methods in that it focuses on **where events actually exist** rather than where a higher-priority source claims coverage.
|
|
312
|
+
|
|
313
|
+
###### Use Case: Multi-Source Timeline Completeness ######
|
|
314
|
+
|
|
315
|
+

|
|
316
|
+
|
|
317
|
+
A practical example is determining completeness between planned mission timelines from different sources:
|
|
318
|
+
|
|
319
|
+
**Scenario**: Two independent sources provide scheduling data:
|
|
320
|
+
- **Timeline A (lower priority)**: Expected satellite download activities
|
|
321
|
+
- **Timeline B (higher priority)**: Expected antenna reception activities
|
|
322
|
+
|
|
323
|
+
The goal is to identify which periods have complete coverage from both timelines.
|
|
324
|
+
|
|
325
|
+
**Insertion Strategy**:
|
|
326
|
+
- Insert Timeline A using `INSERT_and_ERASE_INTERSECTED_EVENTS_with_PRIORITY` (this method)
|
|
327
|
+
- Insert Timeline B using `INSERT_and_ERASE_per_EVENT_with_PRIORITY` with higher priority
|
|
328
|
+
|
|
329
|
+
**Behavior**:
|
|
330
|
+
1. When Timeline B is inserted first: Events are stored as-is
|
|
331
|
+
2. When Timeline A is then inserted: EBOA reviews each time period where Timeline A has events
|
|
332
|
+
- Previous Timeline A covered by the new Timeline A is completelly removed
|
|
333
|
+
- At intersections where Timeline B also has events: Timeline A events are removed (Timeline B has higher priority)
|
|
334
|
+
- At gaps where Timeline B has NO events: Timeline A events are kept (no competing data)
|
|
335
|
+
- Result: Completeness is automatically calculated—you see the union of both timelines
|
|
336
|
+
|
|
337
|
+
**Key Difference from `INSERT_and_ERASE_per_EVENT_with_PRIORITY`**:
|
|
338
|
+
- **`INSERT_and_ERASE_per_EVENT_with_PRIORITY`**: Removes previous Timeline A covered by the new Timeline A
|
|
339
|
+
- **`INSERT_and_ERASE_per_EVENT_with_PRIORITY`**: Removes Timeline A events whenever Timeline B source has higher priority, **regardless of whether Timeline B actually has events** during those periods
|
|
340
|
+
- **`INSERT_and_ERASE_INTERSECTED_EVENTS_with_PRIORITY`**: Only removes Timeline A events where Timeline B **actually has conflicting events** at the same time
|
|
341
|
+
|
|
342
|
+
This distinction is crucial for scenarios where higher-priority sources may have incomplete coverage or gaps in their data. This method ensures you don't lose lower-priority data in periods where the higher-priority source is silent.
|
|
343
|
+
- **Granularity vs Performance**: Per-event methods offer maximum granularity but require more processing; source-level methods are more efficient for uniform datasets
|
|
344
|
+
|
|
345
|
+
##### Annotation Level #####
|
|
346
|
+
|
|
347
|
+
These methods apply to individual annotations:
|
|
348
|
+
|
|
349
|
+
- **SIMPLE_UPDATE**: All annotations are inserted without any filtering.
|
|
350
|
+
- **INSERT_and_ERASE**: Annotations are inserted with filtering based on validity periods and generation times.
|
|
351
|
+
- **INSERT_and_ERASE_with_PRIORITY**: Same as INSERT_and_ERASE for annotations, using priority values.
|
|
352
|
+
|
|
353
|
+
###### Key Behavioral Differences ######
|
|
354
|
+
|
|
355
|
+
- **Filtering Complexity**: SIMPLE_UPDATE provides direct insertion without conflict resolution, while INSERT_and_ERASE variants apply temporal and source-based filtering
|
|
356
|
+
- **Priority Consideration**: INSERT_and_ERASE_with_PRIORITY uses source priority rankings for conflict resolution, whereas basic INSERT_and_ERASE relies on generation time precedence
|
|
357
|
+
- **Use Cases**: SIMPLE_UPDATE suits transient annotations, while INSERT_and_ERASE variants are appropriate for long-lived descriptive metadata requiring temporal consistency
|
|
358
|
+
- **Consistency Guarantees**: Both filtered variants maintain consistency within validity periods; the choice between them depends on whether source priority or temporal ordering is the primary conflict criterion
|
|
359
|
+
|
|
360
|
+
### Data Model ###
|
|
361
|
+
|
|
362
|
+
#### Overview ####
|
|
363
|
+
|
|
364
|
+
EBOA implements a comprehensive relational data model designed to handle complex business operation data with maximum flexibility and temporal awareness. The data model is based on a solid relational foundation while supporting dynamic, schema-less value structures for unlimited data dimensionality.
|
|
365
|
+
|
|
366
|
+
The main entities managed by EBOA are:
|
|
367
|
+
|
|
368
|
+
- **Events**: Time-bounded measurements or observations of business operations
|
|
369
|
+
- **Annotations**: Descriptive information or properties associated with explicit references
|
|
370
|
+
- **Explicit References**: Unique identifiers for business entities (objects, systems, locations, etc.)
|
|
371
|
+
- **Sources**: Raw data ingestion sources and their metadata
|
|
372
|
+
- **Alerts**: Notifications triggered by system conditions or business rules
|
|
373
|
+
- **Reports**: Containers for analysis results and business intelligence outputs
|
|
374
|
+
|
|
375
|
+
#### Entity Relationships ####
|
|
376
|
+
|
|
377
|
+
The EBOA data model defines complex relationships between entities:
|
|
378
|
+
|
|
379
|
+

|
|
380
|
+
|
|
381
|
+
Key relationships include:
|
|
382
|
+
|
|
383
|
+
- **Events to Explicit References**: Events can be associated with specific business entities
|
|
384
|
+
- **Events to Events**: Events can be linked to other events to represent causal or temporal relationships
|
|
385
|
+
- **Events to Gauges**: Each event is measured through a gauge configuration defining insertion behavior
|
|
386
|
+
- **Annotations to Explicit References**: Annotations enrich business entities with descriptive information
|
|
387
|
+
- **All Entities to Sources**: Complete traceability tracking which source generated each entity
|
|
388
|
+
- **All Entities to Alerts**: Alert generation and tracking at entity level
|
|
389
|
+
|
|
390
|
+
#### Dynamic Value Structures ####
|
|
391
|
+
|
|
392
|
+
One of EBOA's most powerful features is the support for dynamic, hierarchical value structures. Events and annotations can contain arbitrarily complex nested data without schema modification.
|
|
393
|
+
|
|
394
|
+

|
|
395
|
+
|
|
396
|
+
##### Supported Data Types #####
|
|
397
|
+
|
|
398
|
+
Values can be of the following types:
|
|
399
|
+
|
|
400
|
+
- **Text**: String values of any length
|
|
401
|
+
- **Boolean**: True/False values
|
|
402
|
+
- **Double**: Floating-point numeric values
|
|
403
|
+
- **Timestamp**: Date and time values
|
|
404
|
+
- **Geometry**: Geographic/spatial data (points, polygons, etc.)
|
|
405
|
+
- **Object**: Containers for nested hierarchical structures
|
|
406
|
+
|
|
407
|
+
##### Value Structure Organization #####
|
|
408
|
+
|
|
409
|
+
The dynamic value tree is organized hierarchically with the following characteristics:
|
|
410
|
+
|
|
411
|
+
- **Level-based hierarchy**: Each value has a `level_position` indicating its depth in the tree
|
|
412
|
+
- **Parent references**: Values maintain references to their parent through `parent_level` and `parent_position`
|
|
413
|
+
- **Unique addressing**: The combination of level and position enables unique identification of any value in the structure
|
|
414
|
+
- **Tree constraints**: Parent nodes must be of type "Object", while leaf nodes must be non-Object types
|
|
415
|
+
- **Unlimited nesting**: Values can contain other values, creating arbitrarily deep hierarchical structures
|
|
416
|
+
|
|
417
|
+
This design allows EBOA to store complex, semi-structured business data while maintaining full relational integrity and queryability.
|
|
418
|
+
|
|
419
|
+
#### Temporal Tracking ####
|
|
420
|
+
|
|
421
|
+
EBOA maintains comprehensive temporal metadata for all entities:
|
|
422
|
+
|
|
423
|
+
- **Generation time**: When data was originally created
|
|
424
|
+
- **Reception time**: When data was received by EBOA
|
|
425
|
+
- **Processing time**: When data was processed
|
|
426
|
+
- **Validity period**: Start and stop times for which data is valid
|
|
427
|
+
- **Reported times**: Original times as reported by source systems
|
|
428
|
+
|
|
429
|
+
This enables sophisticated temporal queries and analysis of business operations over time.
|
|
430
|
+
|
|
431
|
+
## Full Stack Application: EBOA + VBOA ##
|
|
432
|
+
|
|
433
|
+
While EBOA serves as a powerful backend data management engine, it is designed to work seamlessly with **VBOA** (Visualization for Business Operation Analysis), a modern frontend component that completes the full-stack application architecture.
|
|
434
|
+
|
|
435
|
+
### Architecture Overview ###
|
|
436
|
+
|
|
437
|
+
The EBOA + VBOA stack provides an enterprise-grade solution for business operation analysis:
|
|
438
|
+
|
|
439
|
+
- **EBOA (Backend)**: Data storage, management, and query engine built on PostgreSQL with Python API
|
|
440
|
+
- **VBOA (Frontend)**: Interactive web application for visualization, analysis, and real-time monitoring
|
|
441
|
+
|
|
442
|
+
Together, these components form a complete, production-ready platform for complex business operation management without requiring extensive custom development.
|
|
443
|
+
|
|
444
|
+
### Easy Tailoring Structure ###
|
|
445
|
+
|
|
446
|
+
One of the key advantages of the EBOA + VBOA stack is its easily customizable architecture:
|
|
447
|
+
|
|
448
|
+
- **Modular design**: Both components are designed with modularity in mind, allowing you to extend and customize functionality
|
|
449
|
+
- **Configuration-driven**: Most features are driven by configuration files rather than code changes
|
|
450
|
+
- **Data model adaptation**: Define your own entities and relationships through EBOA's flexible schema
|
|
451
|
+
- **UI customization**: VBOA's interface can be tailored to your specific business needs
|
|
452
|
+
- **Integration points**: Well-defined APIs and integration points for connecting custom processors and analyzers
|
|
453
|
+
|
|
454
|
+
### Getting Started ###
|
|
455
|
+
|
|
456
|
+
To get started with the full EBOA + VBOA stack:
|
|
457
|
+
|
|
458
|
+
1. **EBOA Documentation**: This repository contains comprehensive documentation for the backend component
|
|
459
|
+
2. **VBOA Repository**: Visit the GitHub repository for VBOA to access the frontend component and additional examples:
|
|
460
|
+
https://github.com/Daniel-Brosnan-Blazquez/vboa
|
|
461
|
+
|
|
462
|
+
3. **Examples**: Complete reference implementations and example configurations demonstrating typical use cases (e.g. monitoring of observation satellites, financial analysis, etc) are available in the GitHub repositories:
|
|
463
|
+
https://github.com/Daniel-Brosnan-Blazquez/s1boa
|
|
464
|
+
https://github.com/Daniel-Brosnan-Blazquez/s2boa
|
|
465
|
+
https://github.com/Daniel-Brosnan-Blazquez/s3boa
|
|
466
|
+
https://github.com/Daniel-Brosnan-Blazquez/bankboa
|
|
467
|
+
|
|
468
|
+
## Installation ##
|
|
469
|
+
|
|
470
|
+
Install EBOA into a virtual environment:
|
|
471
|
+
|
|
472
|
+
```bash
|
|
473
|
+
python3.9 -m venv .venv
|
|
474
|
+
source .venv/bin/activate
|
|
475
|
+
python -m pip install eboa
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
To install from a checkout instead, run `python -m pip install .` from the repository root, or `python -m pip install --editable '.[tests]'` for development.
|
|
479
|
+
|
|
480
|
+
The EBOA distribution includes both the `eboa` engine and the `rboa` reporting package, their commands and resources. Installing EBOA also installs `rboa_reporting.py` and `rboa_triggering.py`; no separate RBOA installation is needed. RBOA shares EBOA’s database and SQL model. Configure writable resource and log directories before using the engine:
|
|
481
|
+
|
|
482
|
+
```bash
|
|
483
|
+
export EBOA_DATA_PATH="$(python -c 'from importlib.resources import files; print(files("eboa"))')"
|
|
484
|
+
export EBOA_RESOURCES_PATH="$PWD/eboa-resources"
|
|
485
|
+
export EBOA_LOG_PATH="$PWD/eboa-log"
|
|
486
|
+
export EBOA_SCHEMAS_PATH="$EBOA_DATA_PATH/schemas"
|
|
487
|
+
export RBOA_ARCHIVE_PATH="$PWD/rboa-archive"
|
|
488
|
+
mkdir -p "$EBOA_RESOURCES_PATH" "$EBOA_LOG_PATH" "$RBOA_ARCHIVE_PATH"
|
|
489
|
+
cp "$EBOA_DATA_PATH"/config/* "$EBOA_RESOURCES_PATH/"
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
Edit the JSON database configuration files in `EBOA_RESOURCES_PATH` for your PostgreSQL/PostGIS server. Install the PostgreSQL client (`psql`) for database initialization. The `eboa_init.py` command uses an explicit `-f` model when supplied; otherwise it tries the bundled SQL model and then `/datamodel/eboa_data_model.sql`. It asks for confirmation before resetting a database and reports an error if no model is available. The Docker setup below provides the full test environment.
|
|
493
|
+
|
|
494
|
+
Reporting configuration and its schema are bundled in `eboa/config/reporting_generators.xml` and `eboa/schemas/reporting_generators_schema.xsd`. Existing `EBOA_RESOURCES_PATH` and `EBOA_SCHEMAS_PATH` overrides are supported. Optional `RBOA_RESOURCES_PATH` and `RBOA_SCHEMAS_PATH` overrides take precedence for reporting files.
|
|
495
|
+
|
|
496
|
+
See [Publishing EBOA](https://github.com/danielbrosnan/eboa/blob/develop/doc/publishing.md) for building distributions and configuring the PyPI release workflow.
|
|
497
|
+
|
|
498
|
+
## Running tests locally ##
|
|
499
|
+
|
|
500
|
+
With Docker and Docker Compose installed, start the EBOA test environment and run the suite from the repository root:
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
export UID_HOST_USER=$(id -u)
|
|
504
|
+
export GID_HOST_USER=$(id -g)
|
|
505
|
+
docker compose -f compose_dev.yml up --build -d --wait
|
|
506
|
+
docker compose -f compose_dev.yml exec eboa bash -ec "/scripts/initialize_eboa_ddbb.sh; cd /eboa/src; python -m pytest -v tests/ eboa/ingestions"
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
Both Compose files pass `UID_HOST_USER` and `GID_HOST_USER` to their Dockerfiles to set the `boa` user's UID and primary group GID. Both default to `1000` when unset. Rebuild the image after changing these values.
|
|
510
|
+
|
|
511
|
+
`compose_dev.yml` builds `Dockerfile.dev` from the current local checkout and mounts it at `/eboa`, including uncommitted changes. The local development image installs EBOA in editable mode into `/usr/local/eboa-venv`; its `eboa` and `rboa` imports resolve to `/eboa/src`. Commands in `/scripts` link to the checkout and take priority over pip’s installed copies. Local Python and command-script edits are therefore picked up by new processes without rebuilding or reinstalling. Restart any running Python process to load its edits. Rebuild after changing dependencies, package metadata, Docker configuration, or the host UID/GID.
|
|
512
|
+
|
|
513
|
+
To rebuild the development container use the following command:
|
|
514
|
+
|
|
515
|
+
```bash
|
|
516
|
+
docker compose -f compose_dev.yml up -d --build eboa
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
The paths should be `/eboa/src/eboa/__init__.py` and `/eboa/src/rboa/__init__.py`.
|
|
520
|
+
|
|
521
|
+
GitHub Actions uses `compose_github_dev.yml` and `Dockerfile.github.dev`, which clones the selected repository and branch. The GitHub image uses a regular, non-editable EBOA installation from that checkout; rebuild to fetch and install new remote commits. No GitHub repository or branch variables are needed for local Compose development. The test command initializes the EBOA database and runs `tests/` and `eboa/ingestions`. The RBOA tests and report fixtures are included in `src/tests` and run with EBOA’s suite.
|
|
522
|
+
|
|
523
|
+
To run a specific test file instead:
|
|
524
|
+
|
|
525
|
+
```bash
|
|
526
|
+
docker compose -f compose_dev.yml build eboa
|
|
527
|
+
docker compose -f compose_dev.yml exec eboa bash -ec "cd /eboa/src; python -m pytest -vv tests/test_query.py"
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
The databases belong to a separate Compose project, use passwordless access within its network, and expose no host ports. Each test run resets these test databases. Remove the containers and database volumes when finished:
|
|
531
|
+
|
|
532
|
+
```bash
|
|
533
|
+
docker compose -f compose_dev.yml down -v
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
## Integrations ##
|
|
537
|
+
|
|
538
|
+
### Prometheus Metrics Integration ###
|
|
539
|
+
|
|
540
|
+
EBOA can provide real-time metrics to Prometheus, enabling seamless integration with modern monitoring and observability stacks. The system leverages Prometheus' pull-based metrics collection model to expose operational metrics and system performance indicators from the EBOA engine and associated BOA components.
|
|
541
|
+
|
|
542
|
+

|
|
543
|
+
|
|
544
|
+
The Prometheus integration enables:
|
|
545
|
+
|
|
546
|
+
- **Real-time monitoring**: Continuous collection of EBOA operational metrics
|
|
547
|
+
- **Performance tracking**: Monitor engine throughput, query performance, and data processing rates
|
|
548
|
+
- **System health**: Track resource utilization, database performance, and system status
|
|
549
|
+
- **Historical analysis**: Leverage Prometheus' time-series database for metric analysis and alerting
|
|
550
|
+
- **Grafana dashboards**: Create customized dashboards for visualization and business intelligence
|
|
551
|
+
- **Alert generation**: Define Prometheus alert rules based on EBOA metrics thresholds
|
|
552
|
+
|
|
553
|
+
This integration allows operators to maintain comprehensive visibility into EBOA operations and quickly identify performance bottlenecks or anomalies in the system.
|