Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 03:13
· 863 commits to main since this release
de944c3

What's in v1.1.0 — cheaper ingest, and devices outside the cluster connect over MQTT

  • Upgrade in place from v1.0.0 with dcctl install, then one dcctl upgrade per instance; two appended migrations each add a table and rewrite no row, and nothing is removed. Two behavior changes to check first. Platform service logins can no longer authenticate over MQTT (only the event-sources login can; devices are unaffected), so a script that connected to the MQTT listener with one needs a device credential. And re-running dcctl bootstrap now keeps the broker certificate authority instead of minting a new one. DeviceState.inactivityAlarmTime is deprecated in favor of lastDisconnectTime and is removed in the next major release.
  • Ingest costs less per event. On a mixed load of about 6,200 events per second on GKE, platform CPU per event is 21% lower than on the last build before the writer changes (2.60 to 2.06 CPU-seconds per 1,000), the relational database is 40% cheaper, the event store 49% and device-state 58%, with the 99th-percentile persist latency down from 167 ms to 107 ms. The event writers now fill their batches, and the device-state batch cap defaults to 64.
  • Devices outside the cluster can connect over MQTT. dcctl bootstrap and dcctl upgrade take --mqtt-exposure gateway|loadbalancer --mqtt-host <name> to publish the broker's TLS listener on port 8883, with TLS ending at the broker and plaintext MQTT never published. It is off by default, and --broker-max-connections bounds a connection flood.
  • Event envelopes are available as an opt-in, off by default: several events of one tenant travel in one stream message. On a local cluster at 1,500 events per second, both switches on cut broker messages per event by about 41% and total CPU per event by about 12%. dcctl upgrade refuses to move below v1.1.0 while they are on.
  • The event streams are sized by outage runway: streamDesignRate and streamRunwayMinutes set how many minutes of events they hold at a design rate, and the chart defaults leave today's ceilings unchanged. Lowering a ceiling below what a stream holds is refused unless you pass --allow-ceiling-shrink.
  • It is easier to see what is wrong: events the platform refuses can be listed (dcctl events failed, and an Ingest failures view in the console), measurement keys dropped at resolution are recorded per device, a device page shows a presence timeline, kubectl get dci reports the observed status of an instance (its columns changed), and the broker certificate's expiry is reported and alerted on.

Full upgrade notes for v1.1.0 →

Changelog