The FogPi is an embedded, portable, low-cost and low-power consumption (compared with tradicional Fog servers) Fog computing infrastructure composed by a cluster of 48 Raspberry Pis model 3 B+. FogPi can run Dockers containers and services which are managed and orchestrated through Docker Swarm. The software and hardware components used are accessible and are listed below. 3D cases and bases have been designed for FogPi and are available in this 3D_Designs. You can also see the whole deployed infrastructure at xmas time here.
FogPi is specially suitable for environments where the limited Internet connection and reduced budgets limit the adoption of Fog and Edge deployments.
FogPi uses the open-source projects listed below:
- Hypriot Operating system
- Docker containers
- Docker Swarm for cluster management, orchestation, scaling and load balancing
- Portainer Community Edition for managing the Swarm clusters and their Docker resources (containers, images, volumes, networks and more)
- Docker Swarm Visualizer for visualising the nodes belonging to the Swarm cluster and the containers deployed on them
- Flash for flashing Hypriot images into SD cards fast. An example of configuration file for the OS can be found in the cluster.yml file
The cluster layers include the components used in all the layers of the FogPi infrastructure. The Power connection include the components used to power and control the power in the Raspberry Pis.
- 48x Raspberry Pi 3 Model B+
- 48x Samsung 64Gb Micro SD Card EVO Plus
- 48x Ethernet RJ45 cable Cat 6 2m
- 1x Switch Cisco Catalyst 2960 10/100 48 ports
- 2x 50 hexagonal brass threaded spacer
- 1x 500 Metric thread screw DIN 965 M3 X 10 MM
- 1x 500 Metric thread screw DIN 965 M3 X 20 MM
We have designed 4 power connection units through 3D designs where 12 Raspberry Pis can be connected. Each box includes unique ID numbers to identify each Raspberry; a EconoLatch Plug Housing connector to power via a micro-USB cable with EconoLatch Receptacle Housing connector the Raspberry; a fuseholder with its corresponding fuse to protect the Raspberry from power issues; and illuminated LED switch to switch off and on the Raspberries individually when required. Inside each box all the components are connected through Power Distribution and Phoenix terminals to the power supply.
- 1x 600W 5V Power supply with PFC Function
- 4x Electric Box 216x166x90 J200L
- 1x 100m power cable 18 AWG
- 48x Adafruit USB DIY Connector Shell Micro-B Plug
- 96x EconoLatch Fem Connector 16-18AWG
- 96x EconoLatch Male Connector 16-18AWG
- 2x 100 Terminals RCPT 22-18 6.35x0.81 Cut Strip
- 8x Power Distribution Block DIN Rail PTFIX 6/6X2 for GND
- 8x Power Distribution Block DIN Rail PTFIX 6/6X2 for VCC
- 8x Phoenix Terminals AI6-12GN for GND
- 8x Phoenix Terminals AI6-12GN for VCC
- 1x 100 Phoenix Terminals AI 1,0-8 RD S1
- 1x 4m power black cable 10mm2 for GND
- 1x 4m power blue cable 10mm2 for VCC
- 1x 2m DIN rail
- 16x Ring connectors
- 48x Illuminated LED Rocker Switch
- 48x Shock-Safe Fuseholder, 5x20 mm
- 100x Ceramic Fuse 5x20mm
- 48x EconoLatch Receptacle connector, Single Row, 2 Circuits
- 48x EconoLatch Plug connector, Single Row, with Panel Mount Latch, 2 Circuits
The photo below shows one of the power distribution units of FogPi. Each Raspberry is identified with its number, can be switched off and on with the rocker switches, and fuses protect them from power issues. The Raspberries are powered through their micro-USB inputs with a fabricated 18AWG power cable (this cable is the minimum required for powering the Raspberries), which contains a Micro-B Plug connector, and an EconoLatch Plug to connect them to the EconoLatch Receptacle connector installed in the power units.
This is how the power units are inside. VCC and GND are connected in a circuit from the components in the power units to the Phoenix power distribution blocks with push-in connections. Finally, Phoenix power distribution blocks are connected through 7AWG cables to the power supply.
This infrastructure has been financiated with public funding from Spanish research projects at the ERTIS Research Group, University of Malaga, Spain.