Virtual Host Monster and Load Balancing

Hello. I'm new in Plone Community.

In my company we have two Plone machines with load balancing and Virtual Host Monster configured.

In Virtual Host Mappings we have this line:

Plone1 (IP 10.0.0.11)
10.0.0.11:8888/VirtualHostBase/http/www.mysite.org:80/Plone/VirtualHostRoot/

Plone2 (IP 10.0.0.12)
10.0.0.12:8888/VirtualHostBase/http/www.mysite.org:80/Plone/VirtualHostRoot/

Our problem is when we need to connect to one of the two Plone machines (http://10.0.0.11:8888/Plone or http://10.0.0.12:8888/Plone), because Virtual Host Monster maps to www.mysite.org and it is balanced, so we never know what Plone we are connect to.

Are there any solution for our problem?

Thanks!

I think I don't understand your problem; you have to give more information on what are you using to serve your site and do load balancing.

load balancing can be done in many ways involving nginx, Varnish, HAProxy… and so on.

here is an example on how to do that on nginx:

upstream plone {
    server 127.0.0.1:8081;
    server 127.0.0.1:8082;
}

server {
    listen 80;
    server_name www.example.org;
    location / {
        proxy_pass http://plone/VirtualHostBase/http/www.example.org:80/Plone/VirtualHostRoot/;
    }

usually when I want to connect to one specific instance I point my browser directly to its IP address and port.

Thanks for reaching out to this forums!

I usually add a subdomain on my webserver configuration, i.e. instance1.mywebsite.org and instance2.mywebsite.org that map directly to each instance.

The you add some IP or HTTP auth to prevent unwanted traffic there and you are good to go.

I hope this helps.

Is there some software or tool that needs to know which Plone is responding, or are you just interested in logging / long term data collection?