rodleo
Posts: 3
Joined: Mon Jun 24, 2019 2:18 am

RPi Cluster Web Server

Tue Jul 09, 2019 11:50 pm

Good day!

Please help me on how to create a web server using the raspberry pi cluster.

Thank you!

Heater
Posts: 12952
Joined: Tue Jul 17, 2012 3:02 pm

Re: RPi Cluster Web Server

Wed Jul 10, 2019 2:53 am

That is far too big a question to be answered in a forum post.

You could use an Apache web server cluster: See docs. : https://httpd.apache.org/docs/2.4/howto ... proxy.html

You could use the nginx web server cluster: http://nginx.org/en/docs/http/load_balancing.html

You could use node.js cluster: http://www.acuriousanimal.com/2017/08/1 ... rvers.html

You will probably want a database behind all these server nodes. As we are talking about a cluster then whey not use a database designed to be distributed over many machines: https://www.cockroachlabs.com/

I have used all of these on the Pi at various times with some success. Suggest using the latest greatest Pi 4 with 4GB RAM.

fruitoftheloom
Posts: 20125
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: RPi Cluster Web Server

Wed Jul 10, 2019 4:47 am

rodleo wrote:
Tue Jul 09, 2019 11:50 pm
Good day!

Please help me on how to create a web server using the raspberry pi cluster.

Thank you!


https://www.pidramble.com/
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

User avatar
Gavinmc42
Posts: 3407
Joined: Wed Aug 28, 2013 3:31 am

Re: RPi Cluster Web Server

Wed Jul 10, 2019 5:15 am

Python comes with SimpleHTTPServer.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
rpdom
Posts: 14686
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RPi Cluster Web Server

Wed Jul 10, 2019 6:34 am

Don't know about a cluster, but I have recently worked on a distributed system with web servers, database servers and application servers in multiple locations globally.

The servers were all Linux and all the software is available for the Pi.

One database server at each location using MariaDB with multi-master replication. There were a few issues with that, but it could be handled in software.

One web server at each location, accessing the closest available DB server. Running bother Apache and NGinX for different applications.
Each web server used HAProxy as a frontend to handle SSL and to load balance the web servers.

One DNS server at each location which automatically dropped any server that wasn't responding and added it back into DNS when it was back online.

Return to “General discussion”