[stunnel-users] patch: round robin load balancing

Luke Deller ldeller at xplantechnology.com
Mon Jan 8 05:26:05 CET 2007


Hi,

I noticed that stunnel already does round-robin load balancing of
connections when the DNS name specified by the "connect" option resolves
to multiple IP addresses.

Here is a simple patch which allows the "connect" option to accept a
comma separated list of names instead of just a single name.

This can be used to load balance tunnelled connections across several
servers.  For example, to load balance HTTPS connections across 3 HTTP
servers (localhost:80, anotherhost:8080 and anotherhost:8081), we could
specify:

    [https]
    accept = 443
    connect = 80,anotherhost:8080,anotherhost:8081

Regards,
Luke.

**********************************************************************************************

Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege.  If you are not
the intended recipient you must not use, distribute or copy this
email.  If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of XPlan Technology.

It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
Xplan Technology does not warrant that the
information is free of a virus or any other defect or error.
**********************************************************************************************

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stunnel-roundrobin.patch
Type: application/octet-stream
Size: 982 bytes
Desc: stunnel-roundrobin.patch
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20070108/1d72942f/attachment.obj>


More information about the stunnel-users mailing list