this function can be used to cause an initial restart,
waiting restart, and immediate (forced) restart on one or
more Cluster data nodes. However,
ndb_mgm_restart3() provides the
additional options of checking whether disconnection is
required prior to the restart.
int ndb_mgm_restart3 ( NdbMgmHandle
number, const int*
ndb_mgm_restart3() takes 7 parameters:
number of nodes to be
0 to stop all of the data
nodes in the cluster.
list of the node IDs of the
nodes to be stopped.
initial is true
1), then each node undergoes an
initial restart—that is, its file system is removed.
nostart is true, then the nodes are
not actually started, but instead are left ready for a
abort is true, then the
nodes are forced to restart immediately without performing
a graceful restart.
true), this means
the you must disconnect before you can apply the command
to restart. For example, disconnecting is required when
stopping the management server to which the handle is
The number of nodes actually restarted;
-1 on failure.