grammar
rg.createNode( <host>, <service>, <dbpath>, [config] )
Create a node in the current partition group.
Note: The
node can only be created after the partition group is started.
Parameter Description
Note:
The definition format of the rg.createNode() method has four parameters: host, service, dbpath, config, as shown in the table above, host and dbpath are string types, and Service type supports int or string, which is required; the last one is Json object, optional.
Format: ("<host name>", "<port number>", "<node path>, "[ {: value, ...}])
Click on Jushan Database Documentation Center for more information