Maintenance and scaling
Announce work with a banner or read-only mode, drain nodes and scale the roles safely, and add or remove object-store connections.
On this page
Banner, maintenance mode and time format
- Who
- holders of
settings:readread it; saving needssettings:write - Where
- Admin area › Settings › General
Each section has its own Save changes, and each change is audited. Banner and time format reach every screen within a minute; every replica enforces the mode within a poll of the change log.
| Section | Does |
|---|---|
| Banner | Show the banner with a Severity, an optional title and a plain-text Banner message at the top of every screen and the sign-in page. Only https links written [text](https://…) become links |
| Maintenance mode | Read-only maintenance mode refuses every write of every user with 503, your Maintenance message and Retry after (seconds). Remote repositories keep filling their cache decides whether remotes still fetch |
| Time format | The Default time format for users who chose none, for visitors, and for every Bastion's pages |
In read-only mode downloads, sign-in, tokens, sessions, the CI token exchange and the switch itself keep working. The scheduler starts no garbage collection, OCI sweep, invalidation fold or cleanup policy; running ones finish. The banner cannot change while the mode is on. A backup taken in read-only mode restores in read-only mode. The section Visibility is in Permissions.
Shutdown and node drains
On SIGTERM a replica shuts down within its grace period (terminationGracePeriodSeconds: 120 s for api and packages, 300 s for
worker):
/readyzanswers503at once and the replica is marked draining.apiandpackageskeep serving forhealth.shutdown_drain_delay, withConnection: close, so the ingress removes them.- The listeners close; requests in flight finish until
server.shutdown_timeout, then are cut (quader_http_transfers_cut_total). - A worker stops claiming jobs; shortly before the timeout it returns the running ones to the queue without spending an attempt, and another worker continues them from their last checkpoint.
- Buffered audit events are written and the replica's row is deleted.
A second signal ends the process at once. The chart refuses a grace period shorter than the drain delay plus 15 s. If clients see connection errors during drains, raise the drain delay above your ingress controller's endpoint removal time.
The chart's PodDisruptionBudgets allow one disruption per role. A drain keeps every role serving only while it has two ready replicas on different nodes: check Not drain-safe on System status first.
Scale the roles
| Role | Scale it when | Setting |
|---|---|---|
api |
the UI or the management API is slow, or answers 503 server_busy |
api.replicaCount, api.resources.limits.memory |
packages |
package clients see 503 server_busy or latency grows |
packages.replicaCount, packages.resources.limits.memory |
worker |
quader_jobs_queued keeps growing |
worker.replicaCount, config.jobs.workers (concurrent jobs per queue) |
A pod admits as many concurrent requests as its memory limit allows, so the chart requires one. With highAvailability.enforce: true
every role needs at least two replicas. Scale with helm upgrade, not kubectl scale: the migration Job then checks the connections
all replicas may open against PostgreSQL's max_connections and stops an upgrade that does not fit. Give the primary about 8 MiB for
each connection of that budget beside its shared_buffers.
Object-store connections
A connection is one element of config.storage.connections (one to eight): one bucket and prefix on an S3-compatible store. Every blob
lives on every connection that is not draining; the task storage-reconcile makes the copies every minute. Bucket, prefix and
encrypted are fixed once a connection holds a copy. Storage shows each connection's state.
| To | Do | The connection shows |
|---|---|---|
| Add one | Add an element with a new id and its credentials, and roll out; list the nearest store first, the order of uploads and reads |
Filling, then Active |
| Take one out | Set drain: true and roll out; one element must stay without it. When it is Drained, remove the element in a later rollout |
Draining, Drained |
| Move to another bucket | Add the new location, wait until it is Active, then drain the old one, in two rollouts | — |
| Recover one removed undrained | Put the element back. If the store is gone for good, quader admin storage forget-connection <id> marks what only it held missing |
Detached |
An id is never used again. quader admin storage verify asks every connection for the object of every copy.
Leave a provider
For an encrypted connection, quader admin storage keys destroy makes what the provider still holds unreadable to everyone. The steps:
- Drain the connection until it is Drained, then remove its element and roll out.
- Run
quader admin storage keys destroy --connection <id>, a dry run: it names what still holds the keys. Delete the retained backups it names (quader backup delete <id>), or wait until they age out. - Run it again with the
--confirmvalue it printed. - Destroy your older exports of the storage keys, empty the bucket at the provider, and export the storage keys again.
It exits 5 while a replica configures the connection, while it holds a copy or queue row, or while a retained backup holds objects
under its keys. The destruction cannot be undone, and a restore to before it destroys the keys again.
When a dependency is unavailable
| Dependency | What happens |
|---|---|
| Valkey | Nothing fails and replicas stay ready, degraded: fetches collapse per replica, rate limits fall back to a per-replica share, changes travel by the change log |
| PostgreSQL | An outage within health.database_outage_grace is degraded; a longer one makes every replica unready. Nothing is served without it |
| Object store | Uploads and reads go to the next connection that answers; when none does, stored content answers 503 and everything else works |
When objects are lost behind Quader's back (a lifecycle rule, a restore older than storage.gc.grace_period), a read marks the copy and
reads another connection's. Only a blob no connection holds is marked missing and fires QuaderBlobMissing: a remote repository
fetches it again from its upstream, a local one answers 503 content_unavailable and looks again every 30 seconds. A gateway that
answers 404 in front of the store looks the same: check it first.
Each replica caches sessions, tokens, permissions and package documents in memory; changes reach the other replicas through the change
log within cluster.epoch_poll_interval. No cache needs clearing by hand.