Repository navigation
Releases
Pinax 0.14.0: load
Fourteenth release (wave 14, "load"): many people at once, measured and fixed, and file categories a site defines.
A load test of people signing in and clicking through the interface, on a laptop against scans of 10 million files,
on SQLite and PostgreSQL, found a stall past about 20 pages a second, now fixed, and pages that asked the catalog
hundreds of questions, which now ask a few; the deployment guide says how many people one process serves. Storage
administrators define the file categories, by extension and by patterns on file names, on a page of their own. See
pinax-spec/roadmap.md.
Upgrading from 0.13.0: back the catalog up (Backups), install the new version, and
restart Pinax (Upgrading).
- The catalog has one migration,
0007(the file categories), which Pinax applies when it starts, filling it
with the twelve built-in categories; withPINAX_DB_AUTO_UPGRADE=falseit refuses to start untilpinax db upgradehas applied it. The snapshot indexes are unchanged, and were built with the twelve, so nothing needs
rebuilding. PINAX_QUERY_MEMORY_LIMITis for all the open indexes together now, 8 GB by default; it was 4 GB for each. A
site that set it should set the total it allows.- Scripts that read
cat_bytesorcat_filesfrom the API read them by category now: they are objects keyed by
category, not lists. - With Prometheus, copy
deploy/prometheus/pinax-alerts.ymlagain for the new rulePinaxBusy. - No new dependencies.
Added
- File categories, under Administration (R14), for storage administrators, and read by auditors: each
category's name, description, extensions, and patterns, changed, added, removed, and put in order; each pattern
checked, and tried against a sample of the latest scans' names; before saving, how the latest scans' files would
move between categories (by extension exactly, by name an estimate from a sample) and which snapshots would be
outdated, with about how longpinax rebuild --outdatedtakes. Every change is audited (File categories). PINAX_WEB_THREADS(40): the threads that answer the web app's requests, and with SQLite its catalog
connections. Fewer serve more quick pages a second when the server is saturated, and leave less for requests that
wait or run long (Sizing).- The age map says what it leaves out, in the line under it: how many folders are drawn and how many put into
one tile (up to 60 subfolders of a folder, and with two levels 12 inside each tile), and, sized by a kind of data
or by age, how many folders hold any, since one with none has no area and is not drawn. - The load test (
bench/load.py, withbench/load_setup.pyto make the installation it runs against): simulated
people of each role signing in with passwords and opening the interface's pages as browsers do, with pauses
between clicks; administrators searching whole filesystems (--searchers); everyone signing in at once (--ramp 0); a report of each page's and API route's times, errors, and the server's memory and cores, against wave 14's
budgets, and--comparefor two runs (The load test). The architecture
guide's Many people at once has what it measured, and the deployment guide's sizing how many people one process
serves.
Changed
- File categories are the catalog's (R14), with the twelve built-in ones filled in when Pinax first starts after
the upgrade (migration0007), so a site can change them, and add its own: up to 24, each by extensions and by
patterns on file names (regular expressions, up to 25 in all), checked before any extension. They are decided when
an index is built and recorded in it, and every report reads each index's own; an index built with other
categories than the catalog's is outdated. Indexes built before the upgrade were built with the twelve, so they
are current and need no rebuild. pinax rebuild --outdatedalso builds again the indexes built with other file categories than the catalog's,
and--latestlimits it to each filesystem's latest snapshot, so older ones keep theirs.- The API's totals by category are keyed by category:
cat_bytesandcat_filesare objects
({"genomics": 1234, ...}, naming only categories with files), not lists in the order of/api/config's
categories. A script that reads them by position must read them by key. Files found by a search or in What
changed have their category's key, as before. PINAX_QUERY_MEMORY_LIMITis for all the open indexes together, 8 GB by default. It was 4 GB for each, and up
to eight stay open, so up to 32 GB in all; now each open index has an equal share, set again as indexes open and
close, and one alone has all of it. A site that set it should set the total it allows.- The roadmap. Load comes next, as wave 14 (0.14.0): a load test of many people using Pinax at once, run on a
laptop against synthetic scans of 10 million files, on SQLite and PostgreSQL; the baseline at 10 to 100 people;
whole-filesystem searches taking turns, many sign-ins at once, and the catalog under load; what it finds fixed or
tuned, and the deployment guide's sizing says how many people a server serves (Q6). It was planned for hardening.
The pilot becomes wave 15, and runs the same test again on its server; hardening becomes wave 16 (1.0.0). Wave 14
also lets storage administrators define file categories, by extensions and by patterns on file names, applied when
an index is built (R14).
Fixed
- Many people at once no longer stall Pinax. Past about 20 pages a second, some 200 people at a normal pace,
0.13.0 stopped answering for 30 seconds at a time and then failed requests with Internal error, its processors
idle: each request kept the catalog connection it took to check who was signed in while it waited for a thread to
run the page, and the catalog had fewer connections than the web server has threads. A request now gives its
connection back in between, and before checking a password, and with SQLite the web app keeps a connection for
each thread. A request that finds no connection free within 10 seconds (30 before) is told Pinax is busy (503)
instead of failing, and counted in the new metricpinax_catalog_busy_total, with the alert rulePinaxBusy. - Pages that name many labs or people ask the catalog a few questions instead of hundreds. An administrator's
All data asked 1,023, most of them to find each lab's PI; now 24. People and access asked 620 (each person's
roles), now 13; the age map, change map, and cold folders of a filesystem's root 131 to 283, now 12 to 14; a lab's
suggested folders 175, now 58. On PostgreSQL on the laptop, All data's catalog request took 69 to 129 ms instead
of 400 to 576.
Pinax 0.13.0: reach
Thirteenth release (wave 13, "reach"): sign-in for any site. Out of the box, outside the demo, people sign in with
passwords Pinax keeps, with nothing else to set up. Optionally, Pinax signs people in with Microsoft Entra ID itself,
with Pinax's roles from Entra ID's app roles if the site wants, and an emergency sign-in for when Entra ID fails. CI
checks every push on SQLite and on PostgreSQL. The demo is unchanged. See
pinax-spec/roadmap.md.
Upgrading from 0.12.0: back the catalog up (Backups), install the new version, and
restart Pinax (Upgrading).
- The catalog has one migration,
0006(the emergency account mark), which Pinax applies when it starts; with
PINAX_DB_AUTO_UPGRADE=falseit refuses to start untilpinax db upgradehas applied it. The snapshot indexes
are unchanged, so nothing needs rebuilding. - New dependencies (Authlib, httpx2, and itsdangerous) come with
uv sync --frozen --no-dev, as in the upgrade
steps. - A site that sets
PINAX_AUTH_MODEsigns in as before. One that leaves it out withPINAX_ENVIRONMENT=devhad
the demo's persona switcher, and now asks for passwords: make the first administrator withpinax user add USERNAME --admin, or setPINAX_AUTH_MODE=demoto keep the switcher. Production always had to set it. - With Prometheus, copy
deploy/prometheus/pinax-alerts.ymlagain for the new rulePinaxEmergencySignIn. - Sign-in with Entra ID, its roles, and emergency accounts are off until a site sets them up
(Signing in with Entra ID).
Added
- Sign-in with Entra ID in Pinax itself, optional:
PINAX_AUTH_MODE=oidcsigns people in with Microsoft Entra
ID, or another OpenID Connect provider, behind the same HTTPS proxy as local sign-in, with no sign-on proxy. The
ID token is checked against the provider's keys, with PKCE; people are matched to Pinax's people by their user
principal name, within the site's domains, never made; refusals are explained and audited; signing out ends both
sessions. Pinax refuses to start until its settings are complete.scripts/dex/dex.shruns Dex as a stand-in
to try it on a laptop (Signing in with Entra ID). New dependencies: Authlib (with joserfc
andcryptography), httpx2, and itsdangerous. - Roles from Entra ID, optional: with sign-in through Entra ID,
PINAX_OIDC_ROLE_MAPmaps Entra ID app roles
(or groups,PINAX_OIDC_ROLES_CLAIM=groups) onto storage administrator, auditor, finance, and division head. Each
role it names is then set at every sign-in, audited as the provider's change, and shown as From Entra ID rather
than changed in the app; roles it does not name are still given in Pinax, and local sign-in ignores the map. With
too many groups to list, mapped roles are taken away rather than guessed
(Roles from Entra ID). - An emergency sign-in for when Entra ID fails. With sign-in through Entra ID, a storage administrator marked as
an emergency account on the server (pinax user emergency USERNAME, which prints a new 32-character password)
signs in with a password at/auth/emergency, for an hour, with local sign-in's lockout. It is off unless such an
account exists, and never set in the app; every use is audited, logged as a warning, and caught by a new alert
rule (PinaxEmergencySignIn); Access review lists the accounts. Migration0006adds the mark
(When Entra ID fails). - Continuous integration. GitHub Actions run the linter and the whole suite, on SQLite and on PostgreSQL, with
fs-inventory installed, for every push (Continuous integration).
Changed
- Local sign-in is the default outside the demo. With no
PINAX_AUTH_MODE, adevorprodinstall signs
people in with passwords Pinax keeps, with nothing else to set up; the demo environment keeps its persona
switcher. The server kit'sdeploy/pinax.envnow setsPINAX_AUTH_MODE=local, with oauth2-proxy's settings
there to uncomment, and the deployment guide sets up passwords first and single sign-on as an option
(Signing in). A site that setPINAX_AUTH_MODEkeeps it; adevinstall
that left it out, and so had the persona switcher, now asks for passwords:pinax user add --adminmakes the
first administrator. - The roadmap. Reach comes next, as wave 13 (0.13.0): local sign-in the default out of the box outside the
demo, in the code and in the server kit; sign-in with Entra ID in Pinax itself, optional and configured by
settings, with roles from its app roles or groups; an emergency administrator sign-in for when Entra ID or its
setup fails (A12); and CI. The pilot becomes wave 14, and takes lab membership from the directory (A6).
Two-factor codes and per-address limits for local sign-in, and a container image, move to the parking lot (a
container could not scan: fs-inventory names owners from the scanning host's accounts), and the security review
is taken off the roadmap.
Pinax 0.12.0: access
Twelfth release (wave 12, "access"): who may see and do what beyond labs' members and storage administrators,
scripts that use Pinax with a person's access, and the record of who did what. Three site roles (auditor, finance,
and division head), API tokens for scripts, the audit log in the app, and an access review with its sign-off, all
with every way of signing in. The demo has a person in each role, and its walk-through switches to each. The pilot
follows in wave 13, and reach, with optional sign-in with Microsoft Entra ID, in wave 14. See
pinax-spec/roadmap.md.
Upgrading from 0.11.0: back the catalog up (Backups), install the new version, and
restart Pinax (Upgrading).
- The catalog has four migrations,
0002to0005, which Pinax applies when it starts; with
PINAX_DB_AUTO_UPGRADE=falseit refuses to start untilpinax db upgradehas applied them. The snapshot indexes
are unchanged, so nothing needs rebuilding. - Behind oauth2-proxy, add
"^/script/api/"toskip_auth_routesin its configuration and restart it, so
scripts with API tokens get through (Sign-on with oauth2-proxy).
Without it, the proxy stops scripts, and nothing else changes. - One new setting,
PINAX_TOKEN_MAX_DAYS(365 by default), the longest an API token may last. No new
dependency. - Storage administrators and lab memberships given before the upgrade say Not recorded in the access review:
Pinax did not record when they were given. Browsers load the new pages on their next visit.
Added
- Site roles. Beside lab memberships, a person can be an auditor (sees everything a storage administrator does,
people included, and changes nothing), finance (every lab's and department's charges, and the prices, free tiers,
and capacities behind them; no folders), or head of a division (the labs of that division, as their members see
them, to read). They are given on a person's page in People and access, each change audited, and a person can
have several. Every check is on the server: seeing and changing are now separate questions, so reads an
administrator once made alone are open to these roles, and changes stay with administrators, and with each lab's
PI and delegates for its tags and plan. Pages show each role what it may use: finance lands on Chargeback, and
auditors see the administration pages without their buttons
(Site roles). The demo has one of each: Helen Marsh, Daniel Osei, and Grace
Whitfield. - API tokens for scripts. Anyone makes their own under API tokens (in the menu under their name), reading
only or with their access, for a week to a year (PINAX_TOKEN_MAX_DAYS); administrators make service tokens
for a named service, which belong to no one and read as finance or as an auditor. A token is shown once and
stored as its SHA-256; it expires, its person or an administrator revokes it, and deactivating its person revokes
it. Every change made with one is audited with its name, and each shows when and from where it was last used. A
script sends it asAuthorization: Bearer …to/script/api/..., which the sign-on proxy's configuration now
lets through and Pinax answers only with a token; the user guide has a script that downloads a month's
chargeback statement (API tokens for scripts). - The audit log in the app. Audit log, for administrators and auditors: every change and sign-in, newest
first, 50 a page, with who made it, the token it was made with, the address it came from, and its recorded detail;
found by person (changes they made and changes to them), action or kind of action, lab, folder (and the folders
in it), and days; Download CSV has every one that matches. A person's and a lab's recent changes link to theirs.
Every audit event now records the address of the request that made it. The demo's site roles are given by its
administrator, so they are in its audit log. - Access review. Access review, for administrators and auditors: what is worth a look (labs with no PI,
people who see nothing, tokens that can make changes as their person, and, with local sign-in, people who have not signed in for 90
days), every site role, each lab's members and folders, and each person's access and what they see, with when
each was given; Find across them; a CSV with a row for each piece of access; and Record a review, audited
(access.reviewed), which auditors may do too (Access review). Pinax now
records when a person is made a storage administrator and when each lab membership is given. The demo's Helen
Marsh has recorded a review.
Changed
- The roadmap. Wave 12 (0.12.0) is access: roles, API tokens, the audit log in the app, and access reviews,
which work with every way of signing in. The pilot moves to wave 13; reach (wave 14) keeps optional sign-in with
Entra ID (with notes from Tundra's), local sign-in's two-factor codes and per-address limits, CI and the
container image, and the security review; hardening is wave 15 (1.0.0). - The catalog's first migrations since its baseline:
0002adds theuser_roletable,0003the
api_tokentable,0004the audit event's address, with indexes on its action and person, and0005when a
person was made an administrator and when each lab membership was given (empty for those given before); Pinax
applies them when it starts, orpinax db upgradedoes wherePINAX_DB_AUTO_UPGRADE=false. - The oauth2-proxy configuration (
deploy/oauth2-proxy/pinax.cfg) lets/script/api/through without signing
in, for scripts with API tokens; copy the newskip_auth_routesline to an installed one. - The guides follow the wave throughout: How Pinax sees storage explains site roles and API tokens;
Troubleshooting has what goes wrong with tokens and roles; Trying Pinax on your own data, the administration
guide's opening, the architecture's catalog, and Development (the new modules, guards, and endpoints) are up to
date; the website's home page has Access and audit..env.exampleanddeploy/pinax.envlist
PINAX_TOKEN_MAX_DAYS.
Pinax 0.11.0: deeper views
Eleventh release (wave 11, "deeper views"): the age map as an icicle and a sunburst, to see a folder up to eight
levels deep at once and find data deep in a chain of folders; and folding a lab's own tag into a standard one from
Tags. The roadmap adds what a review of the capabilities a product like Pinax should have found missing: a
setting for whether each filesystem's access times can be trusted, more roles, API tokens, the audit log in the app,
and load tests. It comes before the production pilot (now wave 12), reach (now wave 13, with sign-in with Microsoft
Entra ID optional), and hardening (wave 14, 1.0.0). See pinax-spec/roadmap.md.
Upgrading from 0.10.0: install the new version and restart Pinax (Upgrading). There
is no migration, and no new setting or dependency. Browsers load the new pages on their next visit.
Added
- The icicle and the sunburst. The age map's View adds Icicle and Sunburst beside the map and the table: a
folder four, six, or eight levels deep at once (Levels), each folder drawn beside the one it is in, as long as
its share of it, sized and colored as on the map. The icicle has a column per level; the sunburst a ring per level
around the folder, whose middle goes up a level. Folders under 0.25% of the place are left out. Hover a folder for
its details and click it to open it, as on the map; saved views keep the view.GET /api/depthserves them
(Icicle and sunburst). - Folding a lab's own tag into a standard one, from Tags. Each lab tag that folders have gets Fold into a
standard tag: choose the standard tag and its value, or keep each folder's own; every folder with the lab's tag
gets the standard tag, and the lab's tag is retired. Until now this was a request to the API only. Folding into a
retired standard tag is refused (Tags).
Changed
- The roadmap. Wave 11 is now deeper views (0.11.0), at the maintainer's request; the production pilot moves to
wave 12, reach to wave 13, and hardening to wave 14 (1.0.0). Folding a lab's own tag into a standard one, carried
from 0.10.0, is its second slice. Later waves gain: in the pilot, a setting for whether each filesystem's access
times can be trusted; in reach, more roles (finance, auditor, division head) decided before the Entra ID group
mapping, API tokens for scripts, and the audit log in the app; in hardening, load tests with many people at once.
Sign-in with Entra ID stays optional: local sign-in and header mode remain, for small organizations and
departments without access to their organization's Entra ID.
Fixed
pinax seedfailed when the demo was reached through a link (as macOS's/tmpand/varare), since the scans
recorded a different root than the filesystem's; it now scans each demo filesystem by its real path.
Pinax 0.10.0: operations
Tenth release (wave 10, "operations"): what a production deployment needs from Pinax itself. The catalog can be
PostgreSQL, with migrations that upgrade it in place (SQLite stays the default, with nothing to install); logs of
every request and every audit event, as text or JSON; and Prometheus metrics to trend and alert on. With it comes
documentation for a new administrator to install, configure, and operate Pinax, and a website made from it with
screenshots of every page. It comes before the production pilot (now wave 11) and reach (now wave 12, with sign-in
with Microsoft Entra ID in Pinax itself). See pinax-spec/roadmap.md.
Upgrading from 0.9.0: back the catalog up first (Backups). When Pinax starts, the
first migration adopts the catalog in place, adding nothing it already has; PINAX_DB_AUTO_UPGRADE=false leaves
that to pinax db upgrade. Indexes are unchanged (version 7). Two new dependencies, Alembic and prometheus-client,
come with uv sync; PostgreSQL's driver comes with uv sync --extra postgres. pinax serve now works out the
person's address behind a proxy itself, from PINAX_TRUSTED_PROXIES and X-Forwarded-For, instead of uvicorn
(which trusted 127.0.0.1, or FORWARDED_ALLOW_IPS). New settings: PINAX_DB_AUTO_UPGRADE,
PINAX_DATABASE_POOL_SIZE, PINAX_LOG_LEVEL, PINAX_LOG_FORMAT, PINAX_LOG_FILE, PINAX_LOG_REQUESTS,
PINAX_SLOW_REQUEST_SECONDS, PINAX_AUDIT_LOG, and PINAX_METRICS_TOKEN (/metrics is off until it is set).
The systemd units gain LogsDirectory=pinax, and oauth2-proxy's configuration lets GET /metrics through; copy
both from deploy/ again.
Added
- PostgreSQL for the catalog.
PINAX_DATABASE_URLcan point at PostgreSQL (postgresql://pinax@host/pinax),
with Pinax installed with itspostgresextra, for a catalog that IT runs, backs up, and replicates as it does
its other databases. SQLite inPINAX_VAR_ROOTstays the default, with nothing to install. The whole test suite
runs on both. - Migrations. The catalog is created and upgraded by migrations (Alembic), on either database, when Pinax
starts;PINAX_DB_AUTO_UPGRADE=falseleaves that topinax db upgrade, which can print its SQL for a database
administrator (--sql).pinax db statussays whether the catalog is up to date. Processes that start together
take turns, and a catalog that a newer Pinax upgraded is refused. A catalog from 0.9.0 or earlier is adopted
in place.pinax db revisionwrites a new migration, for developers. pinax db copymoves a catalog into another, empty database, such as SQLite into PostgreSQL: every table in
one transaction, PostgreSQL's id sequences set past the copied rows, and every count compared.- Logs. One line for each request to the API, with its status, the time taken and the part of it in index
queries, the person, their address, and a request ID (returned asX-Request-ID); slow and failed requests are
warnings (PINAX_SLOW_REQUEST_SECONDS). Every audit event is logged as well, once its change is committed, with
who made it and from where (from the command line, the account that ran it), and optionally to a file of its own
(PINAX_AUDIT_LOG) for security monitoring. Text for the journal, or JSON lines for a log collector
(PINAX_LOG_FORMAT), to standard error or a filelogrotatecan rotate (PINAX_LOG_FILE,
deploy/logrotate/pinax). A line when Pinax starts names its version and catalog. Never a password, token,
request body, or query string. - Prometheus metrics at
/metrics, off untilPINAX_METRICS_TOKENis set and then only with it: for each
filesystem, when its newest scan was taken, ingested, and failed, how long they took, its size, files, folders,
cold data, scan errors, capacity, use, growth, and fill date; automatic ingest's heartbeat; snapshots, indexes,
searches, people, labs, and sessions; Pinax's own disk; and from the web app, requests by route and status and
their times, index queries, stopped queries, whole-filesystem query turns, and audit events by action, sign-ins
among them. Filesystems are named, never labs, people, or paths.deploy/prometheus/has a scrape job and alert
rules to start from, and oauth2-proxy lets Prometheus through to/metrics. - A website with the whole documentation (
node docs/site/build.mjsbuilds it intosite/): a product home
page, and every guide as pages with a menu, previous and next, and On this page, in light and dark themes and at
a phone's width. It is built from the guides indocs/, so the two never differ, and checks every link, anchor,
and screenshot. - Screenshots of every page, 40 scenes in both themes, captured from a demo of their own by
node docs/capture/capture.mjsdriving headless Chrome. - New guides: how Pinax sees storage (
docs/CONCEPTS.md), a user guide (docs/USER-GUIDE.md), an
administration guide (docs/ADMINISTRATION.md), every command (docs/CLI.md), troubleshooting
(docs/TROUBLESHOOTING.md), and a map of them all (docs/README.md), so a new administrator has everything to
install, configure, and operate Pinax.
Changed
- The person's address behind a proxy. Requests from
PINAX_TRUSTED_PROXIESare logged and audited, and
sign-in sessions recorded, with the person's own address fromX-Forwarded-For, worked out by Pinax rather
than uvicorn. - The roadmap. Operations comes next as wave 10 (0.10.0), before the production pilot (now wave 11) and reach
(now wave 12), at the maintainer's request. Reach now plans sign-in with Microsoft Entra ID in Pinax itself, with
OpenID Connect, rather than behind an authenticating proxy. - Storage charges and Costs have icons of their own (a receipt and a banknote) instead of the tag Tags has, and
Searches one of its own instead of Age report's clock.
Fixed
- Two Pinax processes opening a new SQLite catalog at the same moment could fail with "database is locked".
- The age map of a whole filesystem now marks top-level folders that are tagged, or hold tagged folders.
- The demo's Fast fills within the year again, before its scheduled expansion (120 TiB rather than 125), as the
demo guide says; since 0.7.0 its trend had slowed past it. - The deployment guide ran
pinax db upgradeandpinax db copywithout Pinax's settings; they now use the shell
function from its step 3. It also says that local sign-in behind a proxy records the person's address.
Pinax 0.9.0: action
Ninth release (wave 9, "action"): totals that count a hard-linked file once, views a person saves and shares with
their labs, and searches of a whole filesystem that run in the background, past a page's time limit. It comes before
the production pilot (now wave 10, 0.10.0), which still waits for production storage. See
pinax-spec/roadmap.md.
Upgrading from 0.8.0: indexes are now version 7; older ones still answer, counting every hard link, so run
pinax rebuild --outdated (charges for storage in hard links fall when they are counted once). The catalog gains
saved_view and search_job tables, created at start-up. New settings: PINAX_JOB_TIMEOUT (3600) and
PINAX_JOB_DAYS (7); results of searches in the background are kept under PINAX_VAR_ROOT/jobs.
Added
- Saved views. Save view on any report keeps the page as it is (the report, the folder, and the settings)
under a name, to oneself or shared with one of one's labs; My data and All data list them, with who sees each.
A view is only a page's address, so whoever opens it sees only what they may. - Searches in the background. A search of a whole filesystem on Find files can run in the background, past a
page's time limit: every match is kept, as a table and a CSV, on Searches forPINAX_JOB_DAYS(7), each search
withinPINAX_JOB_TIMEOUT(an hour), at mostPINAX_WIDE_QUERIESat once. For administrators.
Changed
- Totals count a hard-linked file once. A file with several hard links counts its size at its first link by
path; its other links are files with no size, in every total and so in charges. The age map's panel says what a
folder's extra links hold. Find files still lists every link.pinax checkstays equal tofs-inventory rollup, which it now runs on a copy of a hard-linked scan with the extra links' sizes taken out. - Index version 7 keeps each folder's extra hard links. Older indexes still answer, counting every link;
pinax rebuild --outdatedcounts them once. - The roadmap. Action comes next as wave 9 (0.9.0), before the production pilot (now wave 10) and reach (now
wave 11), since the pilot is still out of reach.
Pinax 0.8.0: folder tags
Eighth release (wave 8, "folder tags"): folders described in terms a lab and IT share. Administrators keep a list of
standard tags (a default of nine to start), labs tag their folders with them and with tags of their own, and a tag
applies to everything below its folder. Collections finds data by tag across filesystems, with its size, cost,
history, and forecast; Storage charges splits a lab's month by grant or project; and Legal hold and Keep until
keep folders out of cleanup plans. Next is the production pilot (0.9.0), when production storage is reachable. See
pinax-spec/roadmap.md.
Upgrading from 0.7.0: the catalog gains tag and folder_tag tables, created at start-up, and the default tags are
added then. Indexes are unchanged (version 6). No new settings.
Added
- Tags. Tags (for administrators) keeps the standard tags folders can have: each a flag, text, a date, or a
choice from the site's own list, applied by lab PIs and delegates or by administrators only, with one value or
more, and some protecting a folder from cleanup plans. A default list is added once: Project, Grant or award, Data
stage, Source, Data classification, IRB protocol, Shared in a repository, Keep until, and Legal hold. A tag in use
is retired rather than deleted; every change is audited. - Tagging folders. From a folder's panel on the age map, a lab's PI or delegate tags it (and so everything below
it), with the standard tags and with tags of the lab's own; the panel shows the tags a folder inherits from the
folders above it. Tiles that are or hold tagged folders carry a dot, with their tags in the tooltip and the table.
Administrators tag any folder, and fold a lab's tag into a standard one.pinax tags importtags folders in bulk
from a CSV, as a dry run unless--apply. - Collections. Find data by its tags across filesystems: the folders that have every tag asked for (Source is
cryo-EM and Data stage is raw), on their own or from a folder above, among those the person may see, with their
size, files, cold share, owner, tags, and monthly cost, their history and forecast, and a CSV. A folder inside
another that matches is counted with it. - Charges by tag. Storage charges splits each lab's month by a tag's values, by grant if its folders have one:
each value's share of the lab's charge is its folders' share of the lab's average size, a folder inside another
tagged one counting for its own value, and the rest is shown as not tagged; with a CSV. - Protected from cleanup. A folder on Legal hold, or tagged Keep until a day not yet past, cannot be added to
a cleanup plan, nor can anything inside it or any folder that holds it; a folder planned before it was protected
is flagged, and suggestions leave protected folders out.
Pinax 0.7.0: cleanup plans
Seventh release (wave 7, "cleanup plans"): what a lab could free, and what it would save. From a folder's panel on
the age map, a lab's PI or delegate marks folders to delete, move to cheaper storage, or compress, and sees the space
it would free and how much the lab's monthly charge would fall. Pinax suggests folders worth adding, and later scans
show what was done, following a folder that was renamed rather than removed by its inode. Pinax itself deletes,
moves, and compresses nothing. Next are folder tags (0.8.0). See pinax-spec/roadmap.md.
Upgrading from 0.6.0: indexes are now version 6 (each directory's inode, and workflow working folders); older ones
still answer, but their marked folders are found by path only and they offer no workflow folders, so run
pinax rebuild --outdated. The catalog gains marked_folder, marked_folder_stat, and cleanup_item tables,
created at start-up. No new settings.
Added
- Marked folders, followed across scans. Folders marked for a cleanup plan (and, later, a tag) are kept by
path with their directory's inode. Each scan finds them at their path, or at another path with the same inode
(a rename or a move, offered to a person to confirm, since inodes are reused), or gone, and records their
totals, so their history outlasts the snapshots' indexes. - Cleanup plans. From a folder's panel on the age map, a lab's PI or delegate (or an administrator) adds it to
the lab's cleanup plan: to delete it, move it to another filesystem, or compress it, with a note. Cleanup plans
lists each lab's folders with what to do, their size when added and now, and who added them; a folder that moved
is offered to confirm. Pinax deletes, moves, and compresses nothing: a plan records what the lab means to do. - What a plan saves. Each plan shows the space it would free and the fall in the lab's monthly charge, at
today's prices and free tiers, for each folder and filesystem and in all, with the yearly figure. A move is
charged on the filesystem it goes to; compression is estimated from the types of file in the folder; a lab within
its free tier is told that freeing storage saves nothing. - Progress from scans. Each scan after a folder was added shows whether it is done (gone, or compressed by
most of its estimate), partly done (smaller), moved (nothing freed), or still to do. Cleanup plans lists what
is to do and what is done, by which scan, with the space freed so far and what it saves a month, and each plan
downloads as CSV. - Suggestions for a plan. Cleanup plans suggests folders to add, each with what it would free and save a
month: workflow working folders and package caches (Nextflowwork/, Snakemake.snakemake/, Cromwell
executions, condapkgs/, Singularity and Apptainer caches, found when the index is built), the largest cold
folders, and the folders with the most uncompressed sequencing data. Add opens the dialog with the suggested
action chosen. - Every lab's plan, for administrators. Cleanup plans without a lab chosen shows what every plan would free
and save, what is done, totals by filesystem, the largest folders still to do, and each lab's plan, with one CSV
of every folder for the storage team.
Changed
- Index version 6 keeps each directory's device and inode. Older indexes still answer, but their marked folders
are found by path only;pinax rebuild --outdatedadds the inodes.
Pinax 0.6.0: where storage is heading
Sixth release (wave 6, "where storage is heading"): forecasts. Every history carries a forecast of its size for
the next twelve months, the trend of its last six months of scans with a range and a backtest; administrators see
how much each filesystem holds and the month it fills at its trend; and lab members see what their labs will pay
over the next twelve months. Also in this release: labs and departments managed in the app, guidance for operating
Pinax, and time limits and new and removed files recorded at ingest, for filesystems of two billion files. Next
are cleanup plans (0.7.0). See pinax-spec/roadmap.md.
Upgrading from 0.5.0: indexes are now version 5; older ones still answer, comparing files when asked, and
pinax rebuild --outdated adds the new and removed files to them. The catalog gains a capacity table, created at
start-up. pinax scan writes pinax.json (what the storage reports) beside each new scan's manifest; scans made
before, or with fs-inventory directly, have none, so set capacities on Capacity. New settings:
PINAX_QUERY_TIMEOUT (180), PINAX_WIDE_QUERIES (2), and PINAX_FILL_WARNING_MONTHS (12). Behind oauth2-proxy,
set upstream_timeout above the query timeout (deploy/oauth2-proxy/pinax.cfg has 5 minutes).
Added
- Forecasts of size. Every history comes with where the place is heading over the next twelve months: a
straight-line trend through the last six months of scans (the median of the slopes between pairs of scans, so
one odd scan barely moves it), carried forward from the latest scan, with a range and a backtest (what the same
method forecast three months earlier, against the size now). A step, such as a cleanup, starts the trend again;
a forecast needs six scans over eight weeks. History draws it after the last scan, as a dashed line over
the shaded range, with In a year beside the other figures, a table of the months ahead, and the reason when
there is none; the history CSV adds the months ahead (kindisscanorforecast)./api/historyreturns it
asforecast. - Capacity, and when each filesystem fills. Capacity (for administrators) shows how much each filesystem
holds, how much is used, its growth per month, and the month it fills at its trend, with the earliest and
latest within the range.pinax scanrecords what the storage reports for the filesystem (statvfs, in
pinax.jsonbeside the scan's manifest), and an administrator can set the capacity from a day on instead,
including an expansion scheduled ahead (audited). Use is measured by the storage's own figure where scans have
it, else space on disk. The overview shows each filesystem's share used and when it fills, and flags one that
fills withinPINAX_FILL_WARNING_MONTHS(12); a filesystem's History draws its capacity and shows Fills. - What labs will pay. Storage charges shows each lab's charges for the next twelve months, at the trend of
the folders it owns now on each filesystem, with the prices and free tiers as scheduled (a price change already
set applies from its day), and a range; a filesystem with no trend yet is counted at the lab's latest size, and
says why. Chargeback adds them up for every lab, after showing the month./api/chargesreturns them as
ahead, and/api/admin/costs/aheadthe totals. - Labs and departments in the app. People and access adds a lab or department (Add lab or department: a
slug, a name, its kind, division, and research area), and each one's page changes its details, deactivates it
(its members stop seeing its folders; its members and folders are kept, and its folders are still charged to
it), and reactivates it, with its members, folders, and recent changes. Every change is audited as the import's
are (lab.created,lab.updated, andlab.deactivated,lab.reactivated), and slugs follow the import's
rules. Changing a lab's kind asks first, since its free tier for past months changes too. - Time limits for requests. A request stops after
PINAX_QUERY_TIMEOUTseconds (180 by default) and says
what to narrow, and stops as soon as the browser leaves the page: the interface cancels a page's reads when
another page opens, and Pinax interrupts their queries, so an abandoned search of a whole filesystem no longer
keeps the server busy. At mostPINAX_WIDE_QUERIES(2) file-level queries of a whole filesystem run at once;
others wait their turn.deploy/oauth2-proxy/pinax.cfgwaits five minutes for Pinax (upstream_timeout,
oauth2-proxy 7.3 or later) instead of oauth2-proxy's 30 seconds. - New and removed files recorded at ingest. Each index keeps every file new or removed since the previous
scan (file_changes), so What changed lists them from a range of it: 15 ms for a million-file filesystem,
against 0.4 s to compare the two scans' files. Against an older scan the files are still compared, in batches of
groups of top-level folders, so memory is bounded by a group rather than the filesystem. - Sizing for two billion files in
docs/DEPLOYMENT.md: disk, memory, the room a build needs, what stays fast,
and what to measure on the first production scan. - Guides for the demo and for real data.
docs/DEMO.mdhas how to run the demo, who is who, its six months
and prices, and the walk-through, which used to be in the README;docs/SETUP.mdis new, on running Pinax on
your own data. The README is shorter and links to both.
Changed
- Index version 5. Older indexes still answer, comparing files when asked;
pinax rebuild --outdatedadds
the new and removed files to them. - Find files shows its results before counting them. The count of all matches is a second pass over the
files, so it is asked for separately (/api/files/count, ortotal=falseon/api/files), and only when the
page is full. pinax seedruns only whenPINAX_ENVIRONMENT=demo. It deletes the catalog and indexes in
PINAX_VAR_ROOT, and was refused only inprod, so adevsetup with real data could be wiped by mistake.
The default environment isdemo, so the demo is unchanged.- Guidance for operating Pinax.
docs/ARCHITECTURE.mdsays what Pinax keeps (the catalog, the indexes, and
the scans), what each is for, what can be made again, and which to back up, and why the catalog moves to
PostgreSQL in wave 10 (it said PostgreSQL was the production database; production uses SQLite until then).
docs/DEPLOYMENT.mdadds which scans to keep (Pinax never deletes them), disk totals, a safe online backup and
restore of the catalog, reading the whole audit log, and what support staff need to know about charges and
statements. The scan-size figure is the measured one, about 40 bytes per entry, everywhere. - The roadmap. Forecasts (0.6.0), cleanup plans (0.7.0), and folder tags (0.8.0) come next, since they need
no production storage; the production pilot is now wave 9 (0.9.0), and reach, action, and hardening follow it.
Ideas that need a system Pinax has no access to, such as digests by email, Slack or Teams messages, and quotas
from the storage system, are kept in a parking lot rather than planned.
Pinax 0.5.0: costs and chargeback
Fifth release (wave 5, "costs and chargeback"): what storage costs each lab and department. Administrators set a
price per month for each filesystem and free tiers for labs and departments, from a day on; each month is charged
on the time-weighted average of its scans, like a utility bill. Lab members see what their labs pay and how each
charge is worked out, and finance gets a monthly statement as CSV. The demo has prices, so its six months make six
months of charges. Next is the production pilot (0.6.0), when production storage is reachable. See
pinax-spec/roadmap.md.
Upgrading from 0.4.0: the catalog gains price, free_tier, and folder_owner tables, created at start-up, so an
existing catalog keeps working; nothing is charged until a price is set. Ownership history starts with the upgrade:
a folder that changed owner before it is charged to its current owner for past months. PINAX_CURRENCY sets the
currency (USD by default). Indexes are unchanged (version 4).
Added
- Prices and free tiers (wave 5, slice 1). Costs, for administrators, sets what each filesystem's storage
costs per month, per GB, GiB, TB, or TiB, from a day on (earlier prices are kept, and future ones scheduled), and
how much is free: one free tier for every lab and one for every department (which may be none), with exceptions
for particular labs. Every change is audited.PINAX_CURRENCYsets the currency (USD by default). - Monthly charges (wave 5, slice 2). Each lab's and department's charge on each filesystem for a month, from
folder history: the time-weighted average of its folders' sizes (each scan holds until the next), less its free
tier, at the price in effect, worked out exactly and rounded to the cent once per lab and filesystem. The month in
progress is an estimate to its end. Storage no one owns is unbilled. For administrators at
/api/admin/costs/charges?month=YYYY-MM. - Storage charges (wave 5, slice 3). A page for everyone in a lab or department: what each of their labs pays
for a month, by filesystem and folder, with each charge worked out in words (average size, less the free tier,
at the price, for the days it applied), and each lab's past months. This month's charge is an estimate to the
month's end and shows on My data. Administrators may look at any lab's. - Chargeback (wave 5, slice 4). For administrators: every lab's and department's charges for a month, totals
by filesystem with the prices that applied, and the storage no one owns, with a CSV statement for finance (a row
for each lab or department on each filesystem, marked final or estimate). Monthly charges are faster: about
25 ms for every lab for a month on a year of weekly scans of 2,000 folders (bench/bench_charges.py). - Ownership history. Pinax now records each change of a top-level folder's owner (in the app or by
pinax import), so past months are charged to the owners they had. The newfolder_ownertable is created at
start-up; folders that have never changed need no history. - Demo prices.
pinax seedsets prices and free tiers: Fast at $25 per TB a month and $22 from the 16th of
last month, a terabyte free for every lab and none for departments, the Lindqvist Lab's own 5 TB from the 10th of
last month, and Secure at $40 per TiB with nothing free. The README demo script walks through the charges.