MGM_C_API


Classes

struct  ndb_mgm_node_state
struct  ndb_mgm_cluster_state
struct  ndb_mgm_reply
struct  ndb_mgm_severity
struct  ndb_mgm_loglevel
struct  ndb_logevent

Typedefs

typedef struct ndb_mgm_handle * NdbMgmHandle

Enumerations

enum  ndb_mgm_node_type { NDB_MGM_NODE_TYPE_UNKNOWN = -1, NDB_MGM_NODE_TYPE_API, NDB_MGM_NODE_TYPE_NDB, NDB_MGM_NODE_TYPE_MGM }
enum  ndb_mgm_node_status {
  NDB_MGM_NODE_STATUS_UNKNOWN = 0, NDB_MGM_NODE_STATUS_NO_CONTACT = 1, NDB_MGM_NODE_STATUS_NOT_STARTED = 2, NDB_MGM_NODE_STATUS_STARTING = 3,
  NDB_MGM_NODE_STATUS_STARTED = 4, NDB_MGM_NODE_STATUS_SHUTTING_DOWN = 5, NDB_MGM_NODE_STATUS_RESTARTING = 6, NDB_MGM_NODE_STATUS_SINGLEUSER = 7,
  NDB_MGM_NODE_STATUS_RESUME = 8
}
enum  Ndb_logevent_type {
  NDB_LE_ILLEGAL_TYPE = -1, NDB_LE_Connected = 0, NDB_LE_Disconnected = 1, NDB_LE_CommunicationClosed = 2,
  NDB_LE_CommunicationOpened = 3, NDB_LE_ConnectedApiVersion = 51, NDB_LE_GlobalCheckpointStarted = 4, NDB_LE_GlobalCheckpointCompleted = 5,
  NDB_LE_LocalCheckpointStarted = 6, NDB_LE_LocalCheckpointCompleted = 7, NDB_LE_LCPStoppedInCalcKeepGci = 8, NDB_LE_LCPFragmentCompleted = 9,
  NDB_LE_NDBStartStarted = 10, NDB_LE_NDBStartCompleted = 11, NDB_LE_STTORRYRecieved = 12, NDB_LE_StartPhaseCompleted = 13,
  NDB_LE_CM_REGCONF = 14, NDB_LE_CM_REGREF = 15, NDB_LE_FIND_NEIGHBOURS = 16, NDB_LE_NDBStopStarted = 17,
  NDB_LE_NDBStopCompleted = 53, NDB_LE_NDBStopForced = 59, NDB_LE_NDBStopAborted = 18, NDB_LE_StartREDOLog = 19,
  NDB_LE_StartLog = 20, NDB_LE_UNDORecordsExecuted = 21, NDB_LE_NR_CopyDict = 22, NDB_LE_NR_CopyDistr = 23,
  NDB_LE_NR_CopyFragsStarted = 24, NDB_LE_NR_CopyFragDone = 25, NDB_LE_NR_CopyFragsCompleted = 26, NDB_LE_NodeFailCompleted = 27,
  NDB_LE_NODE_FAILREP = 28, NDB_LE_ArbitState = 29, NDB_LE_ArbitResult = 30, NDB_LE_GCP_TakeoverStarted = 31,
  NDB_LE_GCP_TakeoverCompleted = 32, NDB_LE_LCP_TakeoverStarted = 33, NDB_LE_LCP_TakeoverCompleted = 34, NDB_LE_TransReportCounters = 35,
  NDB_LE_OperationReportCounters = 36, NDB_LE_TableCreated = 37, NDB_LE_UndoLogBlocked = 38, NDB_LE_JobStatistic = 39,
  NDB_LE_SendBytesStatistic = 40, NDB_LE_ReceiveBytesStatistic = 41, NDB_LE_MemoryUsage = 50, NDB_LE_ThreadConfigLoop = 68,
  NDB_LE_TransporterError = 42, NDB_LE_TransporterWarning = 43, NDB_LE_MissedHeartbeat = 44, NDB_LE_DeadDueToHeartbeat = 45,
  NDB_LE_WarningEvent = 46, NDB_LE_SentHeartbeat = 47, NDB_LE_CreateLogBytes = 48, NDB_LE_InfoEvent = 49,
  NDB_LE_SingleUser = 52, NDB_LE_BackupStarted = 54, NDB_LE_BackupFailedToStart = 55, NDB_LE_BackupStatus = 62,
  NDB_LE_BackupCompleted = 56, NDB_LE_BackupAborted = 57, NDB_LE_RestoreMetaData = 63, NDB_LE_RestoreData = 64,
  NDB_LE_RestoreLog = 65, NDB_LE_RestoreStarted = 66, NDB_LE_RestoreCompleted = 67, NDB_LE_EventBufferStatus = 58,
  NDB_LE_StartReport = 60, NDB_LE_SubscriptionStatus = 69, NDB_LE_MTSignalStatistics = 70, NDB_LE_LogFileInitStatus = 71,
  NDB_LE_LogFileInitCompStatus = 72, NDB_LE_RedoStatus = 73
}
enum  ndb_mgm_event_severity {
  NDB_MGM_ILLEGAL_EVENT_SEVERITY = -1, NDB_MGM_EVENT_SEVERITY_ON = 0, NDB_MGM_EVENT_SEVERITY_DEBUG = 1, NDB_MGM_EVENT_SEVERITY_INFO = 2,
  NDB_MGM_EVENT_SEVERITY_WARNING = 3, NDB_MGM_EVENT_SEVERITY_ERROR = 4, NDB_MGM_EVENT_SEVERITY_CRITICAL = 5, NDB_MGM_EVENT_SEVERITY_ALERT = 6,
  NDB_MGM_EVENT_SEVERITY_ALL = 7
}
enum  ndb_mgm_event_category {
  NDB_MGM_ILLEGAL_EVENT_CATEGORY = -1, NDB_MGM_EVENT_CATEGORY_STARTUP = CFG_LOGLEVEL_STARTUP, NDB_MGM_EVENT_CATEGORY_SHUTDOWN = CFG_LOGLEVEL_SHUTDOWN, NDB_MGM_EVENT_CATEGORY_STATISTIC = CFG_LOGLEVEL_STATISTICS,
  NDB_MGM_EVENT_CATEGORY_CHECKPOINT = CFG_LOGLEVEL_CHECKPOINT, NDB_MGM_EVENT_CATEGORY_NODE_RESTART = CFG_LOGLEVEL_NODERESTART, NDB_MGM_EVENT_CATEGORY_CONNECTION = CFG_LOGLEVEL_CONNECTION, NDB_MGM_EVENT_CATEGORY_BACKUP = CFG_LOGLEVEL_BACKUP,
  NDB_MGM_EVENT_CATEGORY_CONGESTION = CFG_LOGLEVEL_CONGESTION, NDB_MGM_EVENT_CATEGORY_INFO = CFG_LOGLEVEL_INFO, NDB_MGM_EVENT_CATEGORY_ERROR = CFG_LOGLEVEL_ERROR
}
enum  ndb_logevent_handle_error {
  NDB_LEH_NO_ERROR, NDB_LEH_READ_ERROR, NDB_LEH_MISSING_EVENT_SPECIFIER, NDB_LEH_UNKNOWN_EVENT_TYPE,
  NDB_LEH_UNKNOWN_EVENT_VARIABLE, NDB_LEH_INTERNAL_ERROR
}

