Size raw replay and hourly storage

Size raw replay and hourly storage

Try Before switching to Once a minute, predict the factor by which raw storage will change. Will hourly storage change by the same factor?

10,000 sensors · 80 bytes per parsed reading · one-minute alert deadline · 30 days of raw replay · one year of hourly aggregates at 120 bytes per record.

Once a second. Raw replay uses 2,073.6 GB. Hourly aggregates use 28.8 MB/day.

Raw payload

  1. 10,000 sensors × 1 event/(second × sensor) = 10,000 events/s.
  2. 10,000 events/s × 80 bytes/event = 800,000 bytes/s = 0.8 MB/s.
  3. 800,000 bytes/s × 86,400 s/day = 69,120,000,000 bytes/day = 69,120 MB/day = 69.12 GB/day.
  4. 69,120,000,000 bytes/day × 30 days = 2,073,600,000,000 bytes = 2,073.6 GB ≈ 2.07 TB.

Hourly aggregate

One record per sensor per hour.

10,000 sensors × 24 records/(sensor × day) × 120 bytes/record = 28,800,000 bytes/day = 28.8 MB/day.

Keep hourly aggregates for one year.

Observe Compare daily bytes and 30-day replay under the two presets. The hourly column holds at 28.8 MB/day.

Explain Each sensor contributes one hourly record in either preset. Raw readings follow the selected cadence, where a minute contains 60 seconds.

Check your cadence prediction

Once a minute gives 1/60 of the raw rate and replay volume of Once a second. Hourly storage stays fixed because neither the number of sensors nor the per-sensor output cadence changes.

Technical boundaries. Payload totals exclude protocol framing, indexes, replicas, compression and other storage or transport costs. The one-minute alert deadline is an operations requirement separate from this workload estimate.

Back to the chapter