Appearance
Data Archiver
Overview
Data Archiver manages the final stage of the OR data lifecycle — moving aged operational data out of PostgreSQL and into long-term cold storage on S3. As the Data Recorder continuously writes live data snapshots to PostgreSQL, the database would grow indefinitely without active management. Data Archiver prevents this buildup by identifying data older than a configured threshold, exporting it as CSV files to S3, and then removing it from the database.
This autonomous lifecycle management ensures that PostgreSQL queries remain fast and responsive for the real-time operations that depend on them, while no data is lost — it is simply moved to a more cost-effective storage tier. The archived CSV files on S3 remain available for historical analysis, compliance, and audit purposes.
Data Archiver operates independently of most other microservices, requiring only the Experiment Manager for session triggers and database access.
Architecture
The service operates as a dedicated archival system for managing OR historical data lifecycle.
Key Components
- Session-triggered archiving — Subscribes to session updates from the central orchestration service. Archiving runs on a 24-hour session cycle.
- Configurable age threshold — Data older than a specified duration (e.g. one week) is identified for archiving.
- Cloud storage export — Aged data is exported and stored in cloud storage before being removed from the primary database.
- Table-by-table processing — Iterates through all configured data tables, processing each independently.
Connections
| Direction | Service | Purpose |
|---|---|---|
| In | Central Orchestration Service | Session subscription triggers |
| Out | Central Orchestration Service | Queries and completion notices |
| Out | Primary Database | Query and delete aged data |
| Out | Cloud Storage | Store archived data files |
Data Flow
The Session Manager triggers the Data Archiver on a 24-hour cycle through the central orchestration service. For each configured data table, the archiver queries for data older than the threshold, exports it to cloud storage, and removes it from the primary database. Upon completion, it posts a notice to the orchestration service to trigger downstream processes like baseline creation.
The service operates on a scheduled cycle, identifying aged data across configured tables, exporting it to cloud storage, and removing it from the primary database. Upon completion, it signals downstream processes that may depend on archived data.
Archived Data Types
Data Archiver processes multiple categories of operational data including traffic metrics, event records, device status information, and sensor readings. The service handles both network-level and device-level data across OR operational datasets.
Configuration
Archiving behaviour is controlled through configuration that specifies cloud storage destinations, scheduling parametres, and age thresholds for data retention. These settings enable operational teams to balance storage costs with historical data retention requirements.
Related Services
- Data Recorder — Upstream service that writes the live data snapshots that Data Archiver eventually archives
- Data Loader — Loads the reference data for tables that Data Archiver manages
- Experiment Manager — Central coordination service providing session triggers and completion signalling
