0

My team requires 2 application servers with common storage.

Our current cloud provider does not have a SAN in place; so we want to utilize the local storage of each of the application servers. The 2 application servers are equipped with 200gb of NVME storage, each. We need around 50gb storage for the OS.

How can we utilize the remaining space and achieve the common storage/single folder of CMS files for both servers?

Let me know if something is uncelar, I will try to be more precise.

bjoster
  • 4,805
  • 5
  • 25
  • 33
  • Do your cloud servers have the network bandwidth to create virtual storage with good IOPS? i.e. 100 gigabit link between them? Or at least 40? – TomTom Nov 13 '19 at 15:57
  • @TomTom 1Gbps.. i tested it. – user1486241 Nov 13 '19 at 16:59
  • That MAY work or not - for a CMS style setup it should be enough IF you can rely on that. Given that a CMS is mostly read only... check any of the linux distributed file systems. – TomTom Nov 13 '19 at 17:06

1 Answers1

0

This is a difficult question to answer completely. It really all depends on your goals, and expectations.

Here are 4-potential solutions, which get progressively more complicated, and require more periodic attention:

The quick & dirty solution is to simply run rsync on a cron-job, (every minute?) and replicate the files to & from the servers. This is a bit dangerous, as you can end up with files modified in both-places and end up with a mess.

More complicated, you can help reduce some of the potential periods where both servers could modify the files, by setting up a bash script using inotifywait to wait until a file/directory is modified, and then immediately rsync as-soon-as-it-happens.

Still more complicated, you can work with file-system frameworks such as "glusterfs" which replicate files in large-scale environments. This option is not for the weekend-warriors out there. It can fail spectacularly (which I've experienced), due to slight misconfigurations, and cause no end of headaches. When it is properly configured and setup, it can work amazingly well.

Finally, you can go the extreme route, and actually have a block-level replication between the servers using something like drbd, which (in most cases) is the extreme route. In my own data-centers, I have setup replicated block storage devices, with NFS on the surface in HA virtual environments with great success. Storage arrays can die at any point, and the virtual machines running on them never see more than a few ms of delay.

TheCompWiz
  • 7,409
  • 17
  • 23