Industrial gateway cabinet with a disconnected cloud status display
AI-generated conceptual image; not an actual Kalstor product, facility, customer project or test record.
Home › Resources › How Much Storage Does an Industrial Gateway Need for Offline Buffering?
Guides · Industrial Storage

How Much Storage Does an Industrial Gateway Need for Offline Buffering?

By Kalstor 7 min read
Key takeaways
  • Measure the bytes the actual queue stores during an outage; raw sensor payload and nominal drive capacity are insufficient sizing inputs.
  • A retention limit or full-queue policy can discard data even when the storage medium has free space.
  • Catch-up requires successful backlog delivery to outpace new arrivals while the gateway reads old records and writes new ones.

Size an industrial gateway's offline buffer from the serialized records its software queues per second and the longest outage it must cover. Then check whether successful delivery after reconnection exceeds continuing data arrival. The first calculation estimates the queued record volume. The second estimates how long the backlog will remain on the device. Neither a capacity label nor a network link's advertised speed answers both questions.

Before choosing storage, identify the gateway's queue implementation. Its retention period, persistence mode, behavior when full and acknowledgement rules decide whether records survive long enough to be uploaded. For example, Azure IoT Edge stores upstream messages locally while disconnected, but its documented storage duration depends on a configured time to live (TTL) and available disk. AWS Greengrass stream manager lets an integrator set stream storage and retention policies. These are examples of different software implementations, not universal gateway settings.

Calculate the outage backlog from stored bytes

For a roughly steady data source, use:

Queued record bytes = measured serialized record bytes/second × outage seconds

Add the results for all sources sharing the same queue. If an alarm or batch process produces bursts, model its volume separately or use a recorded time series. A daylong average can hide the interval that fills the queue fastest. Measure the serialized records under the intended batching and compression settings: raw sensor bytes, queued record bytes, network traffic and total disk occupancy need not be the same.

The resulting record volume is only part of the disk budget. Measure or reserve separately for queue indexes and segment files, filesystem allocation, logs, software updates and other data that shares the partition. The usable queue limit set in software can be smaller than the space available on the storage device. There is no reliable universal overhead multiplier; inspect total disk occupancy on the candidate runtime as records accumulate.

Input to recordWhy it matters
Sources and message formatEstablish which records enter this queue and how they are stored.
Serialized queued-record bytes per interval, including burstsCalculate accumulation under normal and peak conditions.
Longest required outageSet the target retention window in seconds or hours.
Queue TTL or retention policyCheck whether older records expire before they can be delivered.
Full-queue actionDetermine whether new records are rejected, older ones overwritten or another action occurs.
Persistence path and other disk usersConfirm how much usable space remains for the queue.
Target gateway and storage configurationTie the estimate to a host interface, partition and exact media candidate.

TTL and capacity are separate limits. The Azure IoT Edge documentation currently gives a default message TTL of 7,200 seconds for its edgeHub, configurable for longer outages. That number is specific to that product and configuration. A larger drive cannot retain a message past the software's expiry rule. Conversely, a long TTL does not stop a small queue from filling. Greengrass documents configurable persistence and full-stream behavior; an integrator must check whether its selected policy rejects new writes or overwrites older data. Its TTL is an availability period, not a promise of immediate deletion at the expiry instant.

Estimate how long catch-up will take

After the link returns, the gateway may be reading queued records, writing new ones and uploading both. Compare rates in the same byte units and at the same accounting point: count the queued-record bytes acknowledged as delivered, not compressed bytes on the wire, against new queued-record bytes.

Net backlog drain rate = queued-record bytes delivered/second − new queued-record bytes/second
Estimated catch-up time = existing backlog bytes ÷ net drain rate

The second line applies only if net drain is positive and the measured rates stay approximately stable. If delivery equals or falls below new arrivals, the backlog cannot shrink under those conditions. Use the rate of records the destination has actually accepted under the system's acknowledgement rules, not the network adapter's link speed. Repeated transfers, bandwidth contention, a slow destination or a queue that reads slowly can all reduce the observed rate. Microsoft notes that IoT Edge delivery after reconnection depends on connection speed, IoT Hub latency and other factors.

For a hypothetical calculation, suppose the gateway queues serialized records at 0.12 decimal MB/s for a 12-hour outage. The queued record volume is 0.12 × 43,200 = 5,184 MB, or 5.184 decimal GB. After reconnection, suppose acknowledged delivery of those records averages 0.30 MB/s on the same record-byte basis while new records continue to enter at 0.12 MB/s. Net drain is 0.18 MB/s, so 5,184 ÷ 0.18 = 28,800 seconds, or eight hours. The software must retain the oldest records through both the outage and catch-up period if the project requires delivery of all of them. The actual storage reservation exceeds this record-volume calculation and must be measured on the target software and disk.

This estimate changes if arrivals surge, records expire, the destination limits ingestion or the system retries uploads. Record the backlog count and age as well as occupied bytes; a falling queue size caused by expiry or overwrite is not successful catch-up.

Test the queue and storage together

Calculate first, then run the proposed configuration on a test gateway. Record the exact software version, queue settings, filesystem, storage part and firmware, network conditions and destination limits. Use test data and a backup before any destructive power or near-full test.

TestObservation to capture
Planned outage at normal input rateQueue bytes and record count over time; oldest record age and any expiry.
Burst while offlinePeak queue growth, application blocking and any rejected or overwritten records.
Near the agreed queue and disk limitsThe configured full-queue action, remaining OS space and recovery after the limit is removed.
Restart or controlled power interruption on test equipmentWhich acknowledged-to-the-gateway records survive, and whether the queue restarts cleanly.
Reconnect with live arrivalsAccepted delivery rate, new arrival rate, queue age, concurrent storage reads/writes and time to empty.
Restricted link or destination rateRetries, delayed, duplicated or expired records, and whether the backlog continues growing.

The software's persistence location matters. Azure recommends dedicated host storage for reliable offline operation rather than relying on its default local container filesystem. AWS requires an existing, writable directory for Greengrass stream manager storage. Confirm the actual volume or mount, permissions and restart behavior for your runtime; do not infer persistence merely because a drive is installed.

The customer or integrator defines queue semantics, delivery acknowledgement, retries, deduplication and cloud acceptance. Storage media cannot supply an exactly-once guarantee for the application. If a sample loses or duplicates records, locate the responsible layer before changing flash hardware.

Turn the measurements into a storage request

Send a supplier the gateway model and host interface, required queue capacity after measured overhead, ongoing and peak writes, concurrent read/write duty, target life, environment, power-interruption conditions and the exact configuration to be qualified. Kalstor's RFQ guide shows how to keep these requirements and unresolved items visible in a comparable quote. For a candidate storage configuration, use the quote request or OEM contact. Queue software, network recovery and cloud delivery acceptance remain with the gateway integrator.

Sourcing in volume?

We publish measured usable capacity and define trial-batch verification against the quoted product and agreed test scope.