Jump to content

Hey guys,

 

I had a though the other day and wondered if it’s possible to have more than one Raspberry Pi as a web server, and one or more "clones" with the exact same website as backup sites?

 

You could have one Pi at home and another at work or at a friends house for example. 
 

So that in case of a fire or theft example and one of the Raspberry Pi’s are down, then the other Pi would automatically take over and keep the site up.

 

Thanks for any ideas or tips:)

Link to comment
https://linustechtips.com/topic/1187375-raspberry-pi-web-server-clones-redundancy/
Share on other sites

Link to post
Share on other sites

4 minutes ago, TechMeThatsSexy said:

Hey guys,

 

I had a though the other day and wondered if it’s possible to have more than one Raspberry Pi as a web server, and one or more "clones" with the exact same website as backup sites?

 

You could have one Pi at home and another at work or at a friends house for example. 
 

So that in case of a fire or theft example and one of the Raspberry Pi’s are down, then the other Pi would automatically take over and keep the site up.

 

Thanks for any ideas or tips:)

I know there are Pi servers. I was actually just thinking about it! I am sure there is a program for that, but IDK what it is.

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

Have you look up webserver redundancy? Something like dns failover is probably best here.

 

If your doing hosting that a pi would work for, a vps is probalby a better solution.

I think it would be a good option for DIYers here. I would like to do such thing for a website of mine and long term i know that would save me money (and it is fun!). I also have dreams of making a web hosting service and this is just what I am looking for (until I can afford a small server).

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

1 minute ago, TechMeThatsSexy said:

That would be interesting to play with. I’ll post something here if I find something

Yeah. I would run Ubuntu unless there is something for Pi's because of ghost.org where you can easily host something on it but IDK about a failover tho. Pi clusters are very common.

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

4 minutes ago, TechMeThatsSexy said:

That would be interesting to play with. I’ll post something here if I find something

Found a totorial for clusters: https://raspberrytips.com/raspberry-pi-cluster/

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

1 minute ago, wall03 said:

Found a totorial for clusters: https://raspberrytips.com/raspberry-pi-cluster/

This is for a generic mpi cluster, it work work for making a redundant website accross a wan.

 

The other problem with this here is that you need your program to be written to take advantage of the cluster, you can't just run any program on a cluster.

Link to post
Share on other sites

3 minutes ago, Electronics Wizardy said:

webserver redundancy

No, not yet. That might be thing!

3 minutes ago, wall03 said:

would save me money

Yeah I also though it would be a cheap way to have web server redundancy.

4 minutes ago, wall03 said:

until I can afford a small server

Same here. I would like to go crazy with a server rack in the future, but this would be a fun way to start:)

Link to post
Share on other sites

3 minutes ago, Electronics Wizardy said:

generic mpi cluster

Would this work for a cluster that’s on different locations or on the same local network?

5 minutes ago, Electronics Wizardy said:

be written

Need to code much or just customize program in terminal etc?

Link to post
Share on other sites

For Ghost self web hosting on a raspberry pi (without clusters) go here for a totorial: https://ghost.org/docs/install/ubuntu/ and I am hoping to find (or order) a micro-SD cad so I can do this ASAP on raspberry Pi :)

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

2 minutes ago, wall03 said:

Ghost self web hosting

Thanks for the tip and tutorial. Please let me know if you test this out and set it up. Would like to follow your post :) I’ll be ordering a Pi or two in the near future!

Link to post
Share on other sites

3 minutes ago, TechMeThatsSexy said:

Would this work for a cluster that’s on different locations or on the same local network?

Need to code much or just customize program in terminal etc?

You don't really want a cluster like thiat. Just get 2 systems and sync the web root across them, then have dns failover for a simple failover webiste, but its gonna get a bit more complex if you need a database for the webiste. What site are you tyring to host.

 

 

Just now, TechMeThatsSexy said:

Thanks for the tip and tutorial. Please let me know if you test this out and set it up. Would like to follow your post :) I’ll be ordering a Pi or two in the near future!

You probably don't want to ghost here, but depends on the site. Id just try installing apache and set that up firs.t

 

Link to post
Share on other sites

37 minutes ago, TechMeThatsSexy said:

Hey guys,

 

