[X2Go-User] Load Balancers

Walid MOGHRABI w.moghrabi at servicemagic.eu
Fri May 11 14:47:36 CEST 2018


I had many troubles making broker with agent-query-mode=SSH and loadchecker recently ... there were still a few bugs which make those not working reliably or not working at all.
I would definitely recommend that you're up to date with the x2gobroker and all broker packages, mine is 0.0.4.0-0~1022 and there were many fixes very recently.
It will depends on your needs but if you want simple load balancing without load checking (aka "roud robin distribution") which is fine for most needs, you can perfectly use agent-query-mode=LOCAL which works fine.

If you use agent-query-mode=SSH, you need to have loadchecker working otherwise, you'll encounter problems with SSH query mode as soon as you have unavailable remote servers.

By the way, for loadchecker (and broker in fact) to work properly, you need to deploy the broker SSH key onto the remote servers, there is a "x2gobroker-pubkeyauthorizer" script for that.
I think this is your main problem looking at your logs.

You also should use the --add-to-known-hosts options for your x2goclient.


Regards,
Walid Moghrabi

TRAVAUX.COM
BAT I - PARC CEZANNE 2 290 AVENUE GALILEE - CS 80403
13591 AIX EN PROVENCE CEDEX 3

----- Mail original ----- 

De: "Roger Robinson" <Roger.Robinson at rms.com> 
À: x2go-user at lists.x2go.org 
Envoyé: Mardi 8 Mai 2018 15:41:06 
Objet: [X2Go-User] Load Balancers 



Hi, 

I almost have an x2go session broker set up but I cant get the load balancer to work. 
I have set 
Default-agent-query-mode=SSH 
In x2gobroker.conf 

I have followed the keygen commands here -> 
https://wiki.x2go.org/doku.php/wiki:advanced:x2gobroker:loadbalancing 

And have some keys in 
/var/lib/x2gobroker/.ssh/ 



root at ukvmlx-ldap-01 ~]# x2gobroker-loadchecker 
/usr/lib/python2.7/site-packages/paramiko/client.py:682: UserWarning: Unknown ssh-rsa host key for 10.5.17.117: 48dc26733e7c1d6f7d1cdb391ce47ccd 
(key.get_name(), hostname, hexlify(key.get_fingerprint()))) 
/usr/lib/python2.7/site-packages/paramiko/client.py:682: UserWarning: Unknown ssh-rsa host key for 10.5.17.116: 48dc26733e7c1d6f7d1cdb391ce47ccd 
(key.get_name(), hostname, hexlify(key.get_fingerprint()))) 
/usr/lib/python2.7/site-packages/paramiko/client.py:682: UserWarning: Unknown ssh-rsa host key for 10.5.17.115: 48dc26733e7c1d6f7d1cdb391ce47ccd 
(key.get_name(), hostname, hexlify(key.get_fingerprint()))) 


