NFS/ZFS sync perf on shares to php kubernetes containers?

Hello Truenas lovers,

Just a little support request.
I have a multi container symfony php application running on kubernetes. The /var and /public are NFS shares on a Truenas Scale vm.

When deploying new versions/containers, there is an init-container in the setup that starts a process that can only run once. The other (init)containers that are starting wait until that particular initcontainer is done.
I use a public/.init_done file for that and let the initcontainer script sleep for a couple of seconds to check if the ‘one’ initcontainer is done.

I sometimes see that when the ‘first’ initcontainer is done and the pod starts its main container it still takes a few tens of seconds to sometimes a couple of minutes before the other (init)containers get out of their ‘sleep’ timeout… This means they do not see the .init_done file yet.

Is that a filesystem sync problem? Does the nfs client not send its updates to the server or the server not to the other clients?
My shares are mounted with NFS, storage is a 1xRaidZ1|3wide|100GB
Is there a way to speed up the sync?

Thanks!
Tom