return value
If there is no return value, an error will be thrown and an error message will be output. By () getLastErrMsg get an error message, via ) getLastError ( to get the error code. For error handling, please refer to the common error handling guide .
error
The error information is recorded in the node diagnosis log (diaglog), and you can refer to the error code .
Example
Create a "hostname1:11830" node in the partition group group1, and specify the log file size as 64MB
var rg = db.getRG("group1")
rg.createNode( "hostname1", 11830, "/opt/sequoiadb/database/data/11830", { logfilesz: 64 } )
Note:
Multiple nodes can be created in a partition group, and each node needs to reserve at least five extended ports. Because the system controls five communication interfaces for each node background.
Click on Jushan Database Documentation Center for more information