93fa3d04d908e44befcca86e97a1c9143b85d452
By:
timgavin

Block Storage with Load Balancers

May 17, 2017 848 views
Load Balancing Block Storage Ubuntu 16.04

Can I share a block storage volume with load balanced droplets?

2 Answers

@timgavin

Each block storage instance can only be mounted to a single droplet. You wouldn't be able to share the block storage across multiple droplets simultaneously.

If you need to share storage across multiple Droplets, I'd recommend looking in to GlusterFS.

https://www.digitalocean.com/community/tutorials/how-to-create-a-redundant-storage-pool-using-glusterfs-on-ubuntu-servers

...

GlusterFS will allow you to setup a client and multiple storage nodes. It can be a bit finicky (based on my experience) but it does work.

by Justin Ellingwood
GlusterFS is a technology that allows you to create pools of storage that are accessible from the network. Using this software, in this article we will discuss how to create redundant storage across multiple servers in order to ensure that your data is available regardless of if one server goes down.

Thanks for that info.

So I wouldn't be able to access a block storage drive from another droplet, even with private networking?

What are your thoughts on this: I set up a droplet and add a block storage drive to it, then set up a site and serve all media on the block storage drive under a URL, such as media.mysite.com? Would that work? Seems like it would be easier to maintain, and since block storage is scalable to a huge volume it should be viable for quite some time.

  • Hi @timgavin

    You can connect Block Storage to another Droplet - just not at the same time. So first you would disconnect from one Droplet and connect to another. It can be done through the control panel or via API.

    It sounds like a good idea setting up a Droplet with Block Storage for serving media. You could use Nginx to serve the static media files, which wouldn't require a lot of resources and very fast delivery.
    But that is also what a CDN does, so put that into consideration - control, money, stability, administration.

    @jtittle Any comments?

Have another answer? Share your knowledge.