A gateway that loses its uplink must choose which measurements to keep until connectivity returns. Size the spool from the longest intended outage and the bytes written per record, including timestamps and identifiers. Sensor payload size alone understates the requirement.

ArmSoM Sige5 single-board computer · ArmSoM
Work through an outage
At five records per second and 320 bytes stored per record, twelve hours generates about 69.1 MB before database overhead. Allow space for indexes, temporary files and unusually large messages. Fill a spare unit with representative records, then measure actual disk usage. Check that replay can drain the backlog while new samples continue arriving.
Outage at 5 records/s and 320 B/record | Raw local spool requirement |
1 hour | 5.76 MB |
6 hours | 34.56 MB |
12 hours | 69.12 MB |
Compare the filesystem space used by an empty spool with a spool containing 10,000 representative records. The difference divided by 10,000 gives a practical starting estimate for bytes per stored record.
Include a policy for the full-spool case. A counter that identifies missing records is easier to reconcile than a silent deletion. Test the policy with a deliberately small spool before committing the normal partition size.
What changes if the receiver is slow after reconnection?
Capacity for the outage covers only the time the uplink is unavailable. If the receiver accepts fewer acknowledgements per second than the device generates new records, storage keeps filling after the link returns. Exercise that condition with a receiver or test service under your control. Track outstanding record IDs and the age of the oldest one while live samples continue.
Decide what an operator must see before limits are reached. For example, the gateway might expose remaining hours at the current recording rate and a separate warning when replay stops making progress. Those two indicators answer different field questions.
Reference material
ArmSoM Sige5 hardware documentation
