Hi,
As promised I tell you about my experience with loadbalancing x2go.
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.
In the meanwhile, I had looked up alternative solutions and here is what I set up :
The broker is a simple HAProxy <http://haproxy.1wt.eu/> 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).
Advantages of that solution :
Drawbacks : little overhead. HAProxy is pretty optimized though and it is not
noticeable.
I join hereby the HAProxy configuration file I am using.
It really works fine for us. I hope it will be useful to others.
Best regards,
Thierry
-- <http://www.fdsweb.univ-montp2.fr>
Thierry KAUFFMANN
Chef du service informatique (SIF)
Tél : +33 4 67 14 31 58 <tel:+33%204%2067%2014%2031%2058>
Mail : Thierry.Kauffmann@univ-montp2.fr <mailto:Thierry.Kauffmann@univ-montp2.fr>
CC 437 - Place Eugène Bataillon. 34095 Montpellier Cedex 5 - FRANCE.
www.fdsweb.univ-montp2.fr <http://www.fdsweb.univ-montp2.fr>
FACULTÉ DES SCIENCES/ UNIVERSITÉ MONTPELLIER 2