Asset Manager Configuration

How can I use a different storage backend?

Configure an alternate storage backend, and then either use the REST endpoints or the Move Storage workflow operation as part of a workflow. Note that the REST endpoints trigger workflows, the workflow operation handlers are generally only useful as part of an automated storage tiering system.

REST Endpoints

The REST endpoints can be accessed from $server_url/assets/docs. The value of $server_url is set during basic configuration. There is no other current user interface for storage tiering at this time.

Config Options

File System Based Asset Store

Configure the file system based asset store in custom.properties.

Multiple Storage Directories

The file system based asset store can spread its data over multiple directories, e.g. to use several NFS shares. Configure additional directories in custom.properties next to the base directory configured above:

org.opencastproject.episode.rootdir=/srv/opencast/archive
org.opencastproject.episode.rootdir.1=/mnt/archive-share-1
org.opencastproject.episode.rootdir.2=/mnt/archive-share-2

The numbers start at 1 and must be consecutive. Opencast stops reading additional directories at the first missing number.

Opencast decides where to store a media package when its first snapshot is archived:

When reading or deleting assets, Opencast looks for the media package in all configured directories.

Please note:

Prefix Directories

Within a storage directory, assets are stored as <root>/<organization>/<media package>/<version>/<element>. On large installations, the organization directory ends up containing hundreds of thousands of media package directories, which makes listing it, e.g. for backups, very slow.

To avoid this, Opencast can group media packages in subdirectories named after the first characters of their identifier. Configure the number of characters to use by appending .prefix.length to the configuration key of a storage directory:

# Existing storage, flat layout (prefix length defaults to 0)
org.opencastproject.episode.rootdir=/srv/opencast/archive

# New storage: <root>/<organization>/<first 2 characters>/<media package>/…
org.opencastproject.episode.rootdir.1=/mnt/archive-share-1
org.opencastproject.episode.rootdir.1.prefix.length=2

org.opencastproject.episode.rootdir.prefix.length configures the base directory. It also applies if org.opencastproject.episode.rootdir is not set and the default directory is used. It is not a default for the other directories. Each directory has its own setting, so you can add a new directory using prefix directories while keeping an existing directory unchanged.

The prefix is derived from the media package identifier as follows:

Examples for a prefix length of 2:

Media package identifier Prefix
3f6e3c1a-8d0b-4b0e-9a64-0c2f0e8f7d21 3f
Lecture-2026 le
..abc __
x x_

Please note: