Skip to content

Releases: chewett/RaspberryPiCluster

Tutorial 18 - Raspberry Pi Temp Monitoring

03 Mar 17:20
Compare
Choose a tag to compare

In this tutorial I collect the CPU temperature of the Raspberry Pi and report it
as part of the node vitals.

This again is logged in the InfluxDB data store for review.

Tutorial 17 - InfluxDB Machine Stats Monitoring

19 Jan 19:23
Compare
Choose a tag to compare

In this tutorial I modify the secondary nodes to send data about the node to the primary.

This is then received and logged to an InfluxDB database for review.

The full details for Tutorial 17 - 17 InfluxDB Machine Stats Monitoring

Tutorial 16 - Python 3 codebase Refactor

25 Oct 22:49
Compare
Choose a tag to compare

This tutorial adds to the previous one by improving moving the codebase to Python 3. In this it is also refactoring a number of the older parts of the codebase.

The full details for Tutorial 16 - Python 3 codebase Refactor is available on my blog

Tutorial 15 - A more complex webserver

26 Sep 20:53
Compare
Choose a tag to compare

This tutorial adds to the previous one by improving the display of the webserver by including information about the slaves attached. In addition to this the slaves are modified to use a UUID rather than a random integer to define them.

The next tutorial will focus on cleaning up the codebase in preparation for new features.

The full details for Tutorial 15 - A more complex webserver

Tutorial 14 - A simple webserver

26 Sep 20:40
Compare
Choose a tag to compare

This tutorial focuses on creating a simple webserver that displays the status of the master using the python library Bottle. This will form the basis of having a simple web interface to view the progress of the cluster and control it.

The next tutorial will focus on improving the webserver to display slave information in addition to the current information.

The full details for Tutorial 14 - A simple webserver

Tutorial 13 - Abstracting Slave Code

26 Sep 17:07
Compare
Choose a tag to compare

This tutorial focuses on abstracting the slave code to be more extensible. I create a general purpose class which is used by each Slave Thread. This will include the ability to customise the slave more generally while maintaining a common core.

The next tutorial will focus on adding a simple webserver to the core of the code.

The full details for Tutorial 13 - Abstracting Slave Code

Tutorial 12 - Automatic Start with rc.local

26 Sep 16:53
Compare
Choose a tag to compare

This tutorial focuses on modifying our script to automatically start using rc.local. Some changes will be needed to ensure it works after being run from any location.

The next tutorial will focus on abstracting the slave code to be more extensible.

The full details for Tutorial 12 - Automatic Start with rc.local is available on my blog

Tutorial 11 - Automatic Slave Reconnection

26 Sep 16:21
Compare
Choose a tag to compare

This tutorial focuses on changing the slave so that it will automatically reconnect to the master if the connection is lost.

With this addition the slave will automatically reconnect to the master no matter how many times it has been restarted. This moves the cluster one step forward towards a system which will automatically repair if there is an issue.

The next tutorial will focus on looking at how we can make the cluster code run on boot using rc.local.

The full details for Tutorial 11 - Automatic Slave Reconnection is available on my blog

Tutorial 10 - More Advanced Connection Handling

26 Sep 15:57
Compare
Choose a tag to compare

This tutorial focuses on improving the master and slaves connection handling code. Here I am going to add a custom exception that can be used in the event of disconnection.

In the next tutorial we will look at improving the slave so that if the master goes down, it will rejoin at the next opportunity.

The full details for Tutorial 10 - More Advanced Connection Handling is available on my blog

Tutorial 9 - Multi Slave Master

26 Sep 15:49
Compare
Choose a tag to compare

This tutorial focuses on changing the master so that it accepts multiple slaves connecting to it.

Currently there is no error handling for nodes connecting and disconnecting. The next tutorial will focus on hardening the master and slaves connection/disconnection code.

The full details for Tutorial 09 - Multi Slave Master is available on my blog