High Availability Server Using Raspberry Pi 4 Cluster and Docker Swarm

  • T Yudi Hadiwandra Department of Informatics Engineering, Universitas Riau
  • Feri Candra Department of Informatics Engineering, Universitas Riau
Keywords: Cluster Computing, Docker Swarm, High Availability, Raspberry Pi, Web Server


In the Industrial 4.0 era, almost all activities and transactions are carried out via the internet, which basically uses web technology. For this reason, it is absolutely necessary to have a high-performance web server infrastructure capable of serving all the activities and transactions required by users without any constraints. This research aims to design a high-performance (high availability) web server infrastructure with low cost (low cost) and energy efficiency. low power) using Cluster Computing technology on the Raspberry Pi Single Board Computing and Docker Container technology. The cluster system is built using five raspberry Pi type 4B modules as cluster nodes, and the Web server system is built using docker container virtualization technology. Meanwhile, cluster management uses Docker Swarm technology. Performance testing (Quality of Service) of the cluster system is done by simulating a number of loads (requests) and measuring the response of the system based on the parameters of Throughput and Delay (latency). The test results show that the Raspberry Pi Cluster system using Docker Swarm can be used to build a High Availability Server system that is able to handle very high requests that reach Throughput = 161,812,298 requests / sec with an Error rate = 0%.


Download data is not yet available.


Wikipedia, “Virtualization” [Online]. Available:https://en.wikipedia.org/wiki/Virtualization. [Accessed: 11-Oct-2020].

V. G. da Silva, M. Kirikova, and G. Alksnis, “Containers for Virtualization: An Overview,” Appl. Comput. Syst., vol. 23, no. 1, pp. 21–27, 2018.

M. Pretorius, M. Ghassemian, and C. Ierotheou, “An investigation into energy efficiency of data centre virtualisation,” in Proceedings - International Conference on P2P, Parallel, Grid, Cloud and Internet Computing, 3PGCIC 2010, 2010, pp. 157–163.

T. Gupta and A. Dwivedi, “Data storage & load balancing in cloud computing using container clustering,” Int. J. Eng. Sci. Res. Technol., vol. 6, no. 9, pp. 656–666, 2017.

W. Felter, A. Ferreira, R. Rajamony, and J. Rubio, “An updated performance comparison of virtual machines and Linux containers,” in 2015 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), 2015, pp. 171–172.

H.-E. Yu and W. Huang, “Building a Virtual HPC Cluster with Auto Scaling by the Docker,” Sep. 2015.

Docker, “Why Docker? | Docker,” 2017. [Online]. Available: https://www.docker.com/why-docker. [Accessed: 19-Oct-2020].

T. M. Mark Church, Marlon Ruiz, Andrew Seifert, “Docker - Docker Swarm Reference Architecture: Exploring Scalable, Portable Docker Container Networks,” 2019. [Online]. Available: https://success.docker.com/article/networking#whatyouwilllearn. [Accessed: 03-Aug-2020].

Apache, “Apache JMeter - Apache JMeterTM,” Apache Jm., p. 2019, 2014.

Miranda,et.all, “GitHub - dockersamples/docker-swarm-visualizer: A visualizer for Docker Swarm Mode using the Docker Remote API, Node.JS, and D3.” [Online]. Available: https://github.com/dockersamples/docker-swarm-visualizer. [Accessed: 29-Oct-2020].

Docker Team, “Getting started with Docker on your Raspberry Pi · Docker Pirates ARMed with explosive stuff.” [Online]. Available: https://blog.hypriot.com/getting-started-with-docker-on-your-arm-device/. [Accessed: 29-Oct-2020].

T. P. Kusuma, R. Munadi, and D. D. Sanjoyo, “Implementasi dan Analisis Computer Clustering System dengan Menggunakan Virtualisasi Docker,” e-Proceeding Eng., vol. 4, no. 3, pp. 1–6, 2017.

Docker, “Docker overview | Docker Documentation,” Docker.Com, 2018. [Online]. Available: https://docs.docker.com/get-started/overview/. [Accessed: 07-Nov-2020].

S. Dwiyatno, E. Rakhmat, and O. Gustiawan, “Implementasi Virtualisasi Server Berbasis Docker Container,” Prosisko, vol. 7, no. 2, pp. 165–175, 2020.

Docker, “Swarm mode overview | Docker Documentation,” Docker, 2020. [Online]. Available: https://docs.docker.com/engine/swarm/. [Accessed: 07-Nov-2020].

IT Solution Architects, “Containers 102: Continuing the Journey from OS Virtualization to Workload Virtualization,” medium.com, 2017. [Online]. Available: https://medium.com/@ITsolutions/containers-102-continuing-the-journey-from-os-virtualization-to-workload-virtualization-54fe5576969d. [Accessed: 07-Nov-2020].

How to Cite
Hadiwandra, T. Y., & Candra, F. (2021). High Availability Server Using Raspberry Pi 4 Cluster and Docker Swarm. IT Journal Research and Development, 6(1), 43 - 51. https://doi.org/10.25299/itjrd.2021.vol6(1).5806
Abstract viewed = 575 times
PDF downloaded = 177 times