Variables

enum ndb_mgm_node_type ndb_mgm_node_state::node_type
enum ndb_mgm_node_status ndb_mgm_node_state::node_status
int ndb_mgm_node_state::start_phase
int ndb_mgm_node_state::dynamic_id
int ndb_mgm_node_state::node_group
int ndb_mgm_node_state::version
int ndb_mgm_node_state::connect_count
char ndb_mgm_node_state::connect_address []
int ndb_mgm_node_state::mysql_version
struct ndb_mgm_node_state ndb_mgm_cluster_state::node_states []
char ndb_mgm_reply::message [256]
unsigned int ndb_mgm_severity::value
unsigned int ndb_mgm_loglevel::value

Functions: Single User Mode

enum  ndb_mgm_clusterlog_level {
  NDB_MGM_ILLEGAL_CLUSTERLOG_LEVEL = -1, NDB_MGM_CLUSTERLOG_ON = 0, NDB_MGM_CLUSTERLOG_DEBUG = 1, NDB_MGM_CLUSTERLOG_INFO = 2,
  NDB_MGM_CLUSTERLOG_WARNING = 3, NDB_MGM_CLUSTERLOG_ERROR = 4, NDB_MGM_CLUSTERLOG_CRITICAL = 5, NDB_MGM_CLUSTERLOG_ALERT = 6,
  NDB_MGM_CLUSTERLOG_ALL = 7
}
int ndb_mgm_enter_single_user (NdbMgmHandle handle, unsigned int nodeId, struct ndb_mgm_reply *reply)
int ndb_mgm_exit_single_user (NdbMgmHandle handle, struct ndb_mgm_reply *reply)
int ndb_mgm_create_nodegroup (NdbMgmHandle handle, int *nodes, int *ng, struct ndb_mgm_reply *mgmreply)
int ndb_mgm_drop_nodegroup (NdbMgmHandle handle, int ng, struct ndb_mgm_reply *mgmreply)
static int ndb_mgm_filter_clusterlog (NdbMgmHandle h, enum ndb_mgm_clusterlog_level s, int e, struct ndb_mgm_reply *r)
static const unsigned int * ndb_mgm_get_logfilter (NdbMgmHandle h)
static int ndb_mgm_set_loglevel_clusterlog (NdbMgmHandle h, int n, enum ndb_mgm_event_category c, int l, struct ndb_mgm_reply *r)
static const unsigned int * ndb_mgm_get_loglevel_clusterlog (NdbMgmHandle h)

Functions: Listening to log events

typedef struct
ndb_logevent_handle * 
NdbLogEventHandle
int ndb_mgm_listen_event (NdbMgmHandle handle, const int filter[])
NdbLogEventHandle ndb_mgm_create_logevent_handle (NdbMgmHandle, const int filter[])
void ndb_mgm_destroy_logevent_handle (NdbLogEventHandle *)
int ndb_logevent_get_fd (const NdbLogEventHandle)
int ndb_logevent_get_next (const NdbLogEventHandle, struct ndb_logevent *dst, unsigned timeout_in_milliseconds)
int ndb_logevent_get_latest_error (const NdbLogEventHandle)
const char * ndb_logevent_get_latest_error_msg (const NdbLogEventHandle)

Functions: Error Handling

int ndb_mgm_get_latest_error (const NdbMgmHandle handle)
const char * ndb_mgm_get_latest_error_msg (const NdbMgmHandle handle)
const char * ndb_mgm_get_latest_error_desc (const NdbMgmHandle handle)
int ndb_mgm_get_latest_error_line (const NdbMgmHandle handle)
void ndb_mgm_set_error_stream (NdbMgmHandle, FILE *)

Functions: Create/Destroy Management Server Handles

NdbMgmHandle ndb_mgm_create_handle ()
void ndb_mgm_destroy_handle (NdbMgmHandle *handle)
void ndb_mgm_set_name (NdbMgmHandle handle, const char *name)
int ndb_mgm_set_ignore_sigpipe (NdbMgmHandle handle, int val)

Functions: Connect/Disconnect Management Server

