Is docker swarm with NFS data workspace suitable for Android build

Hi There,

We are looking at the solution for Android build farm using Docker Swarm.
As you know, Swarm will migrate docker containers to other docker nodes based on the nodes’ loading, it’s quite good to provide the high available for us, but will bring issues to us since the build data will not be available to us since the container is moved to another node.

So we are using NFS as the data workspace to repo/make builds, however, it brings another issue of the build make performance.

Is there any best practice of this situation?
Thank you very much in advance!