diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 2cfb66d..b9ff901 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -23,12 +23,14 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # On a pull request github.ref_name is "/merge", which is not a + # valid image tag: the build is tagged pr- there (never pushed). - uses: docker/build-push-action@v6 with: context: . push: ${{ github.event_name == 'push' }} tags: | - ghcr.io/stackblaze/stackblaze-docs:${{ github.ref_name }} + ghcr.io/stackblaze/stackblaze-docs:${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref_name }} ghcr.io/stackblaze/stackblaze-docs:sha-${{ github.sha }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/content/docs/ai/models.mdx b/content/docs/ai/models.mdx index b2cbf68..03d1edd 100644 --- a/content/docs/ai/models.mdx +++ b/content/docs/ai/models.mdx @@ -152,11 +152,10 @@ The same goes for a model StackBlaze put to sleep because it couldn't start (see ## Plans and GPU credit -Every plan includes AI models. Your plan sets how many you can have per workspace, how many copies (**GPUs**) each can run, and how big a machine it can rent: +Every paid plan includes AI models; the Free Trial and the Free plan have none. Your plan sets how many you can have per workspace, how many copies (**GPUs**) each can run, and how big a machine it can rent: | Plan | AI models | Copies of a model | GPUs in one machine | | --- | --- | --- | --- | -| Free Trial | 3 | 1 | 1 | | Developer | 3 | 1 | 1 | | Pro | 3 | 2 | 4 | | Business | 10 | 6 | 8 | diff --git a/content/docs/billing/plans.mdx b/content/docs/billing/plans.mdx index b729ff5..46427c6 100644 --- a/content/docs/billing/plans.mdx +++ b/content/docs/billing/plans.mdx @@ -1,6 +1,6 @@ --- title: Plans -description: Compare the plans, upgrade, downgrade, cancel a scheduled downgrade, the Free Trial, and cancel your subscription. +description: Compare the plans, the Free plan and the Free Trial, upgrade, downgrade, cancel a scheduled downgrade, and cancel your subscription. --- Your organization's plan sets its included usage and limits. You change it on [Billing](/billing), under **Administration** in the sidebar. Upgrades apply right away; downgrades and cancellations at the end of the billing period. @@ -9,7 +9,7 @@ Your organization's plan sets its included usage and limits. You change it on [B The **Current plan** card shows the plan's name and price, for example **Business** **$499/mo**, and when the included usage starts again: "Included usage resets on Dec 11 (17 days left)". -From here you can open **Change plan** or **Cancel subscription**. On the Free Trial the button reads **Upgrade**, or **Choose a plan** once the trial has expired. +From here you can open **Change plan** or **Cancel subscription**. On the Free Trial the button reads **Upgrade**. On the Free plan without a card it reads **Add a card** (see [The Free plan](#the-free-plan)). While a downgrade is scheduled, the card says so, for example "Downgrading to Pro on December 1, 2026.", with **Cancel** next to it (see [Cancel a scheduled downgrade](#cancel-a-scheduled-downgrade)). After you cancel the subscription, it says "Your subscription ends on" the date and "You keep" the plan "until then.", with **Keep my plan**. @@ -42,7 +42,7 @@ When it's done, the window shows **Plan updated** and "You're on" the new plan, ### From the Free Trial -On the Free Trial, click **Upgrade** (or **Choose a plan** after the trial has ended). The window reads "Choose a paid plan to unlock more templates and deploy heavier apps." There is no saved card yet, so you enter one in the window, then click **Subscribe for** the price, for example **Subscribe for $10/month**, or **Subscribe for $96/year** on **Annual**. Choosing a plan brings stopped services back. +On the Free Trial, click **Upgrade**. The window reads "Choose a paid plan to unlock more templates and deploy heavier apps." There is no saved card yet, so you enter one in the window, then click **Subscribe for** the price, for example **Subscribe for $10/month**, or **Subscribe for $96/year** on **Annual**. Choosing a plan brings stopped services back. ### When a feature needs a higher plan @@ -70,7 +70,7 @@ These are the self-serve plans and what **What's included:** lists for each. Every plan includes custom domains with automatic SSL and unlimited free build minutes. The plan price comes back as included usage: what your apps use is counted against it first (see [Usage](/billing/usage#usage-breakdown)). -Every plan, the Free Trial included, can add any add-on and deploy any template the platform offers. Plans differ only in the limits on this page. A template that needs more than your plan allows, such as more services or databases, or a bigger service than **Size per service**, is refused before anything is created. +Every plan, the Free plan and the Free Trial included, can add any add-on and deploy any template the platform offers. Plans differ only in the limits on this page. A template that needs more than your plan allows, such as more services or databases, or a bigger service than **Size per service**, is refused before anything is created. The last three rows are the limits the [Plan limits](/billing/usage#plan-limits) card on Usage counts against. @@ -80,25 +80,25 @@ The last three rows are the limits the [Plan limits](/billing/usage#plan-limits) Each plan also sets these limits: -| | Free Trial | Developer | Pro | Business | -| --- | --- | --- | --- | --- | -| Builds at the same time | 1 | 2 | 5 | 10 | -| Build timeout | 10 minutes | 30 minutes | 60 minutes | 90 minutes | -| Log retention | 1 day | 3 days | 14 days | 30 days | -| Connections per database | 100 | 200 | 400 | 500 | -| Connections per Valkey database | 50 | 200 | 1,000 | 2,000 | -| Database backups | No | Yes | Yes | Yes | -| Highly available databases | No | No | Yes | Yes | -| Preview environments | No | No | Yes | Yes | -| AI agents | No | Yes | Yes | Yes | -| AI models | No | 3 | 3 | 10 | -| Single sign-on, tracing, security scans, advanced networking | No | No | No | Yes | +| | Free Trial | Free | Developer | Pro | Business | +| --- | --- | --- | --- | --- | --- | +| Builds at the same time | 1 | 1 | 2 | 5 | 10 | +| Build timeout | 10 minutes | 10 minutes | 30 minutes | 60 minutes | 90 minutes | +| Log retention | 1 day | 1 day | 3 days | 14 days | 30 days | +| Connections per database | 100 | 100 | 200 | 400 | 500 | +| Connections per Valkey database | 50 | 50 | 200 | 1,000 | 2,000 | +| Database backups | No | No | Yes | Yes | Yes | +| Highly available databases | No | No | No | Yes | Yes | +| Preview environments | No | No | No | Yes | Yes | +| AI agents | No | No | Yes | Yes | Yes | +| AI models | No | No | 3 | 3 | 10 | +| Single sign-on, tracing, security scans, advanced networking | No | No | No | No | Yes | A build over the limit isn't queued: it's refused, and you can start it again once a build finishes (see [Deploy from CI](/cli/ci#build-limits)). ## The Free Trial -A new account's first organization can start on the **Free trial**: "7 days or $3 of usage · no credit card". The trial is once per account; another organization needs a paid plan from the start. +A new account's first organization can start on the **Free trial**: 30 days or $5 of usage, whichever comes first, with no credit card. The trial is once per account; another organization needs a paid plan from the start. During the trial, the organization has: @@ -111,12 +111,89 @@ During the trial, the organization has: | Instances per service | 1 | | Databases | 2, each with a fixed 1 GiB of storage | | Valkey memory | 25 MiB | +| Volumes | 1, up to 5 GB | | Emails | 100 a day | | Outbound data included | 5 GB | | Team members | 1 | | Regions | 1 | -The **Current plan** card shows **Free trial** and "Pick a plan before" the end date "to keep services online", with **Upgrade**. When the 7 days are over or the $3 is used up, whichever comes first, the services are stopped and new deploys are refused. The card then shows **Trial expired** and **Choose a plan**. Apps and data are kept for 30 days, then deleted unless you choose a plan; choosing one brings the services back. +The **Current plan** card shows **Free trial** and what happens when it ends, for example "On Dec 26 your workspace moves to the Free plan: $1 of usage every month, no card needed. Databases need a card on file.", with **Upgrade**. + +When the 30 days are over or the $5 is used up, the organization moves to the [Free plan](#the-free-plan) by itself. Your apps keep running and nothing is deleted, except that [databases need a card](#databases-need-a-card). You get an email that says so. You can also choose a paid plan at any time with **Upgrade**. + +## The Free plan + +The **Free** plan has no monthly fee and no end date. It is where an organization lands after the Free Trial, and it is meant for side projects. What it includes depends on whether there is a card on file: + +| | Free, no card | Free, card on file | +| --- | --- | --- | +| Price | $0 | $0 | +| Included usage | $1 every month | $5 every month | +| When the included usage is used up | Your apps pause until the next month. Nothing is charged | Your apps keep running. Only the usage above $5 is charged | +| Databases | None: a database needs a card | 2, each with a fixed 1 GiB of storage | +| Volumes | 1, up to 5 GB | 1, up to 5 GB | +| Size per service | Up to 0.5 vCPU · 1 GB RAM | The same | +| Projects | 1 | 1 | +| Services per project | 3 | 3 | +| Environments per project | 1 | 1 | +| Instances per service | 1 | 1 | +| Valkey memory | n/a | 25 MiB | +| Emails | 100 a day | 100 a day | +| Team members | 1 | 1 | +| Regions | 1 | 1 | + +### Without a card + +- **$1 of usage every month, at no charge.** Your usage is counted against it first, at the standard rates (see [Usage](/billing/usage#usage-breakdown)). +- **When the $1 is used up, your apps pause.** They start again by themselves at the start of the next month. Nothing is ever charged, because there is no card to charge. +- **Your apps and volumes are kept** while they are paused. + +The **Current plan** card shows **Free** and reads "$1 of usage every month, no card. Your apps pause when it is used and start again next month. Add a card for $5 every month and to run databases." The button is **Add a card**. + +### Databases need a card + +A database can't run on Free without a card. This covers every database kind, Key Value included. + +| When | What happens to a database | +| --- | --- | +| During the Free Trial | It runs | +| The trial ends and there is no card | It is stopped. Its data is kept for 30 days. No new database can be created | +| You add a card within the 30 days | It starts again with its data | +| 30 days pass without a card | It is deleted with its data. It can't be restored | + +You get an email when a database is stopped, another one 3 days before it is deleted, one when it is deleted, and one when it starts again after you add a card. The email that tells you the trial has ended says it too. + +Creating a database without a card is refused with "A database needs a credit card on file. Add a card or choose a paid plan to create one." + +PostgreSQL and MariaDB are stopped as soon as the trial ends. The other database kinds keep running until the 30 days are over and are then deleted the same way, so add a card before that date to keep them. + +### With a card on file + +- **Up to $5 of usage in a month: nothing.** Your usage is counted against the included $5 first, the same way a paid plan's included usage works (see [Usage](/billing/usage#usage-breakdown)). +- **Above $5: only the difference.** Your services keep running, and only the usage above $5 is charged to your card, at the standard rates. If you use $7.40 in a month, you pay $2.40. +- **Every month.** The $5 starts again with each monthly period. What you don't use doesn't carry over. + +You get an email the first time you go past the included $5 in a month, before anything is invoiced. + +To stop at $5 instead of paying for more, set **Spend limit** on [Usage](/billing/usage) to **Off**: your apps are then paused once the included usage is used up, until the next period. **Fixed** sets the most you can be charged in a month. + +### Add a card + +On Free without a card, click **Add a card** on the **Current plan** card. The [Change plan](#change-plan) window opens on **Free** with the description "Card on file: $5 of usage every month"; the paid plans are listed with it. Instead of a payment, the window asks for a card and says what it is for: "Free includes $5 of usage every month, at no charge." and "If your workspace uses more, it keeps running and only the usage above $5 is charged to this card, at the standard rates." Nothing is charged when you add it. + +One card can hold one Free organization, and one account can own one. A second one is refused with "This card is already used for another workspace on the Free plan. Use a different card, or choose a paid plan." or "You already have a workspace on the Free plan. Choose a paid plan for this one." + +You don't have to use this window. Any card that becomes the default payment method of your organization moves it to Free with a card right away: one added in the billing portal, or while buying credit. Adding a card means usage above the included $5 is charged to it. + +### Remove a card + +On [Billing](/billing), click **Remove card** next to **Update card**. The confirmation, **Remove your card?**, says "Your workspace moves to the Free plan without a card now: $1 of usage every month, nothing charged. Its databases are stopped and kept for 30 days; add a card in that time to start them again." Click **Remove card** to confirm, or **Keep my card**. + +The organization moves to Free without a card at once, and anything used above the included usage so far is invoiced. **Remove card** isn't shown on a paid plan, because the plan is billed to the card: cancel the plan first. + +If you add a card during the Free Trial, the organization moves to Free with a card when the trial ends, and its databases keep running. + +Moving from a paid plan to Free is a [downgrade](#downgrade): it takes effect at the end of the period you paid for. ## Downgrade @@ -147,7 +224,9 @@ Click **Cancel subscription** under **Change plan** on [Billing](/billing). The -You keep your plan and everything running until the end of the period you already paid for, and you aren't charged again. After that your services are paused. Their apps and data are kept for 30 days, then deleted unless you choose a plan. Your account stays. +You keep your plan and everything running until the end of the period you already paid for, and you aren't charged again. After that your organization moves to the [Free plan](#the-free-plan) and keeps running: $1 of usage every month, or $5 every month if a card is on file. [Databases need a card](#databases-need-a-card). Your account stays. + +This is for a subscription you cancel yourself. If a subscription ends because a payment failed, your services are paused until you choose a plan, and their apps and data are kept for 30 days. Click **Keep my plan** to close it without cancelling. After you cancel, **Keep my plan** stays on the **Current plan** card until the end date, so you can undo it. diff --git a/content/docs/data/databases/backups.mdx b/content/docs/data/databases/backups.mdx index 92797f2..529f815 100644 --- a/content/docs/data/databases/backups.mdx +++ b/content/docs/data/databases/backups.mdx @@ -177,7 +177,7 @@ Open the point and click **Delete recovery point**. The deletion is staged: **Co ## Plan limits - **Your plan caps how long backups are kept**: 7 days on Developer, 14 on Pro and 30 on Business (see [Billing](/billing/plans#the-plans)). A longer retention you choose is saved as your plan's maximum. -- **The Free Trial has no backups.** Turning a schedule on, or **Back up now**, is refused with "Database backups are not included in the … plan. Upgrade to turn backups on." +- **The Free Trial and the Free plan have no backups.** Turning a schedule on, or **Back up now**, is refused with "Database backups are not included in the … plan. Upgrade to turn backups on." - Backups are never turned on for you. Nothing is backed up until you turn on a [schedule](/data/environment-backups#turn-on-a-schedule) or click **Back up now**. Restores from the dashboard and the CLI always create a copy. They never write over a running database. diff --git a/content/docs/data/volumes/index.mdx b/content/docs/data/volumes/index.mdx index c9b0fa7..195174c 100644 --- a/content/docs/data/volumes/index.mdx +++ b/content/docs/data/volumes/index.mdx @@ -11,6 +11,8 @@ A volume is a shared filesystem: if the service runs more than one instance, eve Only write to the same files from several instances if your app is built for it. A file database such as SQLite on a volume should run with one instance. +Your plan can limit how many volumes your organization has and how big one can be: the Free Trial and the Free plan (with or without a card) have 1 volume of up to 5 GB, the Developer plan 5 volumes of up to 100 GB each, the Pro plan 25 volumes and the Business plan 100 volumes, with no size limit on those two (see [Plans](/billing/plans#the-free-plan)). A volume over the limit is refused when you deploy, with "Your Free plan includes 1 volume. Upgrade to add more." or "A volume can be up to 5 GB on the Free plan; this one asks for 10 GB. Upgrade for larger volumes." Volumes you already have are never removed or shrunk. + ## Add a volume @@ -27,7 +29,7 @@ Click **Add volume**. Each volume has: -The sizes go from **5 GB** to **1 TB**: 5, 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500 and 750 GB, and 1 TB. +The sizes go from **5 GB** to **1 TB**: 5, 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500 and 750 GB, and 1 TB. On a plan with a largest volume size, the menu stops there: **5 GB** on the Free Trial and on the Free plan, **100 GB** on the Developer plan. diff --git a/content/docs/how-it-works.mdx b/content/docs/how-it-works.mdx index 02df361..fdfb370 100644 --- a/content/docs/how-it-works.mdx +++ b/content/docs/how-it-works.mdx @@ -108,7 +108,7 @@ Pushes that arrive close together are built once, from the newest commit. A new ## Builds at the same time -Each plan runs a set number of builds at once across the whole organization: 1 on the Free Trial, 2 on Developer, 5 on Pro and 10 on Business. A build that would go over it is not queued. It's refused, and nothing is built: +Each plan runs a set number of builds at once across the whole organization: 1 on the Free Trial and the Free plan, 2 on Developer, 5 on Pro and 10 on Business. A build that would go over it is not queued. It's refused, and nothing is built: - A push that hits the limit is listed on the service's **Deployment** tab as **Skipped: build limit**, with an **Upgrade** button, and the bell gets "Build skipped for *service*: …". The running version keeps serving. - A build you start yourself (from the dashboard, the CLI or the API) fails with "Your plan runs *N* builds at a time and … running. Try again when it finishes, or upgrade to build more at once." The API answers `402` with the code `CONCURRENT_BUILD_LIMIT`.