Creates a new cluster in the current database. The cluster you create can either be physical or in memory. OrientDB saves physical clusters to disk. Memory clusters are volatile, so any records you save to them are lost, should the server be stopped.
CREATE CLUSTER <cluster-name> <cluster-type> <data-segment> <location> [<position>]
<cluster-name>Defines the name of the cluster.
<cluster-type>Defines whether the cluster is
<data-segment>Defines the data segment you want to use.
DEFAULTSets the cluster to the default data segment.
<location>Defines the location for new cluster files, if applicable. Use
DEFAULTto save these to the database directory.
<position>Defines where to add new cluster. Use
APPENDto create it as the last cluster. Leave empty to replace.
Create a new cluster
CREATE CLUSTER documents PHYSICAL DEFAULT DEFAULT APPENDCreating cluster [documents] of type 'PHYSICAL' in database demo as last one... PHYSICAL cluster created correctly with id #68
For more information on other commands, see Console Commands