2018-05-08 14:39:39,200 - loadchecker - INFO - X2Go Session Broker (0.0.3.4), written by Mike Gabriel (X2Go Project) <mike.gabriel at das-netzwerkteam.de> 
2018-05-08 14:39:39,200 - loadchecker - INFO - Setting up the Load Checker service's environment... 
2018-05-08 14:39:39,200 - loadchecker - INFO - X2GOBROKER_DEBUG: True 
2018-05-08 14:39:39,200 - loadchecker - INFO - X2GOBROKER_LOADCHECKER_SOCKET: /run/x2gobroker/x2gobroker-loadchecker.socket 
2018-05-08 14:39:39,202 - loadchecker - DEBUG - LoadChecker.loadchecker(): load checker thread waking up... 
2018-05-08 14:39:39,294 - loadchecker - DEBUG - LoadChecker.loadchecker(): backend=inifile -> processing profiles: [u'pool-KDE-RMS', u'pool-GNOME-RMS'] 
2018-05-08 14:39:39,298 - loadchecker - DEBUG - LoadChecker.loadchecker(): querying remote agents for backend=inifile, profile_id=pool-KDE-RMS: [{u'hostaddr': '10.5.17.117', u'hostname': 'ukvmlx-head-03', u'port': 22}, {u'hostaddr': '10.5.17.116', u'hostname': 'ukvmlx-head-02', u'port': 22}, {u'hostaddr': '10.5.17.115', u'hostname': 'ukvmlx-head-01', u'port': 22}] 
/usr/lib/python2.7/site-packages/paramiko/client.py:682: UserWarning: Unknown ssh-rsa host key for 10.5.17.117: 48dc26733e7c1d6f7d1cdb391ce47ccd 
(key.get_name(), hostname, hexlify(key.get_fingerprint()))) 
2018-05-08 14:39:39,532 - loadchecker - ERROR - querying remote agent on host ukvmlx-head-03 failed: Authentication to remote X2Go Broker Agent Host failed (user: x2gobroker, hostname: 10.5.17.117, host address: 10.5.17.117, port: 22) failed 
2018-05-08 14:39:39,647 - loadchecker - INFO - LoadChecker.loadchecker(): contacted remote broker agent for backend=inifile, profile_id=pool-KDE-RMS, hostname=ukvmlx-head-03, new load factor is: HOST-UNREACHABLE 
/usr/lib/python2.7/site-packages/paramiko/client.py:682: UserWarning: Unknown ssh-rsa host key for 10.5.17.116: 48dc26733e7c1d6f7d1cdb391ce47ccd 
(key.get_name(), hostname, hexlify(key.get_fingerprint()))) 
2018-05-08 14:39:39,869 - loadchecker - ERROR - querying remote agent on host ukvmlx-head-02 failed: Authentication to remote X2Go Broker Agent Host failed (user: x2gobroker, hostname: 10.5.17.116, host address: 10.5.17.116, port: 22) failed 
2018-05-08 14:39:39,984 - loadchecker - INFO - LoadChecker.loadchecker(): contacted remote broker agent for backend=inifile, profile_id=pool-KDE-RMS, hostname=ukvmlx-head-02, new load factor is: HOST-UNREACHABLE 
/usr/lib/python2.7/site-packages/paramiko/client.py:682: UserWarning: Unknown ssh-rsa host key for 10.5.17.115: 48dc26733e7c1d6f7d1cdb391ce47ccd 
(key.get_name(), hostname, hexlify(key.get_fingerprint()))) 
2018-05-08 14:39:40,209 - loadchecker - ERROR - querying remote agent on host ukvmlx-head-01 failed: Authentication to remote X2Go Broker Agent Host failed (user: x2gobroker, hostname: 10.5.17.115, host address: 10.5.17.115, port: 22) failed 
2018-05-08 14:39:40,324 - loadchecker - INFO - LoadChecker.loadchecker(): contacted remote broker agent for backend=inifile, profile_id=pool-KDE-RMS, hostname=ukvmlx-head-01, new load factor is: HOST-UNREACHABLE 
2018-05-08 14:39:40,328 - loadchecker - DEBUG - LoadChecker.loadchecker(): querying remote agents for backend=inifile, profile_id=pool-GNOME-RMS: [{u'hostaddr': '10.5.17.117', u'hostname': 'ukvmlx-head-03', u'port': 22}, {u'hostaddr': '10.5.17.116', u'hostname': 'ukvmlx-head-02', u'port': 22}, {u'hostaddr': '10.5.17.115', u'hostname': 'ukvmlx-head-01', u'port': 22}] 
2018-05-08 14:39:40,527 - loadchecker - ERROR - querying remote agent on host ukvmlx-head-03 failed: Authentication to remote X2Go Broker Agent Host failed (user: x2gobroker, hostname: 10.5.17.117, host address: 10.5.17.117, port: 22) failed 
2018-05-08 14:39:40,642 - loadchecker - INFO - LoadChecker.loadchecker(): contacted remote broker agent for backend=inifile, profile_id=pool-GNOME-RMS, hostname=ukvmlx-head-03, new load factor is: HOST-UNREACHABLE 
2018-05-08 14:39:40,813 - loadchecker - ERROR - querying remote agent on host ukvmlx-head-02 failed: Authentication to remote X2Go Broker Agent Host failed (user: x2gobroker, hostname: 10.5.17.116, host address: 10.5.17.116, port: 22) failed 
2018-05-08 14:39:40,928 - loadchecker - INFO - LoadChecker.loadchecker(): contacted remote broker agent for backend=inifile, profile_id=pool-GNOME-RMS, hostname=ukvmlx-head-02, new load factor is: HOST-UNREACHABLE 
2018-05-08 14:39:41,108 - loadchecker - ERROR - querying remote agent on host ukvmlx-head-01 failed: Authentication to remote X2Go Broker Agent Host failed (user: x2gobroker, hostname: 10.5.17.115, host address: 10.5.17.115, port: 22) failed 
2018-05-08 14:39:41,223 - loadchecker - INFO - LoadChecker.loadchecker(): contacted remote broker agent for backend=inifile, profile_id=pool-GNOME-RMS, hostname=ukvmlx-head-01, new load factor is: HOST-UNREACHABLE 
2018-05-08 14:39:41,223 - loadchecker - DEBUG - LoadChecker.loadchecker(): sleeping for 300secs before starting next query cycle 

Thanks for any help, 

Roger 


image002
Roger Robinson 
HPC Information Systems Engineer 
Peninsular House, 30 Monument Street 
London EC3R 8NB, United Kingdom 
Mobile: +44 7831 853671 
Skype: +44 (0) 3934 4318 
Zoom: 510-457-3840 - https://rms.zoom.us/j/5104573840 




_______________________________________________ 
x2go-user mailing list 
x2go-user at lists.x2go.org 
https://lists.x2go.org/listinfo/x2go-user
---
DISCLAIMER: This e-mail is private and confidential and may contain proprietary or legally privileged information. It is for the intended recipient only. If you have received this email in error, please notify the author by replying to it and then destroy it. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail or any attachment. Thank you


More information about the x2go-user mailing list