Help Center > > Developer Guide> SQL Reference> SQL Syntax> CREATE NODE GROUP

CREATE NODE GROUP

Updated at: Jul 15, 2020 GMT+08:00

Function

CREATE NODE GROUP creates a cluster node group.

Precautions

  • CREATE NODE GROUP is the internal interface encapsulated in gs_om.
  • This interface is available only to administrators.

Syntax

1
2
3
CREATE NODE GROUP groupname
    WITH ( nodename [, ... ] )
    [ BUCKETS [ ( bucketnumber [, ... ] ) ] ] [VCGROUP] [DISTRIBUTE FROM src_group_name];

Parameter Description

  • groupname

    Specifies the name of a node group.

    Value range: a string. It must comply with the naming convention. A value can contain a maximum of 63 characters.

    A node group name supports all ASCII characters, but you are advised to name a node group according to the naming convention.

  • nodename

    Specifies the node name.

    Value range: a string compliant with the naming convention rules. A value can contain a maximum of 63 characters.

  • BUCKETS [ ( bucketnumber [, ... ] ) ]

    Is designed for internal use of the cluster management tools. You are not advised to use it directly. Otherwise, the cluster may be affected.

  • VCGROUP

    Creates a Node Group used as a logical cluster.

  • DISTRIBUTE FROM src_group_name

    Creates a Node Group to redistribute data in the Node Group specified by src_group_name. You are not advised to use this clause, because it may lead to data distribution errors or Node Group unavailability.

Helpful Links

DROP NODE GROUP

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel