Hosting · Tiers

Tiers

A tier is a named set of limits, such as free or pro. Each user can be on one tier. This page covers how to create tiers, assign them, and change them.

A new server has no tiers. Every user then gets the server limits from /admin/limits. You do not need Stripe to use tiers; see Billing if you want users to pay for one.

Create tiers

Tiers are managed in /admin/billing, under Billing tiers.

  1. Create a tier with the ID free and leave Paid plan unticked. This tier is required. Users with no tier, or with a tier ID that no longer exists, get free.
  2. Add your other tiers. Tick Paid plan for tiers that users buy.
  3. For each tier, fill in the limits you want to change and leave the rest blank.
  4. Tick I understand that tier changes affect user quotas and retention and click Save tier.

To start from the built-in tiers, click Load the built-in free/pro catalog. This replaces the whole list with these two tiers, which you can then edit:

Tier Paid Change-log storage Blob storage Apps Blob uploads
free No 50 MB 1 GB 10 Server default
pro Yes 1 GB 100 GB 100 300 per minute

Tier fields

Field Notes
Tier ID Lowercase letters, digits and hyphens, starting with a letter, up to 64 characters. It cannot be changed later.
Label The name users see, up to 100 characters.
Paid plan Marks a tier that users buy. It can be bought once it has a price in Tier prices. See Billing.
Limits The same fields as /admin/limits, except the orphaned blob grace period.
Per-service monthly bundle allowances One service=number per line. See Limits.
Rate limits The same buckets as /admin/limits, except auth.

For limits and rate limits:

  • A blank field uses the server value from /admin/limits.
  • 0 is a real value, not "unset". It means the same as it does in the server limits. For most limits that is "no limit".
  • Rate-limit windows and counts must be whole numbers above zero.

How a user's limits are worked out

The server starts with the server limits, applies the user's tier on top, then the user's own overrides, then any add-on blocks they bought. See Limits.

Assign a tier to a user

There are two ways:

  • By hand. Open the user in /admin/users, enter the tier ID in the Tier field under Limit overrides, and save. Scripts can use PATCH /admin/users/:id/limits with { "tier": "pro" }.
  • Through Stripe. When a user buys a paid tier, the server sets it for them. See Billing.

Edit or delete a tier

  • Click Edit tier to change a tier's label, paid status and limits. Saving replaces all of the tier's settings, so a field you clear goes back to the server value.
  • To change a tier ID, create a new tier and move the users to it.
  • Open Delete on a tier's row to remove it.

Every change needs the confirmation tick, and applies right away to the users on that tier:

  • Lower quotas can block new writes. They do not delete data.
  • A shorter history retention can delete old change history for good at the next maintenance run.

The server refuses to remove a tier when:

  • a user is assigned to it. Move those users first.
  • it has a price in Tier prices. Clear the price first.
  • it is free and other tiers still exist.

Loading the built-in catalog follows the same rules for every tier it would remove.

Deleting a tier does not cancel Stripe subscriptions or delete Stripe prices.

To turn tiers off again, delete every tier, free last.

What tiers turn on

When at least one tier exists, two maintenance jobs become available: Storage usage snapshots and Scheduled subscription downgrades. They stop being available when the tier list is empty. No restart is needed either way.

Audit log

Each change to the tier list adds a billing_tiers_changed entry to the audit log (/admin/logs), with the list before and after. Its via value is session for a signed-in admin or admin_token for a script. Stripe secrets are never included.

See also