int ndb_mgm_set_connectstring (NdbMgmHandle handle, const char *connect_string)
int ndb_mgm_number_of_mgmd_in_connect_string (NdbMgmHandle handle)
int ndb_mgm_set_configuration_nodeid (NdbMgmHandle handle, int nodeid)
int ndb_mgm_set_bindaddress (NdbMgmHandle, const char *arg)
const char * ndb_mgm_get_connectstring (NdbMgmHandle handle, char *buf, int buf_sz)
int ndb_mgm_set_connect_timeout (NdbMgmHandle handle, unsigned int seconds)
int ndb_mgm_set_timeout (NdbMgmHandle handle, unsigned int timeout_ms)
int ndb_mgm_connect (NdbMgmHandle handle, int no_retries, int retry_delay_in_seconds, int verbose)
int ndb_mgm_is_connected (NdbMgmHandle handle)
int ndb_mgm_disconnect (NdbMgmHandle handle)
int ndb_mgm_get_configuration_nodeid (NdbMgmHandle handle)
int ndb_mgm_get_connected_port (NdbMgmHandle handle)
const char * ndb_mgm_get_connected_host (NdbMgmHandle handle)
const char * ndb_mgm_get_connected_bind_address (NdbMgmHandle handle)

Functions: Cluster status

struct ndb_mgm_cluster_statendb_mgm_get_status (NdbMgmHandle handle)
struct ndb_mgm_cluster_statendb_mgm_get_status2 (NdbMgmHandle handle, const enum ndb_mgm_node_type types[])
int ndb_mgm_dump_state (NdbMgmHandle handle, int nodeId, const int *args, int num_args, struct ndb_mgm_reply *reply)

Functions: Start/stop nodes

int ndb_mgm_stop (NdbMgmHandle handle, int no_of_nodes, const int *node_list)
int ndb_mgm_stop2 (NdbMgmHandle handle, int no_of_nodes, const int *node_list, int abort)
int ndb_mgm_stop3 (NdbMgmHandle handle, int no_of_nodes, const int *node_list, int abort, int *disconnect)
int ndb_mgm_restart (NdbMgmHandle handle, int no_of_nodes, const int *node_list)
int ndb_mgm_restart2 (NdbMgmHandle handle, int no_of_nodes, const int *node_list, int initial, int nostart, int abort)
int ndb_mgm_restart3 (NdbMgmHandle handle, int no_of_nodes, const int *node_list, int initial, int nostart, int abort, int *disconnect)
int ndb_mgm_start (NdbMgmHandle handle, int no_of_nodes, const int *node_list)

Functions: Controlling Clusterlog output

int ndb_mgm_set_clusterlog_severity_filter (NdbMgmHandle handle, enum ndb_mgm_event_severity severity, int enable, struct ndb_mgm_reply *reply)
int ndb_mgm_get_clusterlog_severity_filter (NdbMgmHandle handle, struct ndb_mgm_severity *severity, unsigned int severity_size)
const unsigned int * ndb_mgm_get_clusterlog_severity_filter_old (NdbMgmHandle handle)
int ndb_mgm_set_clusterlog_loglevel (NdbMgmHandle handle, int nodeId, enum ndb_mgm_event_category category, int level, struct ndb_mgm_reply *reply)
int ndb_mgm_get_clusterlog_loglevel (NdbMgmHandle handle, struct ndb_mgm_loglevel *loglevel, unsigned int loglevel_size)
const unsigned int * ndb_mgm_get_clusterlog_loglevel_old (NdbMgmHandle handle)

Functions: Backup

int ndb_mgm_start_backup (NdbMgmHandle handle, int wait_completed, unsigned int *backup_id, struct ndb_mgm_reply *reply)
int ndb_mgm_start_backup2 (NdbMgmHandle handle, int wait_completed, unsigned int *backup_id, struct ndb_mgm_reply *reply, unsigned int input_backupId)
int ndb_mgm_start_backup3 (NdbMgmHandle handle, int wait_completed, unsigned int *backup_id, struct ndb_mgm_reply *reply, unsigned int input_backupId, unsigned int backuppoint)
int ndb_mgm_abort_backup (NdbMgmHandle handle, unsigned int backup_id, struct ndb_mgm_reply *reply)

Detailed Description

Cluster Management API

The MySQL Cluster Management API (MGM API) is a C language API that is used for:

General Concepts

Each MGM API function needs a management server handle of type NdbMgmHandle. This handle is created by calling the function function ndb_mgm_create_handle() and freed by calling ndb_mgm_destroy_handle().

A function can return any of the following:

  1. An integer value, with a value of -1 indicating an error.
  2. A non-constant pointer value. A NULL value indicates an error; otherwise, the return value must be freed by the programmer
  3. A constant pointer value, with a NULL value indicating an error. The returned value should not be freed.

Error conditions can be identified by using the appropriate error-reporting functions ndb_mgm_get_latest_error() and ndb_mgm_error.

