Analytics & ML · Study deck

Big Data Operations

Imagine a factory dashboard whose computers all report "up" while new machine readings are two hours late.

Data Dora is your guide for this deck.

dataoperations
Data Dora, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: It should also name the metrics that prove the objectives are being met: broker lag, event-time delay, processing rate, validation failure rate, duplicate rate, watermark drops, storage growth, query latency, and recovery time.
  • Explain: Each label corresponds to a different broken contract, so the operational record must preserve the first failing boundary and the owner response instead of reducing every incident to “the cluster was down.”.
  • Explain: If Kafka lag grows, the team checks whether producers increased, a consumer slowed, one partition became hot, a sink is throttling, or a schema error is forcing retries.
iotclass.org

Major section

Start With the Story

Operate the Decision Path, Not Just the Servers: Imagine a factory dashboard whose computers all report "up" while new machine readings are two hours late.

  • The hardware is running, yet the maintenance decision is no longer timely.
  • The operations team should follow one fact from the device to the final screen.
  • When an alert fires, name the first broken boundary and the decisions it affects.

Key terms

If one minute
If one minute is dangerous, keep the first safe action near the machine.
iotclass.org

Major section

Start With the Story (continued)

If a delay does not harm that job, choose a fairer limit.

  • If one minute is dangerous, keep the first safe action near the machine.
  • The closing note should tell the next shift what was lost, what was replayed, and what still needs watching.
  • This simple path does not cover every shared service or cost trade-off.
iotclass.org

Major section

Operations Protect Data Contracts

Operating an IoT big-data system means keeping the evidence path reliable after real devices, networks, schemas, workloads, and costs change.

  • The operational contract should define service objectives for freshness, completeness, replay, retention, and query performance.
  • A healthy system is not one with no alerts.
  • Freshness How quickly an event becomes usable in alerts, dashboards, features, and reports.
Operations should monitor the whole evidence path, not only server uptime: device health, ingestion rejects, queue lag, processor errors, storage growth, cost trends, and runbooks all show whether downstream decisions remain trustworthy.
Operations should monitor the whole evidence path, not only server uptime: device health, ingestion rejects, queue lag, processor errors, storage growth, cost trends, and runbooks all show whether downstream decisions remain trustworthy.
iotclass.org

Major section

Operations Protect Data Contracts (continued)

It should also name the metrics that prove the objectives are being met: broker lag, event-time delay, processing rate, validation failure rate, duplicate rate, watermark drops, storage growth, query latency, and recovery time.

  • The operations question is not "is the cluster up?" It is "can the current pipeline still produce timely, complete, replayable, and cost-bounded decisions from the device evidence?".
  • The path continues through: Storage growth and restore evidence to: Costs trends;: Runbooks then turn those signals into alerts and action that feed the loop.
  • Completeness How many expected devices, events, and windows arrive and pass validation.
iotclass.org

Major section

Operations Protect Data Contracts (continued)

Each label corresponds to a different broken contract, so the operational record must preserve the first failing boundary and the owner response instead of reducing every incident to “the cluster was down.”.

  • Replay How far back the system can rebuild outputs after a bug, schema change, or outage.
  • Cost How storage, compute, stream retention, and query scans grow as data volume grows.
  • Governance Who can change schemas, retention, access rules, quality gates, and serving definitions.
iotclass.org

Major section

Runbooks for Lag and Storage

Operational alerts should lead to an action path.

  • If Kafka lag grows, the team checks whether producers increased, a consumer slowed, one partition became hot, a sink is throttling, or a schema error is forcing retries.
  • If query latency grows, the team checks partition pruning, small files, table compaction, indexing, and retention.
  • Runbooks should include numbers.

Why it matters

Otherwise the restart can erase the evidence needed to explain the incident.

iotclass.org

Major section

Runbooks for Lag and Storage (continued)

Otherwise the restart can erase the evidence needed to explain the incident.

  • A lag alert is more useful when it says how fast the backlog is growing and how long until the recovery window is exceeded.
  • Each action should preserve evidence before restarting jobs or deleting data.
  • Force-accept incompatible payloads into curated tables.
