PhoenixKitWeb.Live.Modules.Storage.ProfilesComponent (phoenix_kit v2.41.0)

Copy Markdown View Source

The Storage profiles tab of Settings → Media (V205): where each library's bytes live.

A profile lists buckets and says, for each, its role (primary is written and served, replica is served when no primary has the copy, backup is written but never served), what it stores (everything, originals only or derived files only), a fixed write priority (empty is the shuffled pool), a serve order and a status (read_only keeps serving and gets no new files, draining has its files moved to the profile's other buckets). The profile also says how many copies an original and a derived file get, and how many copies of an original an upload needs to succeed.

Every library without its own profile uses the Default, which every bucket joins when it is created. Any change bumps the profile's revision, and the reconciler moves its files by itself (the Health page shows what is left). A library picks its profile on the Libraries tab.