How do I create 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 create a serverless database.
Table of contents
Before you begin
- Set up a FeatureBase Cloud account
- One worker is assigned to a new serverless database by default.
Naming standards
FeatureBase identifiers (including object names such as databases, tables and columns) start with a lower-case alphabetic character and can include:
- lower-case alphabetic characters
- numbers 0-9
-
dash
-
and underscore_
characters. - database names can be up to 300 characters in length
Create serverless database
- Click Databases > New database
-
Name your database.
- Choose Serverless (Preview)
- Click Create database.
Create serverless database with SQL
Syntax
CREATE 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
CREATE DATABASE my-db WITH WORKERS 1;