Here is an example using the MGM API (without error handling for brevity's sake).

   NdbMgmHandle handle= ndb_mgm_create_handle();
   ndb_mgm_connect(handle,0,0,0);
   struct ndb_mgm_cluster_state *state= ndb_mgm_get_status(handle);
   for(int i=0; i < state->no_of_nodes; i++) 
   {
     struct ndb_mgm_node_state *node_state= &state->node_states[i];
     printf("node with ID=%d ", node_state->node_id);
     if(node_state->version != 0)
       printf("connected\n");
     else
       printf("not connected\n");
   }
   free((void*)state);
   ndb_mgm_destroy_handle(&handle);

Log Events

The database nodes and management server(s) regularly and on specific occations report on various log events that occurs in the cluster. These log events are written to the cluster log. Optionally a mgmapi client may listen to these events by using the method ndb_mgm_listen_event(). Each log event belongs to a category, ndb_mgm_event_category, and has a severity, ndb_mgm_event_severity, associated with it. Each log event also has a level (0-15) associated with it.

Which log events that come out is controlled with ndb_mgm_listen_event(), ndb_mgm_set_clusterlog_loglevel(), and ndb_mgm_set_clusterlog_severity_filter().

Below is an example of how to listen to events related to backup.

   int filter[] = { 15, NDB_MGM_EVENT_CATEGORY_BACKUP, 0 };
   int fd = ndb_mgm_listen_event(handle, filter);

Structured Log Events

The following steps are involved:

Sample code for listening to Backup related events. The availaable log events are listed in ndb_logevent::h

   int filter[] = { 15, NDB_MGM_EVENT_CATEGORY_BACKUP, 0 };
   NdbEventLogHandle le_handle= ndb_mgm_create_logevent_handle(handle, filter);
   struct ndb_logevent le;
   int r= ndb_logevent_get_next(le_handle,&le,0);
   if (r < 0) error
   else if (r == 0) no event

   switch (le.type)
   {
   case NDB_LE_BackupStarted:
     ... le.BackupStarted.starting_node;
     ... le.BackupStarted.backup_id;
     break;
   case NDB_LE_BackupFailedToStart:
     ... le.BackupFailedToStart.error;
     break;
   case NDB_LE_BackupCompleted:
     ... le.BackupCompleted.stop_gci;
     break;
   case NDB_LE_BackupAborted:
     ... le.BackupStarted.backup_id;
     break;
   default:
     break;
   }

Typedef Documentation

typedef struct ndb_logevent_handle* NdbLogEventHandle

The NdbLogEventHandle

typedef struct ndb_mgm_handle* NdbMgmHandle

The NdbMgmHandle.


Enumeration Type Documentation

Enumerator:
NDB_LEH_NO_ERROR 
NDB_LEH_READ_ERROR 
NDB_LEH_MISSING_EVENT_SPECIFIER 
NDB_LEH_UNKNOWN_EVENT_TYPE 
NDB_LEH_UNKNOWN_EVENT_VARIABLE 
NDB_LEH_INTERNAL_ERROR 

Available log events grouped by ndb_mgm_event_category

Enumerator:
NDB_LE_ILLEGAL_TYPE 
NDB_LE_Connected  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_Disconnected  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_CommunicationClosed  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_CommunicationOpened  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_ConnectedApiVersion  NDB_MGM_EVENT_CATEGORY_CONNECTION
NDB_LE_GlobalCheckpointStarted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_GlobalCheckpointCompleted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LocalCheckpointStarted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LocalCheckpointCompleted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LCPStoppedInCalcKeepGci  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_LCPFragmentCompleted  NDB_MGM_EVENT_CATEGORY_CHECKPOINT
NDB_LE_NDBStartStarted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStartCompleted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_STTORRYRecieved  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_StartPhaseCompleted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_CM_REGCONF  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_CM_REGREF  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_FIND_NEIGHBOURS  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopStarted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopCompleted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopForced  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NDBStopAborted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_StartREDOLog  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_StartLog  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_UNDORecordsExecuted  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_NR_CopyDict  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyDistr  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyFragsStarted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyFragDone  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NR_CopyFragsCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NodeFailCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_NODE_FAILREP  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_ArbitState  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_ArbitResult  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_GCP_TakeoverStarted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_GCP_TakeoverCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_LCP_TakeoverStarted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_LCP_TakeoverCompleted  NDB_MGM_EVENT_CATEGORY_NODE_RESTART
NDB_LE_TransReportCounters  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_OperationReportCounters  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_TableCreated  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_UndoLogBlocked  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_JobStatistic  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_SendBytesStatistic  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_ReceiveBytesStatistic  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_MemoryUsage  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_ThreadConfigLoop  NDB_MGM_EVENT_CATEGORY_STATISTIC
NDB_LE_TransporterError  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_TransporterWarning  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_MissedHeartbeat  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_DeadDueToHeartbeat  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_WarningEvent  NDB_MGM_EVENT_CATEGORY_ERROR
NDB_LE_SentHeartbeat  NDB_MGM_EVENT_CATEGORY_INFO
NDB_LE_CreateLogBytes  NDB_MGM_EVENT_CATEGORY_INFO
NDB_LE_InfoEvent  NDB_MGM_EVENT_CATEGORY_INFO
NDB_LE_SingleUser 
NDB_LE_BackupStarted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_BackupFailedToStart  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_BackupStatus  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_BackupCompleted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_BackupAborted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_RestoreMetaData  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_RestoreData  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_RestoreLog  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_RestoreStarted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_RestoreCompleted  NDB_MGM_EVENT_CATEGORY_BACKUP
NDB_LE_EventBufferStatus  NDB_MGM_EVENT_CATEGORY_INFO
NDB_LE_StartReport  NDB_MGM_EVENT_CATEGORY_STARTUP
NDB_LE_SubscriptionStatus  NDB_MGM_EVENT_SEVERITY_WARNING
NDB_LE_MTSignalStatistics 
NDB_LE_LogFileInitStatus  NDB_MGM_EVENT_CATEGORY_FRAGLOGFILE
NDB_LE_LogFileInitCompStatus  NDB_MGM_EVENT_CATEGORY_FRAGLOGFILE
NDB_LE_RedoStatus 

Enumerator:
NDB_MGM_ILLEGAL_CLUSTERLOG_LEVEL 
NDB_MGM_CLUSTERLOG_ON 
NDB_MGM_CLUSTERLOG_DEBUG 
NDB_MGM_CLUSTERLOG_INFO 
NDB_MGM_CLUSTERLOG_WARNING 
NDB_MGM_CLUSTERLOG_ERROR 
NDB_MGM_CLUSTERLOG_CRITICAL 
NDB_MGM_CLUSTERLOG_ALERT 
NDB_MGM_CLUSTERLOG_ALL 

Log event categories, used to set filter level on the log events using ndb_mgm_set_clusterlog_loglevel() and ndb_mgm_listen_event()

Enumerator:
NDB_MGM_ILLEGAL_EVENT_CATEGORY  Invalid log event category
NDB_MGM_EVENT_CATEGORY_STARTUP  Log events during all kinds of startups
NDB_MGM_EVENT_CATEGORY_SHUTDOWN  Log events during shutdown
NDB_MGM_EVENT_CATEGORY_STATISTIC  Statistics log events
NDB_MGM_EVENT_CATEGORY_CHECKPOINT  Log events related to checkpoints
NDB_MGM_EVENT_CATEGORY_NODE_RESTART  Log events during node restart
NDB_MGM_EVENT_CATEGORY_CONNECTION  Log events related to connections between cluster nodes
NDB_MGM_EVENT_CATEGORY_BACKUP  Backup related log events
NDB_MGM_EVENT_CATEGORY_CONGESTION  Congestion related log events
NDB_MGM_EVENT_CATEGORY_INFO  Uncategorized log events (severity info)
NDB_MGM_EVENT_CATEGORY_ERROR  Uncategorized log events (severity warning or higher)

Log event severities (used to filter the cluster log, ndb_mgm_set_clusterlog_severity_filter(), and filter listening to events ndb_mgm_listen_event())

Enumerator:
NDB_MGM_ILLEGAL_EVENT_SEVERITY 
NDB_MGM_EVENT_SEVERITY_ON  Cluster log on
NDB_MGM_EVENT_SEVERITY_DEBUG  Used in NDB Cluster developement
NDB_MGM_EVENT_SEVERITY_INFO  Informational messages
NDB_MGM_EVENT_SEVERITY_WARNING  Conditions that are not error condition, but might require handling.
NDB_MGM_EVENT_SEVERITY_ERROR  Conditions that, while not fatal, should be corrected.
NDB_MGM_EVENT_SEVERITY_CRITICAL  Critical conditions, like device errors or out of resources
NDB_MGM_EVENT_SEVERITY_ALERT  A condition that should be corrected immediately, such as a corrupted system
NDB_MGM_EVENT_SEVERITY_ALL  All severities

Database node status

Enumerator:
NDB_MGM_NODE_STATUS_UNKNOWN  Node status not known
NDB_MGM_NODE_STATUS_NO_CONTACT  No contact with node
NDB_MGM_NODE_STATUS_NOT_STARTED  Has not run starting protocol
NDB_MGM_NODE_STATUS_STARTING  Is running starting protocol
NDB_MGM_NODE_STATUS_STARTED  Running
NDB_MGM_NODE_STATUS_SHUTTING_DOWN  Is shutting down
NDB_MGM_NODE_STATUS_RESTARTING  Is restarting
NDB_MGM_NODE_STATUS_SINGLEUSER  Maintenance mode
NDB_MGM_NODE_STATUS_RESUME  Resume mode

NDB Cluster node types

Enumerator:
NDB_MGM_NODE_TYPE_UNKNOWN 
NDB_MGM_NODE_TYPE_API  An application (NdbApi) node
NDB_MGM_NODE_TYPE_NDB  A database node
NDB_MGM_NODE_TYPE_MGM  A management server node


Function Documentation

int ndb_logevent_get_fd ( const   NdbLogEventHandle  ) 

Retrieve filedescriptor from NdbLogEventHandle. May be used in e.g. an application select() statement.

Note:
Do not attemt to read from it, it will corrupt the parsing.
Returns:
filedescriptor, -1 on failure.

int ndb_logevent_get_latest_error ( const   NdbLogEventHandle  ) 

Retrieve laterst error code

Returns:
error code

const char* ndb_logevent_get_latest_error_msg ( const   NdbLogEventHandle  ) 

Retrieve laterst error message

Returns:
error message

int ndb_logevent_get_next ( const   NdbLogEventHandle,
struct ndb_logevent dst,
unsigned  timeout_in_milliseconds 
)

Attempt to retrieve next log event and will fill in the supplied struct dst

Parameters:
dst Pointer to struct to fill in event information
timeout_in_milliseconds Timeout for waiting for event
Returns:
>0 if event exists, 0 no event (timed out), or -1 on error.
Note:
Return value <=0 will leave dst untouched

int ndb_mgm_abort_backup ( NdbMgmHandle  handle,
unsigned int  backup_id,
struct ndb_mgm_reply reply 
)

Abort backup

Parameters:
handle NDB management handle.
backup_id Backup ID.
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_connect ( NdbMgmHandle  handle,
int  no_retries,
int  retry_delay_in_seconds,
int  verbose 
)

Connects to a management server. Connectstring is set by ndb_mgm_set_connectstring().

The timeout value is for connect to each management server. Use ndb_mgm_number_of_mgmd_in_connect_string to work out the approximate maximum amount of time that could be spent in this function.

Parameters:
handle Management handle.
no_retries Number of retries to connect (0 means connect once).
retry_delay_in_seconds How long to wait until retry is performed.
verbose Make printout regarding connect retries.
Returns:
-1 on error.

NdbMgmHandle ndb_mgm_create_handle (  ) 

Create a handle to a management server.

Returns:
A management handle
or NULL if no management handle could be created.

NdbLogEventHandle ndb_mgm_create_logevent_handle ( NdbMgmHandle  ,
const int  filter[] 
)

Listen to log events.

Parameters:
handle NDB management handle.
filter pairs of { level, ndb_mgm_event_category } that will be pushed to fd, level=0 ends list.
Returns:
NdbLogEventHandle

int ndb_mgm_create_nodegroup ( NdbMgmHandle  handle,
int *  nodes,
int *  ng,
struct ndb_mgm_reply mgmreply 
)

void ndb_mgm_destroy_handle ( NdbMgmHandle handle  ) 

Destroy a management server handle.

Parameters:
handle Management handle

void ndb_mgm_destroy_logevent_handle ( NdbLogEventHandle  ) 

int ndb_mgm_disconnect ( NdbMgmHandle  handle  ) 

Disconnects from a management server

Parameters:
handle Management handle.
Returns:
-1 on error.

int ndb_mgm_drop_nodegroup ( NdbMgmHandle  handle,
int  ng,
struct ndb_mgm_reply mgmreply 
)

int ndb_mgm_dump_state ( NdbMgmHandle  handle,
int  nodeId,
const int *  args,
int  num_args,
struct ndb_mgm_reply reply 
)

Dump state

Parameters:
handle the NDB management handle.
nodeId the node id.
args integer array
number of args in int array
reply the reply message.
Returns:
0 if successful or an error code.

int ndb_mgm_enter_single_user ( NdbMgmHandle  handle,
unsigned int  nodeId,
struct ndb_mgm_reply reply 
)

Enter Single user mode

Parameters:
handle NDB management handle.
nodeId Node ID of the single user node
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_exit_single_user ( NdbMgmHandle  handle,
struct ndb_mgm_reply reply 
)

Exit Single user mode

Parameters:
handle NDB management handle.
reply Reply message.
Returns:
-1 on error.

static int ndb_mgm_filter_clusterlog ( NdbMgmHandle  h,
enum ndb_mgm_clusterlog_level  s,
int  e,
struct ndb_mgm_reply r 
) [inline, static]

int ndb_mgm_get_clusterlog_loglevel ( NdbMgmHandle  handle,
struct ndb_mgm_loglevel loglevel,
unsigned int  loglevel_size 
)

get log category and levels

Parameters:
handle NDB management handle.
loglevel A vector of twelve (MGM_LOGLEVELS) elements of struct ndb_mgm_loglevel, where each element contains loglevel of corresponding category
loglevel_size The size of the vector (MGM_LOGLEVELS)
Returns:
Number of returned loglevels or -1 on error

const unsigned int* ndb_mgm_get_clusterlog_loglevel_old ( NdbMgmHandle  handle  ) 

get log category and levels

Parameters:
handle NDB management handle.
Returns:
A vector of twelve elements, where each element contains loglevel of corresponding category

int ndb_mgm_get_clusterlog_severity_filter ( NdbMgmHandle  handle,
struct ndb_mgm_severity severity,
unsigned int  severity_size 
)

Get clusterlog severity filter

Parameters:
handle NDB management handle
loglevel A vector of seven (NDB_MGM_EVENT_SEVERITY_ALL) elements of struct ndb_mgm_severity, where each element contains 1 if a severity indicator is enabled and 0 if not. A severity level is stored at position ndb_mgm_clusterlog_level; for example the "error" level is stored in position [NDB_MGM_EVENT_SEVERITY_ERROR]. The first element [NDB_MGM_EVENT_SEVERITY_ON] in the vector signals whether the cluster log is disabled or enabled.
severity_size The size of the vector (NDB_MGM_EVENT_SEVERITY_ALL)
Returns:
Number of returned severities or -1 on error

const unsigned int* ndb_mgm_get_clusterlog_severity_filter_old ( NdbMgmHandle  handle  ) 

Get clusterlog severity filter

Parameters:
handle NDB management handle
Returns:
A vector of seven elements, where each element contains 1 if a severity indicator is enabled and 0 if not. A severity level is stored at position ndb_mgm_clusterlog_level; for example the "error" level is stored in position [NDB_MGM_EVENT_SEVERITY_ERROR]. The first element [NDB_MGM_EVENT_SEVERITY_ON] in the vector signals whether the cluster log is disabled or enabled.

int ndb_mgm_get_configuration_nodeid ( NdbMgmHandle  handle  ) 

Gets connection node ID

Parameters:
handle Management handle
Returns:
Node ID; 0 indicates that no node ID has been specified

const char* ndb_mgm_get_connected_bind_address ( NdbMgmHandle  handle  ) 

Gets connection bind address

Parameters:
handle Management handle
Returns:
hostname

const char* ndb_mgm_get_connected_host ( NdbMgmHandle  handle  ) 

Gets connection host

Parameters:
handle Management handle
Returns:
hostname

int ndb_mgm_get_connected_port ( NdbMgmHandle  handle  ) 

Gets connection port

Parameters:
handle Management handle
Returns:
port

const char* ndb_mgm_get_connectstring ( NdbMgmHandle  handle,
char *  buf,
int  buf_sz 
)

Gets the connectstring used for a connection

Note:
This function returns the default connectstring if no call to ndb_mgm_set_connectstring() has been performed. Also, the returned connectstring may be formatted differently.
Parameters:
handle Management handle
buf Buffer to hold result
buf_sz Size of buffer.
Returns:
connectstring (same as buf)

int ndb_mgm_get_latest_error ( const NdbMgmHandle  handle  ) 

Get the most recent error associated with the management server whose handle is used as the value of handle.

Parameters:
handle Management handle
Returns:
Latest error code

const char* ndb_mgm_get_latest_error_desc ( const NdbMgmHandle  handle  ) 

Get the most recent error description associated with a handle

The error description gives some additional information regarding the error message.

Parameters:
handle Management handle.
Returns:
Latest error description

int ndb_mgm_get_latest_error_line ( const NdbMgmHandle  handle  ) 

Get the most recent internal source code error line associated with a handle

Parameters:
handle Management handle.
Returns:
Latest internal source code line of latest error
Deprecated:

const char* ndb_mgm_get_latest_error_msg ( const NdbMgmHandle  handle  ) 

Get the most recent general error message associated with a handle

Parameters:
handle Management handle.
Returns:
Latest error message

static const unsigned int* ndb_mgm_get_logfilter ( NdbMgmHandle  h  )  [inline, static]

static const unsigned int* ndb_mgm_get_loglevel_clusterlog ( NdbMgmHandle  h  )  [inline, static]

struct ndb_mgm_cluster_state* ndb_mgm_get_status ( NdbMgmHandle  handle  )  [read]

Gets status of the nodes in an NDB Cluster

Note:
The caller must free the pointer returned by this function.
Parameters:
handle Management handle.
Returns:
Cluster state (or NULL on error).

struct ndb_mgm_cluster_state* ndb_mgm_get_status2 ( NdbMgmHandle  handle,
const enum ndb_mgm_node_type  types[] 
) [read]

Gets status of the nodes *of specified types* in an NDB Cluster

Note:
The caller must free the pointer returned by this function.

Passing a NULL pointer into types make this equivalent to ndb_mgm_get_status

Parameters:
handle Management handle.
types Pointer to array of interesting node types. Array should be terminated by *NDB_MGM_NODE_TYPE_UNKNOWN*.
Returns:
Cluster state (or NULL on error).

int ndb_mgm_is_connected ( NdbMgmHandle  handle  ) 

Return true if connected.

Parameters:
handle Management handle
Returns:
0 if not connected, non-zero if connected.

int ndb_mgm_listen_event ( NdbMgmHandle  handle,
const int  filter[] 
)

Listen to log events. They are read from the return file descriptor and the format is textual, and the same as in the cluster log.

Parameters:
handle NDB management handle.
filter pairs of { level, ndb_mgm_event_category } that will be pushed to fd, level=0 ends list.
Returns:
fd filedescriptor to read events from

int ndb_mgm_number_of_mgmd_in_connect_string ( NdbMgmHandle  handle  ) 

Returns the number of management servers in the connect string (as set by ndb_mgm_set_connectstring()). This can be used to help work out how long the maximum amount of time that ndb_mgm_connect can take.

Parameters:
handle Management handle
Returns:
< 0 on error

int ndb_mgm_restart ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list 
)

