Skip to content

make thumbnail, trashbin and version paths configurable #25213

Closed

Description

@butonic

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.)

Activity

  1. felixboehm commented on Jun 22, 2016

    @felixboehm
    Contributor

    Awesome!

  2. modified the milestone: backlog on Jul 25, 2016
  3. PVince81 commented on Feb 10, 2017

    @PVince81
    Contributor

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

  4. PVince81 commented on Dec 18, 2017

    @PVince81
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions