Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENTS] Load Balancing or actif/Backup #100

Open
barto95100 opened this issue Feb 16, 2024 · 6 comments
Open

[ENHANCEMENTS] Load Balancing or actif/Backup #100

barto95100 opened this issue Feb 16, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@barto95100
Copy link

For example, I have proxmox cluster and all the node in cluster responde to access the GUI

if i configure zoraxy to send in backend node A and node A not respond (because is down or other) no access of proxmox gui bedhin zoraxy

Maybe possible to add a mechanism to load balancing or priorize to send backend for url (front) proxmox.localdomain.local to node A first and node B in second or in roud-robin node-A/node-B

mechanism to detect node-A and/or node-B is alive with ping or with http-request (the same of uptime)

@barto95100 barto95100 added the enhancement New feature or request label Feb 16, 2024
@tobychui
Copy link
Owner

@barto95100 I really have no idea what you mean. Can you use the proper ENHANCEMENT template for raising issues?
From what I can understand, you are ask for a load balance options for proxmox? Isn't proxmox a VM supervisor? And why the current setup won't work and what have you tried?

@Saik0Shinigami
Copy link

In proxmox you can setup a cluster of multiple nodes.

Every node has the ability to host the full web GUI for the entire cluster.

So if you have pve1.domain.com, pve2.domain.com, pve3.domain.com. they're saying that they want zoraxy to be smart enough to serve pve.domain.com and front any of pve1, pve2, or pve3... So for example try pve1... if it fails try pve2.... Or roundrobin trying all of them. pve1 for first request, pve2 for next...

Now it won't work the way they want it to... cause the states don't track well across the nodes, but it's an example.

The fail over option would be nice... if PVE1 is down then automatically serve to pve2.

@barto95100
Copy link
Author

if there is a testing mechanism (like HAproxy could do) to check whether or not the node responds to the ping or to an Http request with the code 200, then zoraxy could send in load-balancing our with a priority chosen by the 'user on this or that node of the cluster, this is an example, this could also be used for example with docker swarm (since all nodes respond to the ports of all containers/services)

@tobychui
Copy link
Owner

Hi @barto95100 ,

I have tried proxmox with zoraxy a while back and proxmox always return 501 when I try to start stop the VM. How do you get around that? Are there any solutions other than sitting an Nginx proxy in between zoarxy and proxmox?

I cannot implement this feature if this was not solved, so any inputs will be welcomed. Thanks!

@barto95100
Copy link
Author

HI toby,

hacf time i havé this error and i don't know why and many time work perfectly...

problème arrivée for console or button action.
is this url user explain the problem maybe you will understand better that me 😔

https://forum.proxmox.com/threads/http-501-when-using-web-reverse-proxy-cloudflare-argo-tunnel-to-start-vm-but-stopping-vm-works.52643/page-2

I check if i trace the problem with tcpdump or other tool

@mosaati
Copy link

mosaati commented Apr 7, 2024

I believe this is what the request meant to implement.

https://nginx.org/en/docs/http/ngx_http_upstream_module.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants