ndb_waiter
— Wait for MySQL Cluster to Reach a Given Status
1648
17.4.19.
ndb_waiter
— Wait for MySQL Cluster to Reach a Given Status
ndb_waiter
repeatedly (each 100 milliseconds) prints out the status of all cluster data nodes until
either the cluster reaches a given status or the
--timeout
limit is exceeded, then exits. By default,
it waits for the cluster to achieve
STARTED
status, in which all nodes have started and connected to
the cluster. This can be overridden using the
--no-contact
and
--not-started
options (see
Additional Options
).
The node states reported by this utility are as follows:
•
NO_CONTACT
: The node cannot be contacted.
•
UNKNOWN
: The node can be contacted, but its status is not yet known. Usually, this means that the
node has received a
START
or
RESTART
command from the management server, but has not yet
acted on it.
•
NOT_STARTED
: The node has stopped, but remains in contact with the cluster. This is seen when
restarting the node using the management client's
RESTART
command.
•
STARTING
: The node's
ndbd
process has started, but the node has not yet joined the cluster.
•
STARTED
: The node is operational, and has joined the cluster.
•
SHUTTING_DOWN
: The node is shutting down.
•
SINGLE USER MODE
: This is shown for all cluster data nodes when the cluster is in single user
mode.
The following table includes options that are specific to the MySQL Cluster native backup restoration
program
ndb_waiter
. Additional descriptions follow the table. For options common to most MySQL
Cluster programs (including
ndb_waiter
), see
Section 17.4.20, “Options Common to MySQL Cluster
Programs — Options Common to MySQL Cluster Programs”
.
Table 17.23.
ndb_waiter
Options and Variables: MySQL 5.0
Format
Description
Added / Removed
--no-contact [1648]
,
-n [1648]
Wait for cluster to reach NO
CONTACT state
All MySQL 5.0
based releases
--not-started [1648]
Wait for cluster to reach NOT
STARTED state
All MySQL 5.0
based releases
--single-user [1649]
Wait for cluster to enter single user
mode
All MySQL 5.0
based releases
--timeout=# [1649]
,
-t [1649]
Wait this many seconds, then exit
whether or not cluster has reached
desired state; default is 2 minutes
(120 seconds)
All MySQL 5.0
based releases
Usage
ndb_waiter [-c
connect_string
]
Additional Options
•
--no-contact
,
-n
Instead of waiting for the
STARTED
state,
ndb_waiter
continues running until the cluster reaches
NO_CONTACT
status before exiting.
•
--not-started
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...