Restart database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to restart
0: All database nodes in cluster
n: Restart the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be restarted
Returns:
Number of nodes restarted (-1 on error).
Note:
This function is equivalent to calling ndb_mgm_restart2(handle, no_of_nodes, node_list, 0, 0, 0);

int ndb_mgm_restart2 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  initial,
int  nostart,
int  abort 
)

Restart database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be restarted:
0: Restart all database nodes in the cluster
n: Restart the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be restarted
initial Remove filesystem from restarting node(s)
nostart Don't actually start node(s) but leave them waiting for start command
abort Don't perform graceful restart, but rather restart immediately
Returns:
Number of nodes stopped (-1 on error).

int ndb_mgm_restart3 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  initial,
int  nostart,
int  abort,
int *  disconnect 
)

Restart nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be restarted:
0: Restart all database nodes in the cluster
n: Restart the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be restarted
initial Remove filesystem from restarting node(s)
nostart Don't actually start node(s) but leave them waiting for start command
abort Don't perform graceful restart, but rather restart immediately
disconnect Returns true if mgmapi client must disconnect from server to apply the requested operation. (e.g. restart the management server)
Returns:
Number of nodes stopped (-1 on error).

int ndb_mgm_set_bindaddress ( NdbMgmHandle  ,
const char *  arg 
)