iotclass.org

Major section

Reliability Needs Retesting

Long-running IoT data systems fail slowly when retention and lifecycle rules are missing.

  • Raw data grows, small files multiply, compaction falls behind, dashboards scan too much history, and backup or replay windows become unclear.
  • Operations should separate raw replay retention, curated analytical retention, serving retention, and aggregate retention.
  • Reliability also depends on routine retests.
iotclass.org

Major section

Reliability Needs Retesting (continued)

Each tier needs an owner, a cost limit, and a retest after policy changes.

  • A restore drill proves that checkpoints can restart.
  • A replay drill proves that raw events and transformation versions can rebuild a table.
  • A schema-compatibility test proves that new firmware does not break downstream jobs.
  • Firmware changes silently changing units, fields, or enum meanings.
iotclass.org

Major section

Reliability Needs Retesting (continued)

operational implication: Keeping raw data forever is rarely the right control.

  • Raw Retention Bounded period for replay, audit, device debugging, and reprocessing after bad code or schema changes.
  • Curated Tables Cleaned and versioned records for analytics, with quality flags and partition strategy.
  • Storage grows faster than forecast or old raw data is needed but missing.
iotclass.org

Deck summary

Key takeaways

Operate the Decision Path, Not Just the Servers: Imagine a factory dashboard whose computers all report "up" while new machine readings are two hours late.

  • If a delay does not harm that job, choose a fairer limit.
  • Operating an IoT big-data system means keeping the evidence path reliable after real devices, networks, schemas, workloads, and costs change.
  • It should also name the metrics that prove the objectives are being met: broker lag, event-time delay, processing rate, validation failure rate, duplicate rate, watermark drops, storage growth, query latency, and recovery time.
  • Operational alerts should lead to an action path.
iotclass.org

Retrieval practice

Recall check 1 of 3

Data Dora says: answer from memory, then check your reasoning.

Q1Which evidence best shows that an IoT big-data system is operationally healthy?

AFreshness, completeness, replay, cost, and governance metrics tied to decisions.
BThe cluster dashboard is green, so downstream data is automatically complete and replayable.
CThe team stores every raw event forever and never deletes or aggregates anything.
DEvery alert is muted until users report a broken dashboard.
Show answer

Answer: A Operational health is measured against the data contract and decision impact, not only cluster availability.

iotclass.org

Retrieval practice

Recall check 2 of 3

Data Dora says: answer from memory, then check your reasoning.

Q2A stream has 420,000 events of lag, producers add 18,000 events/s, consumers process 14,500 events/s, and the critical threshold is 2,000,000 events. About how long until the threshold is hit if nothing changes?

AAbout 7.5 minutes.
BAbout 3,500 seconds.
CAbout 2 hours.
DNo action is needed because consumers are still processing events.
Show answer

Answer: A Time to threshold is remaining lag budget divided by the net lag growth rate.

iotclass.org

Retrieval practice

Recall check 3 of 3

Data Dora says: answer from memory, then check your reasoning.

Q3A raw stream stores 69.12 GB/day. Reducing raw retention from 90 days to 30 days changes the raw footprint from about 6.22 TB to about 2.07 TB. What must operations prove before making that change?

AThat 30 days is still enough for replay, audit, debugging, and any required correction workflows.
BThat the hourly aggregates preserve the long-term trend charts, making them a sufficient substitute for the deleted raw records.
CThat the smaller raw footprint produces faster dashboard queries during a representative load test.
DThat schema validation can be disabled because less raw data is stored.
Show answer

Answer: A Lifecycle changes must preserve the evidence window needed for replay, audit, and correction.

iotclass.org

Print reference

Answers

Answer key.

  1. A · Operational health is measured against the data contract and decision impact, not only cluster availability.
  2. A · Time to threshold is remaining lag budget divided by the net lag growth rate.
  3. A · Lifecycle changes must preserve the evidence window needed for replay, audit, and correction.
iotclass.org