Redpanda BitScope Edge Clusters

BitScope was one of the earliest pioneers when it comes to clustering Raspberry Pi's. Their Cluster Blade includes a BMC that enables remote management, which can be used to temporarily power off cold-standby nodes until they are needed, or to remotely initiate a hard-reset of a locked up system. This is a critical feature when it comes to installing Raspberry Pi clusters on telephone poles on a farm in rural Africa. The BitScope control plane is daisy-chainable up to 128 nodes.

The On Prem agent was purpose-built for the Raspberry Pi, and has driver support for the BitScope BMC. Using the cloud-based On Prem Console or desktop-based CLI, equipment mounted on BitScope cluster blades can be powered on and off with the same ease of use as rebooting a VM at Digital Ocean. But, the Raspberry Pi's are fully manageable with or without Docker, in other words as a baremetal IaaS resource.

BitScope Edge Clusters provide an attractive way to deploy multi-node clusters to environments where connectivity or power is scarce.

One great use for an edge cluster is to perform storage and analytics at the source of the signal. This reference solution was designed for an Oil and Gas use case, and demonstrates a 3-node Redpanda cluster, augmented by an Apache DataFusion Ballista analytics cluster to support querying terabytes of data over a slow or unreliable link.

Redpanda BitScope Edge Cluster Reference Solution

Solution Breakdown

On Prem Agent. The On Prem Agent is installed on all 12 nodes, providing remote management via the On Prem Console and CLI. It embeds a Rust-native equivalent to Prometheus Node Exporter, providing turn-key observability which relieves operators from having to load up Raspberry Pi's with the usual assortment of software agents, many of which were not designed for resource-constrained hardware. The agent "phones home" to the control plane and pins up a reverse-tunnel whenever possible, which is how equipment in the field can be centrally managed.

Redpanda. The selected BitScope Edge Cluster contains 12 nodes, divided into 3 blades, for a total of 48 cores and 96 GB of RAM. A 3-blade BitScope chassis was selected so that each 4-node blade would comprise a Redpanda HA Availability Region. If any blade experiences a power converter failure for example, the two surviving blades allow Redpanda to continue to operate. The Redpanda nodes use NVMe SSDs for performance I/O.

DataFusion. Six nodes run Apache DataFusion, coordinated by its Ballista distributed scheduler. This offers remote operators and data scientists 48 GB of RAM for distributed dataframe workloads such as ad-hoc analytics and EDA. DataFusion is written in Rust, and leverages SIMD and Apache Arrow for efficient vectorized processing and compression. Because of this, it is sometimes up to 10x more memory-efficient than Apache Spark, making it the perfect compute stack for resource-constrained hardware.

Edge Lambdas. Two nodes are reserved for running lambdas within the On Prem Agent's embedded Lua+WASM lambda runtime (LuaJIT + Wasmer). This embedded lambda service was designed to be able to keep up with IoT signals such as A/D converters running at 128,000 samples/sec. Edge lambdas can be used to perform machine learning at the source of the signal, and can publish insights directly to the Raspberry Pi's IoT busses for alerting or preventative shutdown of sensitive equipment.

Summary

The emergence of low powered edge analytics clusters has enormous implications for remote operators and data analysts, who can now query terabytes of data on edge equipment over bandwidth-constrained or unreliable links. Instead of shipping IoT data back to the cloud before it can be analyzed, which can be expensive or slow, operators can simply send a tiny SQL query over the wire, let the edge cluster nodes crunch the data in parallel at the speed of USB-3 based SSD storage, and then return a modest result set over the wire using Apache Arrow and its compression-optimized columnar Arrow Flight protocol.

Learn More

  • Read our architecture diagram
  • Write a lambda that can cycle the power of a node mounted on a BitScope Cluster Blade
  • Read our Lambda examples, to see how you can program edge agents to interact with IoT busses or Kafka
  • Contact us for licensing options