Set local bindaddress

Parameters:
arg - Srting of form "host[:port]"
Note:
must be called before connect

Error on binding local address will not be reported until connect

Returns:
0 on success

int ndb_mgm_set_clusterlog_loglevel ( NdbMgmHandle  handle,
int  nodeId,
enum ndb_mgm_event_category  category,
int  level,
struct ndb_mgm_reply reply 
)

Set log category and levels for the cluster log

Parameters:
handle NDB management handle.
nodeId Node ID.
category Event category.
level Log level (0-15).
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_set_clusterlog_severity_filter ( NdbMgmHandle  handle,
enum ndb_mgm_event_severity  severity,
int  enable,
struct ndb_mgm_reply reply 
)

Filter cluster log severities

Parameters:
handle NDB management handle.
severity A cluster log severity to filter.
enable set 1=enable o 0=disable
reply Reply message.
Returns:
-1 on error.

int ndb_mgm_set_configuration_nodeid ( NdbMgmHandle  handle,
int  nodeid 
)

int ndb_mgm_set_connect_timeout ( NdbMgmHandle  handle,
unsigned int  seconds 
)

DEPRICATED: use ndb_mgm_set_timeout instead.

Parameters:
handle NdbMgmHandle
seconds number of seconds
Returns:
non-zero on success

int ndb_mgm_set_connectstring ( NdbMgmHandle  handle,
const char *  connect_string 
)

Sets the connectstring for a management server

Parameters:
handle Management handle
connect_string Connect string to the management server,
Returns:
-1 on error.
 <connectstring> := [<nodeid-specification>,]<host-specification>[,<host-specification>]
 <nodeid-specification> := nodeid=<id>
 <host-specification> := <host>[:<port>]
 <id> is an integer greater than 0 identifying a node in config.ini
 <port> is an integer referring to a regular unix port
 <host> is a string containing a valid network host address

void ndb_mgm_set_error_stream ( NdbMgmHandle  ,
FILE *   
)

Set error stream

int ndb_mgm_set_ignore_sigpipe ( NdbMgmHandle  handle,
int  val 
)

Set 'ignore_sigpipe' behaviour

The mgmapi will by default install a signal handler that ignores all SIGPIPE signals that might occur when writing to an already closed or reset socket. An application that wish to use its own handler for SIGPIPE should call this function after 'ndb_mgm_create_handle' and before 'ndb_mgm_connect'(where the signal handler is installed)

Parameters:
handle Management handle
val Value 0 - Don't ignore SIGPIPE 1 - Ignore SIGPIPE(default)

static int ndb_mgm_set_loglevel_clusterlog ( NdbMgmHandle  h,
int  n,
enum ndb_mgm_event_category  c,
int  l,
struct ndb_mgm_reply r 
) [inline, static]

