Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.17 KB

Console-Command-Create-Cluster.md

File metadata and controls

34 lines (22 loc) · 1.17 KB

Console - CREATE CLUSTER

Creates a new cluster in the current database. The cluster can be "physical" or "memory".

Syntax

CREATE CLUSTER <cluster-name> <cluster-type> <data-segment> <location> <position>

Where:

  • cluster-name The name of the cluster to create
  • cluster-type Cluster type: 'PHYSICAL' or 'LOGICAL'
  • data-segment Data segment to use. 'DEFAULT' will use the default one
  • location Location where to place the new cluster files, if applicable. use 'DEFAULT' to leave into the database directory
  • position 'APPEND' to add as last cluster, otherwise the empty position to replace

Example

orientdb> CREATE CLUSTER documents PHYSICAL DEFAULT DEFAULT APPEND

Creating cluster [documents] of type 'PHYSICAL' in database demo as last one...
PHYSICAL cluster created correctly with id #68

See also

To display all the cluster configured in the current database use the command CLUSTERS.

To delete a cluster use the command DROP CLUSTER.

This is a command of the Orient console. To know all the commands go to Console-Commands.