2 .\" Title: \fBndb_waiter\fR
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
6 .\" Manual: MySQL Database System
10 .TH "\FBNDB_WAITER\FR" "1" "11/04/2013" "MySQL 5\&.1" "MySQL Database System"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
32 ndb_waiter \- wait for MySQL Cluster to reach a given status
34 .HP \w'\fBndb_waiter\ \fR\fB\fIoptions\fR\fR\ 'u
35 \fBndb_waiter \fR\fB\fIoptions\fR\fR
39 repeatedly (each 100 milliseconds) prints out the status of all cluster data nodes until either the cluster reaches a given status or the
41 limit is exceeded, then exits\&. By default, it waits for the cluster to achieve
43 status, in which all nodes have started and connected to the cluster\&. This can be overridden using the
46 \fB\-\-not\-started\fR
49 The node states reported by this utility are as follows:
59 NO_CONTACT: The node cannot be contacted\&.
70 UNKNOWN: The node can be contacted, but its status is not yet known\&. Usually, this means that the node has received a
74 command from the management server, but has not yet acted on it\&.
85 NOT_STARTED: The node has stopped, but remains in contact with the cluster\&. This is seen when restarting the node using the management client\*(Aqs
98 STARTING: The node\*(Aqs
100 process has started, but the node has not yet joined the cluster\&.
111 STARTED: The node is operational, and has joined the cluster\&.
122 SHUTTING_DOWN: The node is shutting down\&.
133 SINGLE USER MODE: This is shown for all cluster data nodes when the cluster is in single user mode\&.
136 The following table includes options that are specific to the MySQL Cluster native backup restoration program
137 \fBndb_waiter\fR\&. Additional descriptions follow the table\&. For options common to most MySQL Cluster programs (including
138 \fBndb_waiter\fR), see
139 Options Common to MySQL Cluster Programs(1)\&.
142 .nr an-no-space-flag 1
145 .B Table\ \&17.28.\ \&ndb_waiter Options and Variables: MySQL 5.1, MySQL Cluster NDB 6.3-7.1
169 Wait for cluster to reach NO CONTACT state
172 All MySQL 5\&.1 based releases
178 Wait for cluster to reach NOT STARTED state
181 All MySQL 5\&.1 based releases
187 Wait for cluster to enter single user mode
190 All MySQL 5\&.1 based releases
198 Wait this many seconds, then exit whether or not cluster has reached
199 desired state; default is 2 minutes (120 seconds)
202 All MySQL 5\&.1 based releases
208 List of nodes not to be waited for\&.
219 List of nodes to be waited for\&.
222 ADDED: NDB 6\&.3\&.34, NDB 7\&.0\&.15, NDB 7\&.1\&.4
232 ndb_waiter [\-c \fIconnect_string\fR]
247 .\" ndb_waiter: no-contact option
248 .\" no-contact option: ndb_waiter
249 \fB\-\-no\-contact\fR,
252 Instead of waiting for the
256 continues running until the cluster reaches
258 status before exiting\&.
269 .\" ndb_waiter: not-started option
270 .\" not-started option: ndb_waiter
271 \fB\-\-not\-started\fR
273 Instead of waiting for the
277 continues running until the cluster reaches
279 status before exiting\&.
290 .\" ndb_waiter: timeout option
291 .\" timeout option: ndb_waiter
292 \fB\-\-timeout=\fR\fB\fIseconds\fR\fR,
293 \fB\-t \fR\fB\fIseconds\fR\fR
295 Time to wait\&. The program exits if the desired state is not achieved within this number of seconds\&. The default is 120 seconds (1200 reporting cycles)\&.
306 .\" ndb_waiter: single-user option
307 .\" single-user option: ndb_waiter
308 \fB\-\-single\-user\fR
310 The program waits for the cluster to enter single user mode\&.
321 .\" ndb_waiter: nowait-nodes option
322 .\" nowait-nodes option: ndb_waiter
323 \fB\-\-nowait\-nodes=\fR\fB\fIlist\fR\fR
325 When this option is used, ndb_waiter does not wait for the nodes whose IDs are listed\&. The list is comma\-delimited; ranges can be indicated by dashes, as shown here:
331 shell> \fBndb_waiter \-\-nowait\-nodes=1,3,7\-9\fR
342 .nr an-no-space-flag 1
351 use this option together with the
352 \fB\-\-wait\-nodes\fR
356 This option was added in MySQL Cluster NDB 6\&.2\&.1\&.
367 .\" ndb_waiter: wait-nodes option
368 .\" wait-nodes option: ndb_waiter
369 \fB\-\-wait\-nodes=\fR\fB\fIlist\fR\fR,
370 \fB\-w \fR\fB\fIlist\fR\fR
372 When this option is used,
374 waits only for the nodes whose IDs are listed\&. The list is comma\-delimited; ranges can be indicated by dashes, as shown here:
380 shell> \fBndb_waiter \-\-wait\-nodes=2,4\-6,10\fR
391 .nr an-no-space-flag 1
400 use this option together with the
401 \fB\-\-nowait\-nodes\fR
405 This option was added in MySQL Cluster NDB 6\&.3\&.34, 7\&.0\&.15, and 7\&.1\&.4\&.
408 \fBSample Output\fR. Shown here is the output from
410 when run against a 4\-node cluster in which two nodes have been shut down and then started again manually\&. Duplicate reports (indicated by
411 \(lq\&.\&.\&.\(rq) are omitted\&.
417 shell> \fB\&./ndb_waiter \-c localhost\fR
418 Connecting to mgmsrv at (localhost)
420 State node 2 NO_CONTACT
422 State node 4 NO_CONTACT
423 Waiting for cluster enter state STARTED
428 State node 4 NO_CONTACT
429 Waiting for cluster enter state STARTED
432 State node 2 STARTING
434 State node 4 NO_CONTACT
435 Waiting for cluster enter state STARTED
438 State node 2 STARTING
441 Waiting for cluster enter state STARTED
444 State node 2 STARTING
446 State node 4 STARTING
447 Waiting for cluster enter state STARTED
452 State node 4 STARTING
453 Waiting for cluster enter state STARTED
459 Waiting for cluster enter state STARTED
460 NDBT_ProgramExit: 0 \- OK
470 .nr an-no-space-flag 1
478 If no connection string is specified, then
480 tries to connect to a management on
481 localhost, and reports
482 Connecting to mgmsrv at (null)\&.
488 Copyright \(co 1997, 2013, Oracle and/or its affiliates. All rights reserved.
490 This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
492 This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
494 You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
497 For more information, please refer to the MySQL Reference Manual,
498 which may already be installed locally and which is also available
499 online at http://dev.mysql.com/doc/.
501 Oracle Corporation (http://dev.mysql.com/).