Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make thumbnail, trashbin and version paths configurable #25213

Closed
butonic opened this issue Jun 22, 2016 · 3 comments
Closed

make thumbnail, trashbin and version paths configurable #25213

butonic opened this issue Jun 22, 2016 · 3 comments

Comments

@butonic
Copy link
Member

butonic commented Jun 22, 2016

In large Installations storage cost can be improved by placing data on different storages, eg:

  • thumbnails on SSDs for performance
  • trash on cheaper HDDs
  • versions on a ceph bucket
  • data on a glusterfs (just as an example)

For scalability the data should be placed in prefixed user dirs in each case, eg:

  • /mnt/oc_trash/al/ice/files_trashbin
  • /mnt/oc_versions/bo/b/files_versions
  • /mnt/oc_data/pe/ter/files
  • /mnt/oc_thumbnails/to/m/thumbnails
  • /mnt/oc_cache/to/m/cache

For cache we already have cache_path in the config.php. This FR just extends the functionality to other types of data and proposes to always prefix user dirs. It is not really needed to make that configurable. (although a userid prefix could be configured like 'userid_prefix' => '#/##' which would lead to data/p/et/er. Also keep in mind that the puth might come from the database in the future and no longer can or should be derived from the userid, as it may become a simple integer.)

@felixboehm
Copy link
Contributor

Awesome!

@PVince81
Copy link
Contributor

If we move the metadata to a separate folder like we did for avatars "data/avatars", this might become easier.

@PVince81
Copy link
Contributor

Decouple home storages #29502 where we can go further and let the admin configure metadata storage as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants