cancel
Showing results for 
Search instead for 
Did you mean: 

load balancer

Halfhidden
Dabbler
Posts: 20
Thanks: 5
Fixes: 1
Registered: ‎20-05-2023

load balancer

Has anyone successfully set up a load balancer to run two servers off the single public ip?

I'm a keen hobbyist and run a server with a few websites for my family and those are handled by CWP (Centos Web Panel) and I'm guessing it is running reverse proxies.

But I would love to be able to run a cloud on my other server at the same time.

So I was wondering if a load balancer would do this for me.

I'm assuming that the load balancer would be at the gateway and then distribute the packets to the appropriate server according to the requests from the internet?

I can't think of any other way to do this. So I'm asking has anyone had any success running two servers off one public ip?  

6 REPLIES 6
Baldrick1
Moderator
Moderator
Posts: 12,376
Thanks: 5,557
Fixes: 430
Registered: ‎30-06-2016

Re: load balancer

Moderator's note:
Thread moved from Broadband to Tech Help

Moderator and Customer
If this helped - select the Thumb
If it fixed it,  help others - select 'This Fixed My Problem'

bobpullen
Community Gaffer
Community Gaffer
Posts: 16,930
Thanks: 5,016
Fixes: 317
Registered: ‎04-04-2007

Re: load balancer

How would you be planning on accessing these servers? If via unique DNS/hostnames, then a reverse proxy should do exactly as you intend if configured properly. I don't see why you would need a load balancer.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

Halfhidden
Dabbler
Posts: 20
Thanks: 5
Fixes: 1
Registered: ‎20-05-2023

Re: load balancer

My understanding is that CWP (Centos web panel) uses a reverse proxy to distribute requests to the domains hosted on the control panel. So if I placed a reverse proxy at the gateway to serve the two servers I would be double natting, I think.

So I'm looking for a solution that can work with CWP and will route requests rather than reverse proxy.... unless I've completely misunderstood the way this works (which is probable)

bobpullen
Community Gaffer
Community Gaffer
Posts: 16,930
Thanks: 5,016
Fixes: 317
Registered: ‎04-04-2007

Re: load balancer

Not familar with the software, but a spot of Googling suggests it's just using NGINX for reverse proxying purposes. Can't say for certain, but I wonder if there's a way you can edit the NGINX config within CWP to proxy requests to another machine/server on your network? It's light on detail, but this kind of suggests it should be possible.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

Halfhidden
Dabbler
Posts: 20
Thanks: 5
Fixes: 1
Registered: ‎20-05-2023

Re: load balancer

That's an interesting idea. CWP has both NginX and Apache. Doing it that way removes the double natting issue. Thanks Bob Pullen I'll do some digging to see if this can be done.

greygit1
Aspiring Pro
Posts: 411
Thanks: 56
Fixes: 1
Registered: ‎26-06-2023

Re: load balancer

"I don't see why you would need a load balancer."

<outside the box>

Perhaps the OP wants to dabble with more?

</>