Comments (2)
yes, if your nodes are in a cluster, load balancing across their API will work.
I tested this by creating 2 nodes (in VMs) and joining them together in a cluster. I then created a container on one node, installed nginx, and added the following to /etc/nginx/nginx.conf
:
stream {
upstream api_nodes {
server 10.0.1.111:8006;
server 10.0.1.112:8006;
}
server {
listen 8006;
proxy_pass api_nodes;
}
}
using the container's IP address, I can access the web UI or use proxmoxer and the calls are evenly distributed between the two nodes. If I were actually doing this for continued use, I would add hash $remote_addr;
to the upstream so connections from any give IP are tied to a specific node. This means all the traffic from your computer will go to one node, but multiple clients will be load balanced across the nodes.
I think load balancing individual requests between nodes is okay, but there might be weird race conditions or different responses that I haven't seen. I would try to tie connections (or at least chunks of requests) to a single node (like done above with the hash of the IP).
from proxmoxer.
also note, this will only work when not verifying SSL certificates or updating the certificates on all nodes to allow the IP and/or hostname of the load balancer.
from proxmoxer.
Related Issues (20)
- How to create a container? HOT 2
- Not displaying containers using example from docs HOT 4
- feature request: qemu agent exec-status pid re-checker
- Update description in vm config HOT 4
- Parameter verification failed: 'sshkeys' VM config option HTTP query argument is improperly escaped. HOT 5
- OIDC Login HOT 1
- Weird OTP problem HOT 12
- How to use ssh-public-key in pct create for lxc HOT 6
- Status or progress of uploads to /nodes/{node}/storage/{storage}/upload
- qemu monitor api failed to call command like `info block` HOT 4
- Feature Request: SDN API Support HOT 1
- InsecureRequestWarning HOT 5
- How to reach API endpoint options with '-' in the name ? HOT 1
- I can't install proxmoxer HOT 7
- How to create a datastore with keep-monthly option? HOT 1
- Remote console access HOT 1
- "No 'get' handler defined for 'host/path'" error after upgrading to 2.1.0 when using openssh backend HOT 2
- htmlmail option for Proxmox Mail Gateway HOT 9
- proxmoxer doesn't distinguish between error types HOT 2
- restore vm by api HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxmoxer.