Incident Triage and Recovery Criteria for a Mini PC Server
Incident-triage paths and a procedure for verifying mini PC backups in a separate environment
Hangangjari’s backend runs on a mini PC at home. The App Store app and widgets depend on its API, ingestion workers, and notification path. The incident check order runs from user requests to source data so stale parking information and delayed notifications can be traced to a segment.
Operations Starting from User Requests
Early checks focused on API and worker processes, DB and Redis connections, and app responses. After public release, incidents are narrowed through the user request path, specific APIs, worker ingestion, source freshness, and cache in that order.
flowchart LR Client["iOS app / widget"] --> Public["User request path<br/>edge / ingress"] Public --> API["API service"] API --> Data["Postgres / Redis"] Workers["Workers<br/>ingestion / forecast / push"] --> Data Data --> API Runtime["GitOps state"] --> API Runtime --> Workers Signals["Metrics / logs / dashboards"] --> API Signals --> Workers
If a segment stops, the app fails requests or displays stale information. Each segment needs an observable state and last-success time regardless of host size.
Separate User and Management Paths
User APIs and operator access use different authentication and exposure policies. The app API is published on the user request path, while operator access remains behind a separate protection policy. Incident triage also checks the user request path, running services, and operator control path independently.
Server State Kept in Git
Deployable images and Kubernetes resource state are stored in Git, and the GitOps controller reconciles the runtime toward them.
flowchart LR AppRepo["App repository"] --> CI["CI<br/>tests / build"] CI --> Image["Versioned image"] CI --> Desired["Desired deploy state"] Desired --> Sync["GitOps sync"] Sync --> Runtime["API / workers / data services"] Runtime --> Smoke["Post-deploy smoke check"]
Incident review uses these records:
- Deployment images remain traceable to commits.
- Runtime drift from Git state is visible.
- Deployment state and post-deploy results are recorded together.
- Direct server changes receive a separate operating record.
Git state cannot verify DB migrations, worker rollout order, operating configuration, or external-source failures. Those are checked in post-deploy verification and operational dashboards.
From Shared Triage to Recovery
Part 09 covers the shared checks for APIs, workers, source freshness, and cache. This article focuses on recovery priorities and completion criteria after those checks. The notification incident records a concrete case where old snapshots became notification candidates after runtime recovery.
Backups Verified Through Restore
The following procedure is for restoring and reading a backup in a separate environment. This article supplies no specific backup, restore time, or execution result, so it is not a completed-restore record. Recovery priorities are classified as follows.
| Data | Character |
|---|---|
| Values that can be collected again from public sources | Rebuildable |
| User notification settings and push subscriptions | User data that must be recovered |
| App events and audit records | Evidence for operations review |
| Forecast/backtest history | Evidence for forecast review |
| Cache | Rebuildable |
The procedure prioritizes restoring user notification settings and push subscriptions. Cache and public data that can be collected again are rebuilt, while audit and forecast history remain preserved for incident and forecast analysis.
Recovery Completion Criteria
Recovery checks include source freshness, cache fallback, push backlog, and restored data as well as API and worker processes. Because this path runs on one mini PC, host resources and application state appear in the same check order.
Comments
No comments yet. Be the first to leave one.
Pending review