Are you looking for an efficient and easy to host S3 storage solution yourself? So prepare to discover Garagea particularly interesting open source alternative to manage your data in a distributed and secure manner as you would on a good old S3 service.

Well yes because in this world where cloud giants like Amazon, Google and Microsoft reign supreme over our data, it becomes crucial to regain control.

It is therefore exactly the mission that the team of twoflers was given by developing garage, namely creating a distributed storage system that respects your digital independence. One of the most remarkable characteristics of garage is its ability to automatically reply your data on several sites. Thus, each file is divided into blocks and stored in triple exemplary in the separate geographic areas of your choice.

SCR 20250107 JLSP

This approach guarantees maximum availability, even in the event of a server failure or a network connection. Garage natively implements the Amazon S3 protocolwhich means that you can use it with all your existing S3 compatible tools and applications. Suddenly, whether to save your files with RCLONE, host a static website or store the media of your Matrix instance, everything works transparently.

Now, if you want to put your hands in the kidnapping, know that Garage unfolds via a simple binary without dependence or directly in Docker.

Then, once installed and configured, the creation and management of buckets is simply done via the online command interface of the style:

garage bucket create mon-bucket
garage key create ma-cle
garage bucket allow --read --write mon-bucket --key ma-cle

Garage then automatically optimizes storage thanks to the Bloc deduplication and ZSTD compression. The files are cut into fixed size blocks, and only the unique blocks are stored, which saves a precious space.

SCR 20250107 JLRL

A particularly practical feature is the possibility of hosting directly Static websites From your buckets. To do this, simply configure the domain name and the default index file, and your site is online! And for administrators anxious to monitor their infrastructure, Garage offers metrics in Prometheus format And supports the export of OpenTelemetry traces. You will be able to build detailed dashboards to follow the performance and health of your cluster.

In short, you will understand, garage is ideal for many use cases:

  • Storage of backups with tools like Restic or Rclone
  • Backend for your web applications (NextCloud, Matrix, Mastodon & Mldr;)
  • Static website accommodation
  • Media storage and shared documents
  • Binary hideper for your builds

Notrez anyway that for the moment, Garage makes certain choices which may not suit all uses. For example, there is not yet really extensive performance optimization. There is also no support for the POSIX file system and the features are limited to those of the basic S3 API, and the replication is simple without an error corrector code.

For a deployment in production, here are the recommended steps on the garage site:

  1. Prepare at least 3 servers in different geographic areas
  2. Configure domain names for S3 access and the web interface
  3. Place a secure proxy backhoe (Nginx, Caddy & Mldr;)
  4. Activate supervision via Prometheus/Grafana
  5. Plan a backup strategy of metadata

Don’t forget that Garage is actively maintained by the team of Deuxfleurs, which is a non -profit organization so if you want to give them a financial or technical help, I think it can be cool.

Thanks to Fredix for sharing this excellent solution with us!


Source link

Categorized in: