Any load balancers (like Kemp) for unraid?


tshorts

Recommended Posts

Are there any load balancers for unraid? Like Kemp, but free, and as a docker, plugin, or command.

 

Load Balancing is quite a broad expression in network, but I think that's what it called. So narrow the explanation:

All request to https://mydomain.com goes to the load balancer. The load balancer checks the full address and directs it to the different internal servers based on the address.

 

nextcloud.mydomain.com goes to the nextcloud server.
ftp.mydomain.com goes to the ftp server.
plex.mydomain.com goes to the plex server.

 

etc. Instead of my setup now where redirects is port-based and done in the router: mydomain.com:532 goes to nextcloud, mydomain.com:21 goes to ftp, mydomain:8324 goes to plex. (Just examples not my real ports, servers, or domains)

 

Link to comment

It's not the traffic load i want to balance (which is how I always used the expression 'load balancing', it's the one external listen port -> several internal server ports. Kemp call it load balancing which I think is a bad name for it, but I don't know any other word for it). So replacing the hardware router with a virtual one, or implement vlans wouldn't solve the 'problem'.

 

Perhaps reverse proxy and load balancing should be my search terms. Found Nginx, might solve the problem. I have to look deeper into that.

Link to comment
  • 3 months later...

Yes I would like to see this as well. So that the only port you have to open on your router is 443. I believe Kemp has it free to run on the cloud with AWS or Azure. They also have it free to download and run as a VM. The example I saw was run on VMware and hence was downloaded as an OVF. It’s pretty sweet how this was set up. I am not that familiar with the different VM formats to know if this would or wouldn’t work in the Xen environment. 

Link to comment
  • 7 months later...
On 11/29/2021 at 1:37 AM, jonny_blaze said:

Yes I would like to see this as well. So that the only port you have to open on your router is 443. I believe Kemp has it free to run on the cloud with AWS or Azure. They also have it free to download and run as a VM. The example I saw was run on VMware and hence was downloaded as an OVF. It’s pretty sweet how this was set up. I am not that familiar with the different VM formats to know if this would or wouldn’t work in the Xen environment. 

Reviving an old thread but...

 

This does work as I've just set it up.  The only gotcha is the Xen download is in a .disk format so you need to convert using something like:

 

qemu-img convert -p -O raw /path/to/LoadMaster.disk /path/to/balancer/vdisk1.img

 

preferably in your isos directory.

 

I'm assuming the OP was talking about the NetworkChuck YT video where he goes about setting this up.  I was able to get mine going by following most of those steps and being (im)patient in getting the DNS updated.

Link to comment
  • 1 month later...
On 7/20/2022 at 3:32 PM, Blane said:

Reviving an old thread but...

 

This does work as I've just set it up.  The only gotcha is the Xen download is in a .disk format so you need to convert using something like:

 

qemu-img convert -p -O raw /path/to/LoadMaster.disk /path/to/balancer/vdisk1.img

 

preferably in your isos directory.

 

I'm assuming the OP was talking about the NetworkChuck YT video where he goes about setting this up.  I was able to get mine going by following most of those steps and being (im)patient in getting the DNS updated.

Regarding this, I am new to Unraid/KVM VMs, I was wondering whether you got Kemp running on your side? If so what VM config did you use?

 

EG: The vdisk1.img file created by the command, was that placed as primary drive or as iso image? The machine type? etc.

 

The kemp instructions mention to use IDE drive type but that gives issues with Q35 machine type... 

 

FYI; Yeah, NetworkChuck is an awesome channel with a host of knowledge.

 

Thanks for the command btw!

 

 

EDIT: I FOUND THE SOLUTION!! The for future reader, in teh BIOS option use "SeaBIOS". All other config does not really matter, I have the .img from above mounted as the primary drive and as SATA and that's it. 

Edited by Aidzer0
Link to comment
  • 2 weeks later...
On 8/31/2022 at 10:19 AM, Aidzer0 said:

Regarding this, I am new to Unraid/KVM VMs, I was wondering whether you got Kemp running on your side? If so what VM config did you use?

 

EG: The vdisk1.img file created by the command, was that placed as primary drive or as iso image? The machine type? etc.

 

The kemp instructions mention to use IDE drive type but that gives issues with Q35 machine type... 

 

FYI; Yeah, NetworkChuck is an awesome channel with a host of knowledge.

 

Thanks for the command btw!

 

 

EDIT: I FOUND THE SOLUTION!! The for future reader, in teh BIOS option use "SeaBIOS". All other config does not really matter, I have the .img from above mounted as the primary drive and as SATA and that's it. 

 

Sorry, I just saw the notification.

 

I do use SeaBIOS and, in my case, I left the drive type as VirtIO.  If I need to build another one then I'll probably switch to SATA to see if there's any performance differences.  As of today it's been working flawlessly for a couple months. 

 

 

Link to comment
  • 1 month later...

I'm still not clear on how to utilize the *.img file within a virtual server?  Did you create a Linux VM?  Slackware?  All VM options are requiring an *.iso file which i do not have prior to mounting the *.img file.  Thank you.

Edited by dss
Link to comment
On 10/24/2022 at 5:10 PM, dss said:

I'm still not clear on how to utilize the *.img file within a virtual server?  Did you create a Linux VM?  Slackware?  All VM options are requiring an *.iso file which i do not have prior to mounting the *.img file.  Thank you.

 

 

Linux VM.

 

You don't actually install the OS in a typical way.  IIRC, the *.img file is a working OS, so you put that as your primary vdisk.  There's no *.iso to mount.  

 

I've put in a snippet of my config so you can see what I mean.  HTH

bal.JPG

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.