Sites and nodes on a deployment

The snolla tenant and snolla node commands treat a deployment as data. A site is a set of rows, and which node serves it is a row too, so adding a site, listing what runs where, and moving a site between nodes are all edits — no container to rebuild, no process to restart.

Both command groups take --dialect and --dsn: the deployment's own database, not a site's.

Provisioning a site

snolla tenant create \
  --domain shop.example.com \
  --title "Example shop" \
  --alias shop \
  --culture ru-RU \
  --node node-1 \
  --storage-provider s3 \
  --admin-email ops@example.com \
  --dialect postgres \
  --dsn "$DSN"

One call writes the site's rows, its first administrator, its theme, its store prefix and the registry facts that say which node serves it.

Flag Meaning
--domain The site's primary domain, and the idempotency key: the same domain twice is the same site, not a second one
--title The site title
--alias The platform alias — the subdomain a site is served on under the deployment's own domain
--culture The site culture, ru-RU by default
--node The logical node that serves the site, default unless named
--storage-provider s3 or local — where the site's objects live
--storage-prefix The object prefix; defaults to sites/<site-id>/
--admin-email The first administrator. The password comes from the environment, never from the command line

The site is live when it is provisioned: it has a theme, a domain row and an administrator, so a request for its primary domain is answered. A site provisioned with --alias is also recorded under <alias>.<deployment-domain>, and the host resolver serves it there.

What a deployment serves

snolla tenant list --dialect postgres --dsn "$DSN"

The answer is host → site → node, with anything the registry does not describe marked as drift — a site whose rows exist but that no registry row describes.

Command Answers
snolla tenant list The sites, their hosts and the node that serves each, plus drift
snolla tenant credentials Who still signs in with a password hash in an older format, and who cannot sign in at all (--legacy narrows to what needs a person, --site to one site)
snolla tenant limits Reads or edits the limits of one site — --requests-per-minute, --store-quota-bytes and --request-budget-per-month; 0 means unlimited. A site's node and store are not touched
snolla tenant deprovision Removes a site: its rows, links, domains and registry facts

deprovision refuses a site that is still live unless --yes is given, and --purge-store also deletes the objects the site's rows point at, verifying each key it removes. Leaving the store alone is the safe default: the rows going away does not make the pictures worthless to whoever asks for them next.

Nodes

A node is a place that serves sites. The declaration lives in the deployment's record, so reconciling is a comparison, not an intuition:

snolla node status --nodes api-1=http://api-1:3000,api-2=http://api-2:3000 \
  --dialect postgres --dsn "$DSN"
Command Does
snolla node status Probes every declared node and reports what a reconcile would do. Writes nothing
snolla node reconcile Applies the placement: moves sites off dead or undeclared nodes
Flag Meaning
--nodes The declared nodes as name=http://host:port, comma-separated
--max-tenants A ceiling on sites per node
--dry-run Plan only — the shape a first run should take on a live deployment
--loop Keep reconciling; --interval sets the pause between passes, 30 seconds by default
--json Machine-readable output, for whatever watches the deployment

--dry-run before --loop is the order that matters: a reconcile moves sites between nodes, and a plan that reads wrong costs nothing.

Related