Hi,

To insure locking system works smoothly with NFS, I recommend:
- to use NFS v4
- to use sync mount option
- depending of the network you may need to tune rsize/wsize (default
is 8192, if the network is stable you can increase, if you have packet
dropped, you can decrease this value)

Regards
JB

On Tue, Feb 15, 2022 at 9:30 PM Nordstrom, Karl <[email protected]> wrote:
>
> Hello ActiveMQ users,
>
> We have two hosts in each of our ActiveMQ v5.16.x clusters.
>
> They both NFS mount the following at boot time via /etc/fstab
> /opt/local/apache-activemq-5.16.0/data/kahadb
> /opt/local/apache-activemq-5.16.0/data/amq-prod-cluster
>
> The NFS mounts are provided by an EMC Isilon Scaled Out NAS. When they do 
> maintenace on the Isilon, they reboot one of the nodes at a time. All too 
> often this causes outages of our amq hosts. So, we stop activemq.service on 
> the broker in slave mode before the Isilon maintenace, but still sometimes 
> the amq nodes lose the NFS mounts.
>
> Are there recommended NFS mount parameters?
> Can kahadb be auto mounted?
> Is SMB an option?
>
> Here are the amq mount parameters:
>
> [kxn2@amq-p01 ~]$ cat /etc/fstab |grep nomad
>
> nomad-nfs.blue.psu.edu:/activemq_production     
> /opt/local/activemq/data/kahadb nfs     rw,nosuid       0       0
> nomad-nfs.blue.psu.edu:/activemq_production     
> /opt/local/activemq/data/amq-prod-cluster nfs     rw,nosuid       0       0
>
> [kxn2@amq-p01 ~]$ sudo mount | grep nomad
> nomad-nfs.blue.psu.edu:/activemq_production on 
> /opt/local/apache-activemq-5.16.0/data/kahadb type nfs4 
> (rw,nosuid,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=172.24.62.22,local_lock=none,addr=10.136.49.89)
>
> nomad-nfs.blue.psu.edu:/activemq_production on 
> /opt/local/apache-activemq-5.16.0/data/amq-prod-cluster type nfs4 
> (rw,nosuid,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=172.24.62.22,local_lock=none,addr=10.136.49.89)
>
> Thanks in advanced
>
> ---
>
> Karl Nordström
>
> Systems Administrator
>
> Penn State IT | Application Platforms

Reply via email to