Pulp MEDIA_ROOT setting modification

I’m not sure changing the MEDIA_ROOT this way is the best solution. Please have a look at the installation layout. In particular this sentence:

These is also the cache_dir which is used to configure WORKING_DIRECTORY and FILE_UPLOAD_TEMP_DIR. This defaults to /var/lib/pulp/tmp. It is strongly recommended that this is on the same filesystem as MEDIA_ROOT.

The WORKING_DIRECTORY is used to stage downloads. Once completed, they are moved into the MEDIA_ROOT. Moving files on the same filesystem is a cheap operation. Between different filesystems it’s essentially a copy and is always going to be slower.

So under the hood we have these parameters, but they’re not really intended for users to change.

In our storage guidelines we recommend putting the entirety of /var/lib/pulp on NFS if you want to, though I don’t know how much we actually test this. Still, the other directories are really tiny I don’t see why you wouldn’t just mount /var/lib/pulp entirely.

2 Likes