Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What We Learned from Building Edge Compute

What We Learned from Building Edge Compute

In this presentation, I explain what we have learned from building compute services at the edge by diving into three engineering different projects.

This version of the talk was given at the 2023 Edition of Open Source Summit North America as part of the "Cloud Open" track.

Kerim Satirli

May 11, 2023
Tweet

More Decks by Kerim Satirli

Other Decks in Technology

Transcript

  1. edge com·put·ing noun computing that takes place at or near

    the physical location of the producer or consumer of data. point of presence mobile datacenter Similar:
  2. var C // capacity (mAh) var I // current when

    in sleep mode (mA) var Imeas // current in measurement mode (mA) var Irx // current in Rx mode (mA) var Itx // current in Tx mode (mA) var N // measurements (count) var T // milliseconds per hour (3.6M) var Tmeas // duration of measurement mode (ms) var Trx // duration of Rx mode (ms) var Ttx // duration of Tx mode (ms) var U // usable capacity incl. self-discharge (percentage) Projecting Battery Capacity
  3. // active capacity usage / day var cA = ((N

    * ((Ttx * Itx) + (Trx * Irx) + (Tmeas * Imeas))) / T) // sleep capacity usage / day var cS = I * (24 - ((Ttx + Trx + Tmeas) * N) / T) // total capacity consumed / day var cT = cA + cS // projected battery life var Bd = (cU / cT) / 24 // in days var By = Bd / 365.25 // in years Projecting Battery Capacity
  4. Occupancy Sensor 0 20 40 60 80 100 Q4 2018

    Q2 Q3 Q4 2019 2022 2023 " # $ Graphing Battery Capacity
  5. // assembled and decoded payload (via webhook) var payload //

    remaining battery capacity (0...254) var capacity = var.payload.capacity // remaining battery capacity (0...254) var capacity_in_percent = (var.capacity / 254) * 100 // overwrite capacity value with percentage-based one payload.capacity = var.capacity_in_percent Calculating Battery Capacity
  6. single transaction size 200 Bytes envelopes and overages + 1.25

    x per-store transactions 2500 per-store transaction size 610 Kilobytes total transaction size 723 Megabytes total transaction count 3.032.500 Customer Transaction Data
  7. edge compute nodes 115 containerized workloads 900 data transfer /

    month 80 Terabytes combined memory 115 Gigabytes combined CPU 103 GHz Boring Hardware?