VOOZH about

URL: https://thenewstack.io/creating-a-demo-environment-with-a-raspberry-pi-cluster/

⇱ Creating a Demo Environment with a Raspberry Pi Cluster - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2021-11-22 10:00:25
Creating a Demo Environment with a Raspberry Pi Cluster
contributed,sponsor-influxdata,sponsored,sponsored-post-contributed,
Edge Computing / Kubernetes

Creating a Demo Environment with a Raspberry Pi Cluster

After considering some alternatives, the InfluxData marketing team decided to go with a Raspberry Pi cluster. This gave us flexibility and fits our typical usage.
Nov 22nd, 2021 10:00am by Charles Mahler
👁 Featued image for: Creating a Demo Environment with a Raspberry Pi Cluster
Featured image via Pixabay
InfluxData sponsored this post.
Charles Mahler
Charles is a technical marketing writer at InfluxData. Charles’ background includes working in digital marketing and full-stack software development.

In today’s world, the default application hosting choice is to just spin something up in the cloud. Sometimes, though, alternative options work better.

A little over a year ago, the InfluxData marketing team wanted to set up a demo environment with Kubernetes. The plan was to use it for benchmarking, generating demo data and being able to test out any other random ideas we might have.

Using any of the available managed Kubernetes services was the obvious solution, but this seemed like overkill for what we needed. We weren’t planning to use this for production and wouldn’t be using it very often, so it didn’t really make sense to pay for 24/7 availability with a huge amount of resources. Using the cluster for resource-intensive tasks would be a rare occasion.

After considering some alternatives, we decided to go with a Raspberry Pi cluster. This gave us flexibility, and as a bonus, the only long-term cost is the small amount of electricity the cluster uses while running in the office.

Raspberry Pi Cluster Alternatives

Once we decided against a cloud-hosted Kubernetes environment, there were still a few alternatives to consider. One option would have been to create a more conventional x86 server cluster, but that was also overkill.

Another alternative that wasn’t available at the time was TuringPi, which uses Raspberry Pi compute modules rather than Raspberry Pi 4. To make things easier, we went with a kit from Pico Cluster that included all of the components we would need. All we had to do was assemble it.

​​👁 Boxes of Raspberry Pi components

In the end, we chose Raspberry Pi over some other cheaper alternatives primarily because of the huge community and the amount of available tutorials and other community resources.

Hardware Breakdown

Now let’s get to the exciting stuff, the type of hardware we are actually working with!

👁 Raspberry Pi components

Our Raspberry Pi cluster runs the following hardware:

  • 5 Raspberry Pi 4B with 8GB RAM and Quad-core Broadcom 1.5GHz CPU
  • 5 Samsung 860EVO V-NAND SSD SATA M.2 + SATA M2 250GB
  • 5 Kingston 64GB microSDXC Canvas Go Plus 170R A2 U3 V30

The cluster uses a 1GB-per-second local network with a dedicated router. Each Raspberry Pi acts as a node in the Kubernetes cluster with a static IP address that uses MetalLB as the load balancer. The CPUs have been overclocked to 2.0GHz to get more performance.

👁 Raspberry Pi components plugged together

Software Breakdown

👁 Dashboard screenshot

Ubuntu 20.04 is used as the operating system for this Raspberry Pi cluster. Applications are run inside Docker with Kubernetes orchestrating the containers. We use Jenkins for automating jobs, which run in Kubernetes and InfluxDB, with Telegraf for monitoring all the demo data and other things running on the cluster. Ceph is used for storage.

This setup works well and can be used when we test out integrations and develop templates for some of the most popular software that can be used with InfluxDB.

👁 Cluster monitoring dashboard

Use Cases for a Raspberry Pi Cluster

For our use case at InfluxData, our Raspberry Pi cluster works perfectly. Although, you can also do much more than just run a Kubernetes cluster for work-related stuff. Below are a few ideas from our team about how you could use your own personal Raspberry Pi cluster.

Home Automation

One cool way you could use your Raspberry Pi cluster is to manage and automate some of the stuff in your home while maintaining your privacy. Home Assistant is an open source platform for home automation that integrates with over 1000 different devices like Amazon Alexa, Google Assistant, Phillips lighting, Plex server and protocols like MQTT. It is built to be customized and extended for your use case.

Some common use cases would be sending notifications from cameras, creating wake-up alarms with your lights, minimizing energy usage based on certain factors and much more.

It should be noted that you can probably accomplish most home automation tasks with a single Raspberry Pi in terms of computing power, but a cluster could be useful for redundancy.

Raspberry Pi Supercomputer

While our cluster only has five connected Raspberry Pis and is a long way from being considered a supercomputer, you could take things to the next level if you wanted. Oracle, for example, had a team of salespeople create a 12-node Raspberry Pi cluster as a demo environment for Oracle Cloud. Over time, Oracle expanded the project until it was a 1060-node cluster.

Learning

Building out a Raspberry Pi cluster is also just a great way to learn about a ton of different things that can be useful in a technology job. In the process, you’ll learn about networking, IT and many other things. Once you have it set up, you have the perfect environment for learning about DevOps and anything else you want to try without having to worry about destroying something important while playing around.

InfluxData is the creator of InfluxDB, the leading time series platform. More than 1,900 customers use InfluxDB to collect, store, and analyze all time series data at any scale. Developers can query and analyze their time-stamped data to predict, respond, and adapt in real-time.
Learn More
The latest from InfluxData

Lessons Learned

Setting up and running the Raspberry Pi cluster was fun for our team and accomplishes exactly what we set out to do from a business perspective. That isn’t to say it was all sunshine and rainbows; there are a few things you’ll want to watch out for.

First off, many tutorials you’ll find online will only cover some very general use cases, so you will have to handle edge cases as you go. One struggle for our team, because we chose Ubuntu ARM64 as the base operating system instead of Raspbian, many Docker images didn’t work correctly when trying to run critical components. (This has gotten better over time as many more projects are beginning to support ARM64.)

Another major limitation is anything that involves a lot of network communication (not having a strong connection at your office or home being the most obvious problem). You could also run into issues with latency if you are trying to communicate with systems that are running in the cloud. For anything involving IoT, monitoring or small R&D use cases, though, a Raspberry Pi cluster is a great solution.

👁 Demo cluster with lights

InfluxData is the creator of InfluxDB, the leading time series platform. More than 1,900 customers use InfluxDB to collect, store, and analyze all time series data at any scale. Developers can query and analyze their time-stamped data to predict, respond, and adapt in real-time.
Learn More
The latest from InfluxData
TRENDING STORIES
Charles Mahler is a technical writer at InfluxData, where he creates content to help educate users on the InfluxData and time series data ecosystem. Charles' background includes working in digital marketing and full-stack software development.
Read more from Charles Mahler
InfluxData sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma, Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
👁 Image
Join the millions of developers using InfluxDB to predict, respond, and adapt in real-time.