Setup Photoscan on a cluster

The concept is roughly outlined in chapter 8 of the Agisoft Photoscan manual. Nevertheless there atre some pitfalls and not so well documented features.

First you need to export a common net ressource. You may follow the digitialocean example:

# on the sever side (exporting machine)
sudo apt-get install nfs-kernel-server
sudo mkdir /var/nfs/general -p
sudo chown nobody:nogroup /var/nfs/general
sudo nano /etc/exports
/var/nfs/general    xxx.xxx.xxx.xxx(rw,sync,no_subtree_check)
sudo systemctl restart nfs-kernel-server

# on the clients side
sudo apt-get install nfs-common
sudo mkdir /var/nfs/agi -p
sudo mount xxx.xxx.xxx.xxx:/var/nfs/general /var/nfs/agi

Now you have to start a head node as photoscan server

nohup ./photoscan.sh --server xxx.xxx.xxx.xxx --dispatch xxx.xxx.xxx.xxx  --root /var/nfs/agi

Next you may assign node(s)

nohup ./photoscan.sh --node --dispatch xxx.xxx.xxx.xxx  --opencl_gpu_mask 1  --root /var/nfs/agi
Be aware, that the monitor and the network installation of Agisoft Photoscan must have the same version. The installation on the computer can have a newer version.
  • micrors/agisoft/photoscancluster.txt
  • Last modified: 2019/08/23 09:44
  • (external edit)