Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/docs/addons/kafka.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Open **Messages** and turn on **Allow writes**. **Produce message** has a **Topi

### Browse messages

Under **Messages** → **Browse messages**, pick a topic. Clicking a topic's name in **Topics** opens the same view below the list. Its header shows the topic, its partition count and **RF**, plus **Total messages** in the topic, **Retention** (ours: **Cluster default**) and **Fetched**, the number of messages loaded. Ours showed `1` and `1`. The arrow goes back to the list. It has three tabs:
Under **Messages** → **Browse messages**, pick a topic. Clicking a topic's name in **Topics** opens the same view below the list. Its header shows the topic, its partition count and **RF**, plus **Total messages** in the topic, **Retention** (ours: **Cluster default**) and **Fetched**, the number of messages loaded. Ours showed `1` and `1`. **Cluster default** keeps a partition's messages for 7 days and at most 1 GiB. All partitions share the broker's 10 GiB disk, so many busy partitions can still fill it; set `retention.bytes` or `retention.ms` on a topic to keep less. The arrow goes back to the list. It has three tabs:

- **Messages**: pick **All partitions** or one partition. Choose **From beginning** or **Latest**. Set how many to fetch: **100**, **500** (the default), **1,000**, **5,000** or **10,000**. **Search key or value…** filters the rows you've fetched. **Refresh** fetches again. **JSON** and **CSV** download the fetched messages, for example `orders-messages.csv`. A bar chart shows when the fetched messages arrived. The table lists each message's **Timestamp**, **Partition**, **Offset**, **Key** and **Value**. The play button streams new messages. While it runs, the view switches to **Latest** and the button pauses the stream.
- **Partitions**: each partition's **Log end offset** (the offset the next message gets), **Leader**, **Replicas** and **ISR**. Our message went to partition `0`, so its log end offset was `1` and the other two were `0`.
Expand Down Expand Up @@ -216,6 +216,8 @@ Click an entry to open its form. **Postgres CDC (Debezium)** has three parts:

At the bottom are **Test connection**, **Cancel** and **Create connector**. **Create connector** stays off until you enter a name: "Enter a connector name." **Cancel** goes back. We didn't create a connector.

Creating a CDC source turns on what it reads on the source database: logical decoding on PostgreSQL, binary logging on MariaDB. Either one restarts that database once.

## Access

**Settings** → **Access** ("Connection details and the admin console.") shows **Bootstrap**: "In-cluster listeners for apps in this phase · plain :9092 · TLS :9093".
Expand Down
2 changes: 2 additions & 0 deletions content/docs/billing/plans.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ These are the self-serve plans and what **What's included:** lists for each.
| Team members | 1 | 5 | 20 |
| Regions | 1 | 3 | 3 |

