Our standard open source install sets up a web server and execution host on a single machine. For smaller hubs, this is an adequate setup, however on hubs with greater needs, often separate (and sometimes multiple) execution hosts are required for an installation. The following is a set of directions for setting up an execution host.
Note, these directions are not complete step by step directions, but more of a guideline for setting up an execution host. A user should have a very thorough understanding of hub architecture before attempting to setup an additional execution host.
- Do standard debian OS install
- Configure hostname and /etc/sources.list appropiately
- Setup standard hub through the openldap step
- Install openvz kernel
- Install hubzero mw-service on execution host 'apt-get install -y hubzero-mw-service'
- Run 'mkvztemplate amd64 wheezy diego'
- run 'hzcms configure mw-service --enable'
- configure /etc/nslcd.conf and restart. /etc/nslcd.conf will need the following modifications:
URI - modified to point to the ldap on the web host
binddn - set to the search user dn on the webserver (do a 'slapcat | grep search' to get the DN for the search user on the web server)
bindpw - set to the value contained for the LDAP-SEARCHPW in the /etc/hubzero.secrets file on the web server
- Install hubzero mw-client and configure on execution host
- copy /etc/mw-client/maxwell.key.pub from web host to /root/.ssh/authorized keys file on execution host
- On web server, add execution host to tools component
login to webserver admin section (webserver/administrator)
on host tab click on + sign in upper right to add an execution host
When you are returned to the list of hosts, you should see two, one for the web server, likely called localhost and the IP for your execution host
Under the provisions section, click on pubnet, sessions, and workspace for the new execution host
Under the provisions section, uncheck everything but fileserver for your web server
- Setup nfs server on web server
'apt-get install nfs-kernel-server'
edit /etc/exports to export /home and /apps, something similar to this:
- Setup nfs client on execution host
apt-get install nfs-common
mount -t nfs webserver:/home /home
mount -t nfs webserver:/apps /apps
NOTE: user will want to add appropiate sections in the /etc/fstab file to remount these locations after a reboot. Something similar to:
your.webserver.org:/apps /apps nfs vers=3,rw 0 0
your.webserver.org:/home /home nfs vers=3,rw 0 0