Kerim Satirli
May 11, 2023
65

# 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.

May 11, 2023

## Transcript

Satirli
3. ### 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:

8. ### 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
9. ### // 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

11. ### Occupancy Sensor 0 20 40 60 80 100 Q4 2018

Q2 Q3 Q4 2019 2022 2023 " # \$ Graphing Battery Capacity
12. ### // 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

17. ### { "id": "5d1caf08-4235-451d-9fac-4f8d56e89e2e", "timestamp": "2023-01-01T05:01:57Z", "card": "966255423827", "amount": "37.26" }

Customer Transaction Data
18. ### 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

21. ### SQLite packages the entire database into a single, cross-platform compatible

file. - SQLite documentation

SW engs

28. ### edge compute nodes 115 containerized workloads 900 data transfer /

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