A database's memory is capped at 24 GiB, the most one node holds, so on Business a database gets 24 GiB, not 32 GB.

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 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.
Expand Down
48 changes: 41 additions & 7 deletions content/docs/data/databases/mariadb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Connecting added these variables to the app:
| Variable | |
|---|---|
| `MYSQL_HOST`, `MYSQL_PORT` | the in-cluster address and port (`3306`) |
| `MYSQL_USER`, `MYSQL_DATABASE` | the user (`root`) and database (`app`) |
| `MYSQL_USER`, `MYSQL_DATABASE` | the user (`app`, see [below](#root)) and database (`app`) |
| `MYSQL_PASSWORD` | read from the database's secret ("Provided by add-on") |

<Screenshot id="mariadb/7-variables" alt="The app's variables with MYSQL_HOST to MYSQL_DATABASE" />
Expand Down Expand Up @@ -80,14 +80,48 @@ On our database:

```text
> SHOW VARIABLES WHERE Variable_name IN ('character_set_server','collation_server','binlog_format','log_bin');
binlog_format ROW
character_set_server latin1
collation_server latin1_swedish_ci
log_bin ON
binlog_format MIXED
character_set_server utf8mb4
collation_server utf8mb4_uca1400_ai_ci
log_bin OFF
```

- The server's default character set is `latin1`. For full Unicode (including emoji), create your databases and tables with `CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci`, or set it in your app's connection.
- Binary logging is on, in `ROW` format with full row images. A change-data-capture connector, such as the [Kafka](/addons/kafka) MySQL / MariaDB connector, works without extra setup.
- The server's default character set is `utf8mb4`, full Unicode including emoji. Databases created before 29 November 2026 may still use `latin1`: check with the query above, and create tables with `CHARACTER SET utf8mb4` if so.
- Binary logging is off. Adding the [Kafka](/addons/kafka) MySQL / MariaDB CDC connector for this database turns it on, in `ROW` format with full row images, and restarts MariaDB once. Binary logs are kept for 3 days and use at most half of the disk.

## The app's user and root [#root]

Apps connect as `app`, a user with full rights on the database `app` but not on the server. Databases created before 29 November 2026 connect as `root`. For server-wide work, such as creating users, granting privileges or changing global variables, use `root`:

<Steps>

<Step>

### Ask the agent to set its password

Ask the [StackBlaze agent](/ai/ask-agent), for example: *Set the root password of the MariaDB database mariadb-x7k2 to …* Use 1 to 128 letters, digits and `.` `_` `~` `-`.

</Step>

<Step>

### Confirm

The agent asks before it changes a password. The password is changed inside the database first; if the database refuses it, nothing changes. Then the app connected to the database restarts. It keeps connecting as `app`. MariaDB itself also restarts once, about a minute after the change, and is back within a minute.

</Step>

<Step>

### Connect as `root`

Use the same host and port as the app, with the user `root` and the new password.

</Step>

</Steps>

Keep `root` out of the app itself. For a tool that needs it, add its own variables with the `root` credentials on that app's **Variables** tab.

## Connection pooling

Expand Down
42 changes: 39 additions & 3 deletions content/docs/data/databases/postgresql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A PostgreSQL card appears under **Databases** marked **Ready to deploy**. Nothin

### Review and deploy

Click the card. The catalog defaults are PostgreSQL 17, one instance, a 1 GiB volume, the user `postgres` and the database `app`. The panel says the database "deploys with the catalog defaults", and that size, high availability and connections are tuned in this panel once it is running. Click **Deploy**.
Click the card. The catalog defaults are PostgreSQL 17, one instance, a 1 GiB volume and the database `app`. The panel says the database "deploys with the catalog defaults", and that size, high availability and connections are tuned in this panel once it is running. Click **Deploy**.

<Screenshot id="postgresql/3-review" alt="Ready to deploy, creates it on Dev right away, with Remove from canvas and Deploy" />

Expand Down Expand Up @@ -79,7 +79,7 @@ Open the app and go to **Variables**. Connecting added:
|---|---|
| `PGHOST`, `PGPORT` | the database's in-cluster address (the primary) |
| `PGHOST_RO`, `PGPORT_RO` | the read-only address of the replicas, which only has instances behind it once [high availability](#high-availability) is on |
| `PGUSER`, `PGDATABASE` | the user and database name |
| `PGUSER`, `PGDATABASE` | the user (`app`, the role that owns the database, see [below](#superuser)) and database name |
| `PGPASSWORD` | read from the database's secret ("Provided by add-on") |

<Screenshot id="postgresql/8-variables" alt="The app's variables, with PGHOST to PGDATABASE and PGPASSWORD provided by add-on" />
Expand All @@ -106,6 +106,42 @@ app

To disconnect, turn the switch off and deploy the change; the `PG*` variables are removed from the app.

## The app's role and the superuser [#superuser]

Apps connect as `app`, the role that owns the database `app`. It can create and change tables, schemas and trusted extensions such as `pg_trgm`, but it is not a superuser, so row-level security policies apply to it and it can't change other roles. Databases created before 29 November 2026, and databases that come with a template, connect as `postgres`, the superuser.

**Settings** → **Extensions** turns on any extension, including the ones that need a superuser (see [Extensions](#extensions)). For other admin work, such as creating roles or changing ownership, use the superuser `postgres`:

<Steps>

<Step>

### Ask the agent to set its password

Ask the [StackBlaze agent](/ai/ask-agent), for example: *Set the superuser password of the PostgreSQL database postgresql-u0kr to …* Use 1 to 128 letters, digits and `.` `_` `~` `-`.

</Step>

<Step>

### Confirm

The agent asks before it changes a password. The password is changed inside the database first; if the database refuses it, nothing changes. Then the app connected to the database restarts. It keeps connecting as `app`.

</Step>

<Step>

### Connect as `postgres`

Use the same host, port and database as the app, with the user `postgres` and the new password.

</Step>

</Steps>

Keep the superuser out of the app itself: it skips row-level security and can drop any table. For a tool that needs it, such as a migration that creates roles, add its own variable with the superuser's connection string on that app's **Variables** tab.

## The database card

The card on the canvas shows the database's address for the SQL console (see [below](#sql-console)) and its status. The instance count (**1** with an arrow) opens the list of the database's volumes, with their size.
Expand Down Expand Up @@ -163,7 +199,7 @@ Turn on the **Public access** switch. You get an **Address** and a **Connection
Copy the **Connection string** and use it from an allowed address, for example:

```sh
psql "postgresql://postgres:<password>@<address>/app?sslmode=require"
psql "postgresql://app:<password>@<address>/app?sslmode=require"
```

When we did this, the address refused connections for a short while after the switch turned on, then accepted them.
Expand Down
2 changes: 2 additions & 0 deletions content/docs/data/databases/valkey.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ maxmemory-policy
noeviction
```

The limit (`maxmemory`) is 75% of the database's memory and at most 40% of its disk, so a save to disk always fits: about 400 MB on the 1 GiB disk a new database gets. [Expanding storage](#storage) raises it without a restart (to about 1.2 GB on 3 GiB).

So when Valkey reaches its memory limit, it **refuses writes** with an out-of-memory error; it doesn't drop keys to make room. Keys you set with an expiry (`EX`, `EXPIRE`) still expire. Give cache keys a time to live, and keep queues and sessions well under the limit.

## Storage
Expand Down
Loading