1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
# ############################################################################
=pod
=head1 NAME
mk-heartbeat - Monitor MySQL replication delay.
=head1 SYNOPSIS
This POD sample is nonsensical. Its purpose is to test every option
attribute. What are not test here are option rules (mutually exclusive,
etc.)--those are tested in pod_sample_02.txt.
=head1 OPTIONS
=over
=item --database
short form: -D; type: string
database string.
OptionParser should not confuse the word item here with the POD items
that introduce new items.
=item --port
short form: -p; type: int; default: 3306
port.
The sentence above is the description for --help. Note that in --help output,
the default is appended and the period is removed. OptionParser should not have
any problems with other keywords appearing in random places like short form type
int DSN default etc. Basically, these full-explanation paragraphs should be
(mostly) ignored.
=item --price
type: float
price float (default 1.23). By "mostly" I mean that there is, in fact, some
magick that can happen in here. The first sentence of the first paragraph is
treated as the decription for the --help output.
=item --hash-req
type: Hash
hash that requires a value.
=item --hash-opt
type: hash
hash with an optional value.
=item --array-req
type: Array
array that requires a value.
=item --array-opt
type: array
array with an optional value.
Naturally, other POD stuff like C<format codes> and links to other options
like L<"--port"> or L<"--hash-req"> should pose no problems.
=item --host
type: DSN
host DSN.
=item --chunk-size
type: size
chunk size.
=item --time
type: time
time.
=item --help
cumulative: yes
help cumulative.
=item --other
negatable: yes
other negatable.
=back
=head1 ENVIRONMENT
The environment variable C<PTDEBUG> enables verbose debugging output in all of the
Maatkit tools:
PTDEBUG=1 mk-....
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be
installed in any reasonably new version of Perl.
=head1 SEE ALSO
See also L<mk-slave-delay> and L<mk-slave-restart>.
=head1 BUGS
Please use the Sourceforge bug tracker, forums, and mailing lists to request
support or report bugs: L<http://sourceforge.net/projects/maatkit/>.
Please include the complete command-line used to reproduce the problem you are
seeing, the version of all MySQL servers involved, the complete output of the
tool when run with L<"--version">, and if possible, debugging output produced by
running with the C<PTDEBUG=1> environment variable.
=head1 COPYRIGHT, LICENSE AND WARRANTY
This program is copyright (c) 2006 Proven Scaling LLC and SixApart Ltd, and
(c) 2007 Baron Schwartz. Feedback and improvements are welcome.
THIS PROGRAM IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, version 2; OR the Perl Artistic License. On UNIX and similar
systems, you can issue `man perlgpl' or `man perlartistic' to read these
licenses.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 AUTHOR
Proven Scaling LLC, SixApart Ltd, and Baron Schwartz.
=head1 VERSION
This manual page documents Ver @VERSION@ Distrib @DISTRIB@ $Revision: 1929 $.
=cut
|