<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    As promised I tell you about my experience with loadbalancing x2go.<br>
    <br>
    I had first tried to use the default loadbalancing setup of x2go
    broker. It was working fine except that the Windows client was not
    connecting to the https broker (due to a bug in the client). It has
    been fixed quickly and I thank the development team for their
    reactivity.<br>
    <br>
    In the meanwhile, I had looked up alternative solutions and here is
    what I set up :<br>
    <br>
    The broker is a simple <a href="http://haproxy.1wt.eu/">HAProxy</a>
    loadbalancer configured for ssh connections balancing. For us it
    listens on port 10000 and dispatches ssh/tcp connections over 2 x2go
    servers on ports 22 (the default ssh port !). The balancing
    algorithm is based upon source ip hashing : It gives returning users
    a chance to be sent to the same x2go server next time and have the
    possibility to resume a suspended session (better than round-robin).<br>
    <br>
    Advantages of that solution :<br>
    - x2go servers are not exposed to the outside world and there is no
    need to open ports on the firewall for each x2go server : You only
    need to open ports for the loadbalancer, which you can put in your
    dmz.<br>
    - HAProxy cares to dispatch connections only to x2go servers that
    are up (timeout configuration).<br>
    - Authentication is only made once on x2go servers (they are
    configured with ldap_pam).<br>
    - No need to install a session broker agent on x2go servers.<br>
    <br>
    Drawbacks :<br>
    - When a user connects with a different public ip, he wont probably
    be sent to the same x2go server where he could have a suspended
    session.<br>
    - Authentication is not made by the loadbalancer so there aren't acl
    management as with the regular x2go broker.<br>
    - Every connections transit through the loadbalancer so there might
    be a little overhead. HAProxy is pretty optimized though and it is
    not noticeable.<br>
    <br>
    I join hereby the HAProxy configuration file I am using.<br>
    <br>
    It really works fine for us. I hope it will be useful to others.<br>
    <br>
    Best regards,<br>
    <br>
    Thierry<br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <table id="previsu" style="background-color: white; width: 800px;
        height: 150px;" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td id="logos" style="text-align: center; vertical-align:
              top; width: 1%; padding-top: 4px;"><a
                href="http://www.fdsweb.univ-montp2.fr"
                title="http://www.fdsweb.univ-montp2.fr"><img
                  src="cid:part2.09090705.03060103@univ-montp2.fr"></a></td>
            <td id="donnees" style="padding-left: 15px; vertical-align:
              top;">
              <p id="pnomcomplet" style="margin: 0; padding: 0;"><span
                  style="font-size: 14px; font-family: 'Helvetica
                  Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;
                  color: rgb(0, 48, 80); font-weight: 900;" id="pprenom">Thierry</span>
                <span id="pnom" style="text-transform: uppercase;
                  font-size: 14px; font-family: 'Helvetica
                  Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;
                  color: rgb(0, 48, 80); font-weight: 900;">KAUFFMANN</span></p>
              <p id="ptitre" style="margin: 0px 0px 5px; padding: 0px;
                font-style: italic; font-size: 14px; font-family:
                'Helvetica Neue','Helvetica','Nimbus Sans
                L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                font-stretch: ultra-condensed; line-height: 120%; color:
                rgb(74, 104, 124);">Chef du service informatique (SIF)</p>
              <p id="pnumeros1" style="margin: 0px; padding: 0px;
                font-size: 14px; font-family: 'Helvetica
                Neue','Helvetica','Nimbus Sans L','FreeSans','Liberation
                Sans','Arial',Sans-Serif; font-stretch: ultra-condensed;
                line-height: 120%; color: rgb(74, 104, 124);"><span
                  id="ptellabel" style="color: #003050;">Tél : </span><a
                  href="tel:+33%204%2067%2014%2031%2058" title="tel:+33
                  4 67 14 31 58" style="color: rgb(74, 104, 124);
                  text-decoration: none; font-size: 14px; font-family:
                  'Helvetica Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;"><span
                    id="ptel">+33 4 67 14 31 58</span></a></p>
              <p id="pemailcomplet" style="margin: 0; padding: 0;"><span
                  id="pemaillabel" style="color: rgb(0, 48, 80);
                  font-size: 14px; font-family: 'Helvetica
                  Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;">Mail
                  : </span><span id="pemail" style="text-transform:
                  lowercase;"><a
                    href="mailto:Thierry.Kauffmann@univ-montp2.fr"
                    title="mailto:Thierry.Kauffmann@univ-montp2.fr"
                    style="color: rgb(74, 104, 124); text-decoration:
                    none; font-size: 14px; font-family: 'Helvetica
                    Neue','Helvetica','Nimbus Sans
                    L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                    font-stretch: ultra-condensed; line-height: 120%;">Thierry.Kauffmann@univ-montp2.fr</a></span></p>
              <p id="ppostale" style="margin: 0; padding: 0;"><span
                  style="font-size: 14px; font-family: 'Helvetica
                  Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;
                  color: rgb(74, 104, 124);" id="pcasecourier">CC 437 -
                </span><span style="font-size: 14px; font-family:
                  'Helvetica Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;
                  color: rgb(74, 104, 124);" id="padresse">Place Eugène
                  Bataillon. 34095 Montpellier Cedex 5 - FRANCE.</span></p>
              <p id="pweb" style="margin: 0px; padding: 0px; font-size:
                14px; font-family: 'Helvetica Neue','Helvetica','Nimbus
                Sans L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                font-stretch: ultra-condensed; line-height: 120%; color:
                rgb(74, 104, 124);"><a
                  href="http://www.fdsweb.univ-montp2.fr"
                  title="http://www.fdsweb.univ-montp2.fr" style="color:
                  rgb(74, 104, 124); text-decoration: none; font-size:
                  14px; font-family: 'Helvetica
                  Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;">www.fdsweb.univ-montp2.fr</a></p>
              <p id="petablissement" style="margin: 0; padding: 0;
                color: #0075AB; text-transform: uppercase;"><span
                  style="font-size: 14px; font-family: 'Helvetica
                  Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;
                  color: rgb(0, 48, 80);" id="pcomposante">FACULTÉ DES
                  SCIENCES</span><span style="font-size: 14px;
                  font-family: 'Helvetica Neue','Helvetica','Nimbus Sans
                  L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                  font-stretch: ultra-condensed; line-height: 120%;
                  color: rgb(0, 48, 80);" id="puniversite"> / UNIVERSITÉ
                  MONTPELLIER 2</span></p>
              <span style="display: inline-block; font-size: 14px;
                font-family: 'Helvetica Neue','Helvetica','Nimbus Sans
                L','FreeSans','Liberation Sans','Arial',Sans-Serif;
                font-stretch: ultra-condensed; line-height: 120%; color:
                rgb(74, 104, 124);" id="pinfos"></span> </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>