This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
wiki:advanced:x2gobroker:loadbalancing [2013/03/28 10:08] sunweaver created |
wiki:advanced:x2gobroker:loadbalancing [2013/07/02 01:05] sunweaver |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
====== Load Balancing with X2Go ====== | ====== Load Balancing with X2Go ====== | ||
- | Soon to come... | + | ===== Preparations ===== |
+ | |||
+ | The X2Go load balancing setup requires several installation steps. | ||
+ | |||
+ | - Install more than one X2Go Servers | ||
+ | - Install all X2Go Servers identically (FAI and/or puppet are good tools here) | ||
+ | - Hook them together: | ||
+ | * central LDAP server with user accounts as authentication backend and user base (PAM, libnss) | ||
+ | * central NFS server for provisioning of home directories | ||
+ | * make sure DNS works well and all X2Go Servers resolve and reverse resolve fine | ||
+ | - Install PostgreSQL on a non-X2Go Server (i.e. on the machine that runs the LDAP service) | ||
+ | - [[wiki: | ||
+ | |||
+ | You should now be able to log into each X2Go Server separately by using their IP addresses or (local) DNS names. | ||
+ | |||
+ | If you are logged into several of your X2Go Servers under the same user account and then run | ||
+ | |||
+ | <code bash> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | you should get all current active/ | ||
+ | |||
+ | ===== X2Go Session Broker Daemon / WSGI ===== | ||
+ | |||
+ | Install X2Go Session Broker [[doc: | ||
+ | |||
+ | You certainly want to make use of SSL (https:// protocol) if the session broker can be accessed from the internet or if you share your network with non-trusted machines. For large scale deployments the WSGI implementation of the broker is recommended (package: '' | ||
+ | |||
+ | After you have installed the session broker, additionally run the script '' | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo x2gobroker-keygen | ||
+ | </ | ||
+ | |||
+ | This script will (if the defaults are not touched) create an RSA public/ | ||
+ | |||
+ | ===== X2Go Session Broker Agent ===== | ||
+ | |||
+ | On every X2Go Server install the package '' | ||
+ | |||
+ | To give the session broker access to your X2Go Servers, you have to run (as root) | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo x2gobroker-pubkeyauthorizer --broker-url http(s)://< | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== X2Go Session Profile for Load Balanced Sites ===== | ||
+ | |||
+ | In the session profile configuration of the session broker (e.g. ''/ | ||
+ | |||
+ | Example: | ||
+ | |||
+ | < | ||
+ | [pool-C-XFCE] | ||
+ | user= | ||
+ | host=s-E1 (10.0.2.11), | ||
+ | name=XFCE - pool-C | ||
+ | command=XFCE | ||
+ | broker-session-autologin=true | ||
+ | </ |