I had a though the other day and wondered if it’s possible to have more than one Raspberry Pi as a web server, and one or more "clones" with the exact same website as backup sites?

 

You could have one Pi at home and another at work or at a friends house for example. 
 

So that in case of a fire or theft example and one of the Raspberry Pi’s are down, then the other Pi would automatically take over and keep the site up.

 

Thanks for any ideas or tips:)

You can use a load balancer for this..

Link to post
Share on other sites

4 minutes ago, Electronics Wizardy said:

sync the web root across them, then have dns failover for a simple failover webiste

Okey thanks for sending me in the right direction. 
 

5 minutes ago, Electronics Wizardy said:

What site are you tyring to host

Would like to setup a basic Wordpress "blog"/site, with member login and some videos public (without login) and some locked content videos.

 

I haven’t figured out how to host the videos yet. I guess it would be best to host them on a separate site like Bitchute or something for example?

Link to post
Share on other sites

1 minute ago, TechMeThatsSexy said:

Ok, thanks for the tip. What’s is that, any link to article / info?

did you google it?

 

3 minutes ago, TechMeThatsSexy said:

Would like to setup a basic Wordpress "blog"/site, with member login and some videos public (without login) and some locked content videos.

 

I haven’t figured out how to host the videos yet. I guess it would be best to host them on a separate site like Bitchute or something for example?

Really get a vps, probably cheap, much easier to setup, and better uptime.

Link to post
Share on other sites

2 minutes ago, TechMeThatsSexy said:

Ok, thanks for the tip. What’s is that, any link to article / info?

Both nginx and apache have load balancer in them. Just to do the research and see if it works for you. You'll kind of need a reverse proxy anyways.

Link to post
Share on other sites

45 minutes ago, Electronics Wizardy said:

Really get a vps, probably cheap, much easier to setup, and better uptime.

I have a VPS and I would rather host it my self. I want to have all the fun troubleshooting it and stuff. I know, I know, but I am paying $8/mo so 5 people can visit it. I barely get any views so it will be cheaper to self host.

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

2 hours ago, wall03 said:

cheaper to self host.

Yeah, would be much more to learn and fun when setting it up our selves, and och save money in the long run.

2 hours ago, wall03 said:

$8/mo so 5 people can visit

A VPS then wouldn’t be much useful if there are more visitors.

 

My goal is to building a Pi NAS and PiVPN as well with a Pi3 probably as well.

 

I guess I should setup the web server on the Pi4 with 4GB? Any Pi expansion you would want?


And what size of SD would you recommend 32-64-128GB + maybe add a small SSD as well if useful in this case?

 

 

Link to post
Share on other sites

11 minutes ago, TechMeThatsSexy said:

Yeah, would be much more to learn and fun when setting it up our selves, and och save money in the long run.

A VPS then wouldn’t be much useful if there are more visitors.

 

My goal is to building a Pi NAS and PiVPN as well with a Pi3 probably as well.

 

I guess I should setup the web server on the Pi4 with 4GB? Any Pi expansion you would want?


And what size of SD would you recommend 32-64-128GB + maybe add a small SSD as well if useful in this case?

 

 

Get 128GB along with external storage (maybe 1TB HDD?). It depends what you are using it for (The NAS I mean).

I want to do something like that too. I have a 32GB micro-SD card and I don't know where it is.

I think you would need a CPU fan if you are doing a lot of stuff like that at once.

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

1 hour ago, wall03 said:

NAS

I have a spare 128GB SSD and 1TB HDD I can use for the NAS. I’m not sure yet since I already have a 1TB WD NAS, but want to build one with Pi to learn. 
 

I guess I don’t need any hard drives for the Pi web servers since I don’t host the video on the Pi’s. Just LAMP & WP on the SD if I’ve understood this correctly so far.

Link to post
Share on other sites

2 minutes ago, TechMeThatsSexy said:

I have a spare 128GB SSD and 1TB HDD I can use for the NAS. I’m bumpy sure yet since I already have a WD NAS, but want to build one with Pi to learn. 
 

I guess I don’t need any hard drives for the Pi web servers since I don’t host the video on the Pi’s. Just LAMP & WP on the SD if I’ve understood this correctly so far.

I don't understand anything you said so you are much more ahead then me. Good. You have the hardware.

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×