Console - CREATE CLUSTER
Creates a new cluster in the current database. The cluster you create can either be physical or memory. OrientDB saves physical clusters to disk. Memory clusters are volatile, any records you save to them are lost when the server stops.
Syntax
CREATE CLUSTER <cluster-name> <cluster-type> <data-segment> <location> [<position>]
<cluster-name>Defines the name of the cluster.<cluster-type>Defines whether the cluster isPHYSICALorLOGICAL.<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. UseDEFAULTto save these to the database directory.<position>Defines where to add new cluster. UseAPPENDto create it as the last cluster. Leave empty to replace.
Example
Create a new cluster
documents:orientdb>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
You can display all configured clusters in the current database using the
CLUSTERScommand. To delete an existing cluster, use theDROP CLUSTERcommand.For more information on other commands, see Console Commands