itsacoolaccount
Posts: 19
Joined: Sun Mar 18, 2018 8:04 pm

Can you run a website on several Raspberry Pis?

Wed Apr 18, 2018 4:31 pm

I've been setting up a web server with DNS now. I was wondering if it would be possible to use a Pi as a load balancer and the others as the web servers?

I have the idea to connect the load balancer to the wifi and be connected through LAN to the servers. Is this possible?

Code: Select all

sudo apt-get install coffee

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

Re: Can you run a website on several Raspberry Pis?

Wed Apr 18, 2018 4:36 pm

itsacoolaccount wrote:
Wed Apr 18, 2018 4:31 pm
I've been setting up a web server with DNS now. I was wondering if it would be possible to use a Pi as a load balancer and the others as the web servers?

I have the idea to connect the load balancer to the wifi and be connected through LAN to the servers. Is this possible?


This may give some pointers:

http://gregtrowbridge.com/setting-up-a- ... er-part-5/
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...


tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: Can you run a website on several Raspberry Pis?

Fri Apr 20, 2018 12:55 pm

Also, you could use a docker swarm and employ containers

https://www.raspberrypi.org/blog/docker ... pberry-pi/

It would pretty much perfect for what you need AFAICS (load balancing web app)

Return to “Advanced users”