We are trying to configure a cluster of machines to use load balancing and we've gotten stuck on file locking step of the configuration.
User's home directories are mounted from a FreeNAS box via nfs4 but when running the locktester script on two separate machine both claim to able to acquire an advisory and link-based lock of the same testing file (see output below).
This occurs with both the current release and preview release and with trying /etc/rstudio/file-locks
configured with either lock-type=linkbased
and lock-type=advisory
.
Any guidance or alternative approaches to configuration or testing would be greatly appreciated.
Machine 1:
cr173@statistics3 [~]$ /usr/lib/rstudio-server/bin/locktester
RStudio Workbench Lock Test
---------------------------
Host: statistics3.-----
Lock type: Link-based
User: cr173
File: /home/c/cr173/.local/share/rstudio/locktester_file
* Acquired advisory lock
* Acquired link-based lock
If this is the first node on which you are running the
lock tester, run it on another node now. If you see this
message on both nodes, your file system does not support file
locking.
^C
Machine 2:
cr173@linearalgebra3 [~]$ /usr/lib/rstudio-server/bin/locktester
RStudio Workbench Lock Test
---------------------------
Host: linearalgebra3.stat.duke.edu
Lock type: Link-based
User: cr173
File: /home/c/cr173/.local/share/rstudio/locktester_file
* Acquired advisory lock
* Acquired link-based lock
If this is the first node on which you are running the
lock tester, run it on another node now. If you see this
message on both nodes, your file system does not support file
locking.
^C
NFS Details
The following are the mount details for the NFS home share
statfs:/mnt/vol1/home on /home type nfs4 (rw,relatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=--.--.--.--,local_lock=none,addr=--.--.--.--)