Storage profiles: how many copies of each file, and where
Describes PhoenixKit 3.5.0.
A storage profile says where a library’s files are kept: which buckets, how many copies of each file, and which copy is served. Every library uses a profile. A library without one of its own uses the Default.
Where to find it
Settings → Media, tab Storage profiles (/admin/settings/media?tab=profiles). You need the Manage storage permission, or the Owner or Admin role. Buckets are created on the Buckets tab first.
Storage profiles: how many copies each file gets, and where.
The copy counts
Each profile has:
- Local copies: how many copies of each file are kept on this server’s own disks.
- Cloud copies: how many copies are kept in the cloud, so a file survives the server. It can be set only once the profile has a cloud bucket; until then it says Add a cloud bucket to this profile to keep copies in the cloud.
- Copies needed to accept an upload: an upload fails, and what it wrote is removed, unless at least this many copies were written. The rest are made later in the background.
- Folder levels: how many hash folders new files are spread over on a local disk. More levels keep folders from getting crowded in a large library; the card shows how many files that layout is comfortable with. Files already stored stay where they are, and cloud buckets have no folders.
A copy count applies to everything made from a file too: its smaller sizes and tiles get the same number of copies as the original.
The card warns when the counts and the buckets do not match, for example when more local copies are wanted than there are local buckets taking new files, or when several buckets of a kind share fewer copies, so files are spread across them rather than mirrored.
The buckets of a profile
The table lists each bucket the profile uses:
- Role: Primary (written and served), Replica (written when more copies are wanted than there are primaries; served only if no primary has the file) or Backup (written, never served).
- Upload order: when the profile has more buckets than copies, lower numbers get new files first, and buckets with no number take turns at random. Shown only where it can matter; otherwise Every writable bucket gets a copy, so the order does not matter.
- Serve order: when a file is on several buckets, the one with the lowest number serves it.
- Status: Active, Read-only (no new files) or Draining (moving files out). A draining bucket has its files moved to the profile’s other buckets.
- Originals only (backups): keep only the originals on this backup, not the sizes and tiles, which can be made again from them.
Add bucket adds another bucket. A bucket marked “also in” is already used by another profile: adding it shares it, and its on/off switch, size limit and keys apply to every profile that lists it.
Remove from profile takes a bucket out, after a confirmation. Its files are copied to the profile’s other buckets first, then deleted from it. The bucket itself stays.
If no bucket can take new files, the card says No bucket can take new files now, so uploads fail.
Creating and deleting profiles
New profile asks for a Profile name and Create adds it. A library picks its profile once, when it is created on the Libraries tab.
Delete removes a profile after a confirmation. The Default profile cannot be deleted, and neither can a profile a library is on.
What happens after a change
Changing a profile’s copies, or a bucket’s role or status, makes PhoenixKit bring every file on that profile into line in the background: copies are made where they are missing and removed where they are no longer wanted, never the last one. The Health tab shows how many files are still waiting. Changing the upload order or the serve order moves nothing.
What it doesn’t do
- A library cannot be moved to another profile afterwards. To move where a library’s files live, change the buckets of its profile; that moves every library on it.
- Placement does not look at free space.
- A disabled bucket is neither written to nor read from, whatever role it has in a profile.
- Profiles users made for their own libraries are not listed here. Where a shared bucket is also used by one, it is counted (“2 personal storage profiles”), never named.