-
Notifications
You must be signed in to change notification settings - Fork 92
Multi Remote Setup
The following article describes how to get a multi-server setup working. This means one Master server, and several Remote servers. Remote servers will all share the same binaries and templates via NFS. This is for GamePanel V3 only (Remote version 3.0.12 minimum required).
We will be using NFS to serve the same bin and template files for Remote servers.
On your primary Remote server, we need to set this up as the NFS for the other Remote servers to use. Let's pretend your primary remote server is 192.168.0.5.
Here, we allow anyone in your local net to mount the bin and template dirs. Modify the IP/subnet if you feel that is allowing too much. Obviously adjust this to your network.
/etc/exports:
/usr/local/gpx/bin 192.168.0.0/255.255.255.0(ro) /usr/local/gpx/templates 192.168.0.0/255.255.255.0(rw)
/etc/hosts.allow:
portmap: 192.168.0.0/255.255.255.0 lockd: 192.168.0.0/255.255.255.0 rquotad: 192.168.0.0/255.255.255.0 mountd: 192.168.0.0/255.255.255.0 statd: 192.168.0.0/255.255.255.0
Now we update the exports and start the portmap/NFS service (run as root or with sudo)
# exportfs -ra # /etc/init.d/portmap restart # /etc/init.d/nfs restart
Make sure to adjust your firewall rules accordingly if you are running a firewall.
Once you have a primary Remote server all setup with NFS, you can login to the other Remote servers and setup the NFS mount:
# rm -fr /usr/local/gpx/{bin,templates} # mkdir /usr/local/gpx/{bin,templates} # mount -t nfs 192.168.0.5:/usr/local/gpx/bin /usr/local/gpx/bin # mount -t nfs 192.168.0.5:/usr/local/gpx/templates /usr/local/gpx/templates
Do this on each remote server that is not the primary. Remember to check that NFS is allowed in the firewalls. Once this is done, any remote server can create game servers from the templates you had already made.