Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

This documentation applies to Avalon 6.4.3+ when matterhorn.media_path is set in settings.xml.


When Matterhorn is running on a different server than Avalon and they don't share the same filesystem (and filesystem paths) for both the Rails web upload directory and dropbox, Avalon uses something called a working file path.  The working file path is a copy of the originally uploaded file to where Matterhorn has access and at a path shared by both servers.  The working file path is stored on the MasterFile so that it can be cleaned up by a background job after the MasterFile has finished processing.

For example, if Matterhorn is running on a different server and Matterhorn's ingest directory is '/srv/matterhorn/ingest' and mounted on the Avalon server at the same location and Avalon's dropbox directory is '/srv/avalon/dropbox' then Settings.matterhorn.media_path should be configured to be '/srv/matterhorn/ingest'. Note that Matterhorn's ingest directory needs to be mounted at the same location on both the Avalon and Matterhorn servers for Avalon to be able to ingest due to the use of absolute paths and not relative paths.  The working file path is only used when Settings.matterhorn.media_path is configured and is used in all of the ways ingest happens: web upload, web upload skip transcoding, web dropbox, web dropbox skip transcoding, batch ingest, batch ingest skip transcoding, and batch ingest pre-transcoded derivatives.  The working file path is stored on the MasterFile so that it can be cleaned up by a background job after the MasterFile has finished processing.  Note that this does not affect AWS configurations since they shouldn't have Settings.matterhorn.media_path set.