How do I scale a serverless database?
FeatureBase Serverless is currently in preview and is not meant to be used for production workloads. It is only available through FeatureBase Cloud.
This procedure explains how to scale a serverless database.
Table of contents
Before you begin
- Set up a FeatureBase Cloud account
- Learn about FeatureBase Serverless
- Learn how to create a serverless database
Scale a serverless database with SQL
Syntax
ALTER DATABASE {database-name}[WITH WORKERS {<int-workers>}];
Arguments
Argument | Description | Required | Additional information |
---|---|---|---|
database-name | Name of existing database to alter | Yes | |
WITH WORKERS <int-workers> | Integer value of Workers to assign to database | No | Worker Unit additional |
Additional information
Worker unit additional
- Workers contain 2GB memory and 1 vCPU
-
One worker is assigned to a new serverless database by default.
- The maximum number of workers for a database is 8
- The minimum number of workers for a database is 0
Examples
ALTER DATABASE my-db WITH WORKERS 3;