void ndb_mgm_set_name ( NdbMgmHandle  handle,
const char *  name 
)

Set a name of the handle. Name is reported in cluster log.

Parameters:
handle Management handle
name Name

int ndb_mgm_set_timeout ( NdbMgmHandle  handle,
unsigned int  timeout_ms 
)

Sets the number of milliseconds for timeout of network operations Default is 60 seconds. Only increments of 1000 ms are supported. No function is gaurenteed to return in a fraction of a second.

Parameters:
handle NdbMgmHandle
timeout_ms number of milliseconds
Returns:
zero on success

int ndb_mgm_start ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list 
)

Start database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be started
0: Start all database nodes in the cluster
n: Start the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be started
Returns:
Number of nodes actually started (-1 on error).
Note:
The nodes to be started must have been started with nostart(-n) argument. This means that the database node binary is started and waiting for a START management command which will actually enable the database node

int ndb_mgm_start_backup ( NdbMgmHandle  handle,
int  wait_completed,
unsigned int *  backup_id,
struct ndb_mgm_reply reply 
)

Start backup

Parameters:
handle NDB management handle.
wait_completed 0: Don't wait for confirmation
1: Wait for backup to be started
2: Wait for backup to be completed
backup_id Backup ID is returned from function.
reply Reply message.
Returns:
-1 on error.
Note:
backup_id will not be returned if wait_completed == 0

int ndb_mgm_start_backup2 ( NdbMgmHandle  handle,
int  wait_completed,
unsigned int *  backup_id,
struct ndb_mgm_reply reply,
unsigned int  input_backupId 
)

Start backup

Parameters:
handle NDB management handle.
wait_completed 0: Don't wait for confirmation
1: Wait for backup to be started
2: Wait for backup to be completed
backup_id Backup ID is returned from function.
reply Reply message.
input_backupId run as backupId and set next backup id to input_backupId+1.
Returns:
-1 on error.
Note:
backup_id will not be returned if wait_completed == 0

int ndb_mgm_start_backup3 ( NdbMgmHandle  handle,
int  wait_completed,
unsigned int *  backup_id,
struct ndb_mgm_reply reply,
unsigned int  input_backupId,
unsigned int  backuppoint 
)

Start backup

Parameters:
handle NDB management handle.
wait_completed 0: Don't wait for confirmation
1: Wait for backup to be started
2: Wait for backup to be completed
backup_id Backup ID is returned from function.
reply Reply message.
input_backupId run as backupId and set next backup id to input_backupId+1.
backuppoint Backup happen at start time(1) or complete time(0).
Returns:
-1 on error.
Note:
backup_id will not be returned if wait_completed == 0

int ndb_mgm_stop ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list 
)

Stops database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to be stopped
0: All database nodes in cluster
n: Stop the n node(s) specified in the array node_list
node_list List of node IDs for database nodes to be stopped
Returns:
Number of nodes stopped (-1 on error)
Note:
This function is equivalent to calling ndb_mgm_stop2(handle, no_of_nodes, node_list, 0)

int ndb_mgm_stop2 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  abort 
)

Stops database nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to stop
0: All database nodes in cluster
n: Stop the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be stopped
abort Don't perform graceful stop, but rather stop immediately
Returns:
Number of nodes stopped (-1 on error).

int ndb_mgm_stop3 ( NdbMgmHandle  handle,
int  no_of_nodes,
const int *  node_list,
int  abort,
int *  disconnect 
)

Stops cluster nodes

Parameters:
handle Management handle.
no_of_nodes Number of database nodes to stop
-1: All database and management nodes
0: All database nodes in cluster
n: Stop the n node(s) specified in the array node_list
node_list List of node IDs of database nodes to be stopped
abort Don't perform graceful stop, but rather stop immediately
disconnect Returns true if you need to disconnect to apply the stop command (e.g. stopping the mgm server that handle is connected to)
Returns:
Number of nodes stopped (-1 on error).


Variable Documentation

IP address of node when it connected to the management server.

Note:
This value will be empty if the management server has restarted since the node last connected.

Number of times node has connected or disconnected to the management server

ID for heartbeats and master take-over (only valid for DB nodes)

char ndb_mgm_reply::message[256] [inherited]

Error or reply message.

MySQL version number

Node group of node (only valid for DB nodes)

An array with node_states

State of node

Type of NDB Cluster node

Start phase.

Note:
Start phase is only valid if the node_type is NDB_MGM_NODE_TYPE_NDB and the node_status is NDB_MGM_NODE_STATUS_STARTING

unsigned int ndb_mgm_loglevel::value [inherited]

unsigned int ndb_mgm_severity::value [inherited]

int ndb_mgm_node_state::version [inherited]

Internal version number


MySQL Cluster Database Blog

Based on MySQL Cluster 7.0.6.

This page is for information only and is not maintained by MySQL or Sun Microsystems - use at your own risk. For an upto date view of the API refer to the header files included with your MySQL Cluster distribution or check the MySQL Cluster API Developer Guide.