Load Balance - Docker

Shaun Glass shaunglass at gmail.com
Tue Nov 15 14:11:11 UTC 2016


Good Day,

We are testing DDC (Docker) and have 3 nodes each running a replica of the
DTR and UCP.

UCP - https://server.domain.com:444

DTR - https://server.domain.com:443

I am trying to setup load balancing with nginx but am getting no where. Two
config files :

---------------------------------------------------------------------------------------------------------------------------

upstream dtr_cluster {
    server 10.12.64.218:443;
    server 10.12.64.219:443;
    server 10.12.64.222:443;
}

server {
    listen 443;
    server_name domain.com docker-poc.domain.com;

    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;

        proxy_pass http://dtr_cluster/;
        proxy_redirect off;
    }
}

---------------------------------------------------------------------------------------------------------------------------

upstream ucp_cluster {
    server 10.12.64.218:444;
    server 10.12.64.219:444;
    server 10.12.64.222:444;
}

server {
    listen 444;
    server_name domain.com docker-poc.domain.com;

    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;

        proxy_pass http://dtr_cluster/;
        proxy_redirect off;
    }
}
---------------------------------------------------------------------------------------------------------------------------
access.log

[15/Nov/2016:16:07:47 +0200]
"\x16\x03\x01\x00\xC8\x01\x00\x00\xC4\x03\x03\xC7\xB3\x87\xE3'\xB8\xE7#\xC4G\xFD\xB6\xF2\xC5\x7FMC\x8Cs\xE5\x85\xACJ\x96\x0C\x0F\x90\x93\x0FQ\xCAy\x00\x00\x1A\xC0+\xC0/\xCC\xA9\xCC\xA8\xC0,\xC00\xC0"
400 173 "-" "-" "-"

Nothing in error log ... but firefox just shows :

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

Any help much appreciated.

Regards

Shaun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20161115/fe977689/attachment.html>


More information about the nginx mailing list