CREATE WORKSPACE
On this page
The CREATE WORKSPACE command creates a new cluster in the specified cluster group.
Syntax
CREATE WORKSPACE [ IF NOT EXISTS ] '<cluster_name>'
[ IN GROUP { ID '<group_ID>' | '<group_name>' } ]
WITH SIZE '<cluster_size>'
[ AUTO SUSPEND AFTER <suspend_time> { SECONDS | MINUTES | HOURS | DAYS } WITH TYPE { IDLE | SCHEDULED | DISABLED } ]
[ ENABLE KAI ]
[ WITH CACHE CONFIG <multiplier> ]
[ WAIT ON ACTIVE ]Arguments
-
cluster_: Name of the cluster.name -
group_,ID group_: ID or name of the deployment (cluster group) in which the cluster is created.name -
cluster_: Size of the cluster in the cluster size notation, for example, "S-1".size -
suspend_: Time in the specified units after which the cluster is automatically suspended, depending on the specified suspend type.time -
multiplier: Specifies the multiplier for the persistent cache associated with the cluster.
Remarks
-
Specify the
IF NOT EXISTSclause to create a new cluster only when a cluster with the specified name does not exist already.If a cluster with the specified name already exists and the IF NOT EXISTSclause is not specified, theCREATE WORKSPACEcommand returns an error. -
If the
WITH CACHE CONFIGclause is specified, it enables the cache configuration multiplier.It can have one of the following values: 1,2, or4. -
If the
WAIT ON ACTIVEclause is specified, query execution is paused for this cluster until it reaches theACTIVEstate. -
Specify
ENABLE KAIto enable SingleStore Kai (the MongoDB® API) for the cluster.
Example
The following command creates a new cluster named test in a cluster group named s2-group:
CREATE WORKSPACE 'test' IN GROUP 's2-group'WITH SIZE 'S-1' WAIT ON ACTIVE;
Last modified: