Can I setup blockstorage as a NFS for my web app?

I am planning to scale my drupal application. If i move my file system to a new node with block store which holds the files and mount it to my web app server. Does it impactmy performance?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You will see somewhat slower read/write speeds when accessing your block storage device over NFS from another droplet but in most cases it shouldn’t have any noticeable effect on serving content for a web application. If the droplet with block storage attached and the droplet you mount the NFS share on are in the same datacenter it will significantly improve performance over doing this over the open internet between two different regions…

Yes, you can. But why you would do something like that?

Performance depends on set up you go with. If we go back to your previous question How to replicate this architecture in DO for drupal?, we can see that there was talk about 2 web servers behind load balancer.

Possible set ups could be:

  1. Make one more node for files w/ block storage and host attach it on 2 other servers. I don’t see much benefit with this. You’ll be on the same, as you will still get that from one server. You use two web servers, yes, but data is still from one so if you have very high traffic, that can be potential problem.

  2. One web server with data on another. Nothing too much, you’ll just slow it down (unnoticeable, but still slower).

  3. Two web servers, data on third, attaching and reattaching NFS from server to server. Data will be available on only one in time so that’s not load balancing.

If you share you exact idea, we can discuss about performance, I got some ideas but there not so efficient in my opinion.

About speed, if you go with same data center, you can setup private networking for NFS. How to set up a new droplet for extended storage only? (Block space n/a yet.) was a questions from a few days ago, it use droplets space instead of block storage, but maybe it will give you idea of speed (read one of comments).

I was not working with Drupal, but as this is CMS, files should be always same. When you do changes, just set up some replication system and have files on both servers.

Maybe someone have another experience, but this is my opinions and I hope it will be helpful to you. =)