chore(release): bump to v0.4.0 — mirror (dual-send) docs
Version bump across series4_ingest.py / tray / settings dialog / installer.iss. CHANGELOG + README document the optional best-effort mirror server (mirror_api_url / mirror_sfm_url / mirror_sfm_state_file, default off). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Thor Watcher
|
||||
|
||||
**Version:** 0.3.1
|
||||
**Version:** 0.4.0
|
||||
|
||||
Micromate (Series 4) watcher agent for Terra-View fleet management. Runs as a Windows system tray application, scans THORDATA for Micromate unit activity, sends heartbeat data to Terra-View, and (optionally) forwards `.IDFH`/`.IDFW` event files to a seismo-relay SFM server.
|
||||
Micromate (Series 4) watcher agent for Terra-View fleet management. Runs as a Windows system tray application, scans THORDATA for Micromate unit activity, sends heartbeat data to Terra-View, and (optionally) forwards `.IDFH`/`.IDFW` event files to a seismo-relay SFM server. Heartbeats and events can optionally be **mirrored** to a second server (e.g. a standby/NAS) in addition to the primary.
|
||||
|
||||
---
|
||||
|
||||
@@ -29,7 +29,7 @@ build.bat
|
||||
```
|
||||
|
||||
Produces:
|
||||
- `dist\thor-watcher-0.3.1.exe` — upload to Gitea release
|
||||
- `dist\thor-watcher-0.4.0.exe` — upload to Gitea release
|
||||
- `dist\thor-watcher.exe` — use with Inno Setup
|
||||
|
||||
Then run Inno Setup Compiler on `installer.iss` to produce `thor-watcher-setup.exe`.
|
||||
@@ -71,6 +71,9 @@ Managed through the Settings dialog (right-click tray icon → Settings). A `con
|
||||
| `sfm_state_file` | string | `""` | Path to the sha256-keyed state file. Blank → `<log_dir>\thor_forwarded.json` |
|
||||
| `sfm_max_forwards_per_pass` | integer | `500` | Cap per pass to drip-feed large backfills |
|
||||
| `sfm_max_event_age_days` | integer | `365` | Skip event files older than this many days |
|
||||
| `mirror_api_url` | string | `""` | Second heartbeat destination (same URL form as `api_url`). Blank → heartbeat mirror off |
|
||||
| `mirror_sfm_url` | string | `""` | Second SFM base URL (e.g. `http://10.0.0.x:8200`). Blank → event mirror off |
|
||||
| `mirror_sfm_state_file` | string | `""` | Path to the mirror's sha256 state file. Blank → `<log_dir>\thor_forwarded_mirror.json` |
|
||||
|
||||
---
|
||||
|
||||
@@ -86,6 +89,21 @@ When `sfm_forward_enabled` is true and `sfm_url` is set, Thor Watcher walks the
|
||||
|
||||
---
|
||||
|
||||
## Mirror (Dual-Send)
|
||||
|
||||
Thor Watcher can post every heartbeat and event to a **second ("mirror") server** in addition to the primary — useful for keeping a standby box (e.g. the office NAS) as a continuous replica during a server migration, so the eventual cutover is a non-event. **Default off.**
|
||||
|
||||
The mirror rides along with the primary — there is no separate enable flag:
|
||||
|
||||
- **Heartbeat mirror** is active when the API heartbeat is enabled **and** `mirror_api_url` is set. After the primary heartbeat POST, the same payload is fired at `mirror_api_url`.
|
||||
- **Event mirror** is active when SFM forwarding is enabled **and** `mirror_sfm_url` is set. Events are re-forwarded to `mirror_sfm_url` using a **separate** sha256 state file (`mirror_sfm_state_file`, blank → `<log_dir>\thor_forwarded_mirror.json`).
|
||||
|
||||
**The mirror can never delay or fail the primary.** The heartbeat mirror is fully wrapped and bounded by the API timeout. The event mirror runs a quick reachability probe (~3 s) first and skips the pass if the mirror server is down — skipped events stay pending in the mirror state and deliver when it returns, so nothing is lost. All mirror exceptions are swallowed-and-logged; the primary path stays exactly as reliable as before.
|
||||
|
||||
- **Seeding for a migration.** To re-deliver only the gap since a one-time replica snapshot, copy the primary state file to the mirror state file and drop entries whose `forwarded_at` is after the snapshot. SFM-side dedup covers any overlap. See [`docs/mirror-dual-send-design.md`](docs/mirror-dual-send-design.md).
|
||||
|
||||
---
|
||||
|
||||
## Tray Icon Colors
|
||||
|
||||
| Color | Meaning |
|
||||
@@ -121,7 +139,7 @@ Posted to `api_url` on each API interval:
|
||||
{
|
||||
"source_id": "THOR-PC",
|
||||
"source_type": "series4_watcher",
|
||||
"version": "0.3.1",
|
||||
"version": "0.4.0",
|
||||
"generated_at": "2026-03-20T14:30:00Z",
|
||||
"log_tail": ["...last 25 log lines..."],
|
||||
"units": [
|
||||
|
||||
Reference in New Issue
Block a user