What about backups — do they work just well?
They should work the same way. There’s even less concern about performance for backups, obviously.
Note: be careful when selecting the size of your block storage.
Once your reach its limits, resizing an existing block storage is not a trivial process.
Specifically for image uploads though, I think an easier “resizing” would be to just create a new volume, reconfigure the your .yml
file and copying images from the old volume to the new one. Then rebuilding your container again.
Question
Is there any filesystem to format the partition with in terms of image storage? Will it make any different, or should we just use Ext4?
I can’t imagine what difference it would make. I’d use ext4.
So, I finally spent a few hours to implement all this, and it worked quite well as by the instructions above.
I had Discourse hosted in a region with no volumes support, so I also had to move to another region first.
Altogether:
- Turned off the droplet.
- Made a snapshot.
- Moved the snapshot to the target region.
- Created a new dropled from the given shapshot in the target region.
- Attached a volume and did all the work as described in Digital Ocean.
- Updated container as by Sam’s recommendation above:
7. Rebuilt the container
8. Updated all API keys to work with the new IP. For example, I had my SparkPost API key locked to a particular IP address.
All done and worked like a charm.
References:
Why would you advise against symlinks?
Yeah be careful here, everyone, as we found out block storage is quite a bit slower than native SSDs. Like one-half to one-third the speed, so…
So what is recommended? Which CAN we move to volumes without too much of performance loss? Does anyone have a 1-2-3 guide? Everyone in this topic seems to have scattered info for advanced crowds, still hoping to find a simple guide.
- Let’s say I have
/mnt/someStorage/
- Edit
/var/disocurse/containers/app.yaml
section about volumes. Add a -volume … info gets a bit scattered here. Somehow link to somewhere in /mnt/someStorage/somewhere? - ?
Hmm, what do you mean by #scriptd need to find this
I mean that volume-sfo2-01
might not be the name of your volume.
I’m interested in an official recommendation too. In the meantime, DigitalOcean Block Storage has been working quite well for image uploads for us, except that we do not incur high traffic — just around 200-300k views per month as by Google Analytics.
I didn’t even know you can purge, and sounds a bit scary to a Linux newb. This is why ;D I can move it and forget it
Here’s how to remove extra docker stuff:
./launcher cleanup
You’re really not going to be able to forget it. If you want to forget it, get someone else to do it for you.
If running ./launcher cleanup
is “a bit scary to a Linux newb”, you’re really not going to like mounting extra filesystems and moving data around…
That’s why I’m here – I made a backup and I’m asking for a guide much like any of your other guides I followed and it worked fine. Disliking it isn’t going to magically give me more storage on my main drive asking for a guide like any of the other guides sounds like a fair request. Surely I’m not the only one~ When I first started with Discourse and DO last year, I never used Linux in my life.
If it’s on another volume, if remembering to add +gb to my volume is the worst thing that can happen, I’m game; it’s significantly better than wondering what to do if I run out of space on my main drive.
Would anyone recommend using Digital Ocean Block Storage as opposed to just integrating with Amazon S3 for image uploads?
I’m sure DigitalOcean would.
Last I looked, it claimed to be compatible with the Amazon api, but someone will need to do some work to support it. So right now, your options are to use S3 or (pay someone to) develop a plugin to support it.
He’s asking about block storage, not object storage.
In that case, you’re right!
If you don’t have and don’t want to have an account with the Amazon, then block storage is a fine solution. I’ve not bothered to figure out S3 (which doesn’t seem that hard) myself, so I’m using block storage right now!