-
Notifications
You must be signed in to change notification settings - Fork 12
/
gwtop.8
134 lines (118 loc) · 4.46 KB
/
gwtop.8
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
.\" Manpage for gwtop
.\" Contact pcuzner@redhat.com to correct errors or typos.
.TH gwtop 8 "Ceph iSCSI Gateway Tools" "20 Dec 2016" "Ceph iSCSI Gateway Tools"
.SH NAME
gwtop \- monitor i/o performance of rbds exported through iscsi gateways
.SH SYNOPSIS
gwtop [-b | --busy-only] [-c | --config {config object} ] [-d | --debug]
[-g | --gateways <gateway,gateway>] [-i|--interval \fB1\fR]
[-m | --mode \fBtext\fR] [-p | --provider {dm|lio}]
[-r | --reverse] [-s | --sortkey \fBimage\fR] [-v | --version]
.SH DESCRIPTION
gwtop is an iostat-like command to aggregate i/o performance stats from
multiple iscsi gateways into a single view. Data is sourced from performance
co-pilot (pmcd), and aggregated by rbd_image name. Since pmcd is the
data source, you must ensure that pcp is installed on each iscsi gateway
and the pmcd port (tcp/44321) is accessible.
.PP
The metrics shown are sourced from different pcp domain agents (PMDA's), based
on the disk type defined to LIO. For user backed storage (i.e. TCMU), metrics
are provided by the pcp-pmda-lio agent, whereas for krbd/device-mapper storage,
standard pcp-pmda-linux stats are used.
.PP
The first part of the display provides a summary of the entire gateway
configuration including cpu and network load, disk capacity and I/O load.
.PP
Each device detail line shows typical I/O metrics together with some addition
fields to help understand the source of the I/O.
.RS 3
.PP
\fBSrc\fR field shows the source of the I/O request, denoted by 'T' for this
gateway, or 'O' for other gateway.
.PP
\fBClient\fR shows the client that has access to the device. If the client is
connected to the local gateway, a suffix of '(CON)' is appended to the client
name.
.RE
.PP
The current implementation supports text mode only. A future version will
provide an ncurses based interface like 'top'.
.SH OPTIONS
-b, --busy-only
.RS 4
Only show busy devices that are servicing I/O requests (IOPS > 0)
.RE
-c, --config
.RS 4
The ceph iscsi configuration stores state in a rados object. By default, this
object is called \fBgateway.conf\fR, stored in the rbd pool. If the
configuration doesn't use defaults, you can provide the location of the
configuration object here in the form <pool>/<object_name>.
.RE
-d, --debug
.RS 4
Turn on debug mode to increase runtime verbosity
.RE
-g, --gateways {gateway-1,gateway-2,...}
.RS 4
Use the supplied list of gateways as the source for the IO metrics
.RE
-i, --interval
.RS 4
This is the interval between i/o sample updates from pmcd. The default is 1,
but values between 1 and 9 are accepted.
.RE
-m, --mode {\fBtext\fR}
.RS 4
mode determines the way in which the collected data is displayed. 'text' mode
is the only currently supported option, and it is the default.
.RE
-p, --provider {dm|lio}
.RS 4
PCP provider override allowing you to switch between disk (dm) or LIO (lio)
metric sources. By default, gwtop looks at the LIO configuration and chooses
the LIO provider if there are user backed devices within the configuration.
.RE
-r, --reverse
.RS 4
the sequence of the device detail lines can be reversed with the -r option
.RE
-s, --sortkey
.RS 4
the device detail sort sequence can be changed depending on the type of pcp
provider being used. With a 'dm' pcp provider, the following fields may be used;
image (default), rbd_name, reads, writes, await and io_source. For an lio pcp
provider you may sort by; image(default), iops, tot_read_mb or tot_write_mb
.RE
-t, --top-10
.RS 4
show the top 10 busiest LUNs sorted by descending IOPS
.RE
-v, --version
.RS 4
print the version number and exit
.RE
.SH EXAMPLES
gwtop -t
.RS 4
Show the top 10 performace metrics for all devices sorted by descending IOPS (i.e.
busiest first)
.RE
.SH ENVIRONMENT
gwtop supports a 'defaults file' placed in /etc/gwtop.rc or ~/.gwtop.rc. A
sample file is provided in the /usr/share/doc/gwtop directory. Run time
parameters take precedence over settings defined in the 'rc' file.
By default, gwtop will use the rados configuration object (-c) to determine the
gateways to connect to. You may however, use the -g override or define the
gateways in the 'rc' file if desired.
The performance metrics are aggregated based on timestamp. You must therefore
ensure that each gateway is synchronised to a reliable time source. Performance
metrics with different timestamps will prevent the display from refreshing.
.SH SEE ALSO
iostat, dstat
.SH BUGS
No known bugs.
.SH AUTHOR
Paul Cuzner (pcuzner@redhat.com)
.SH REPORTING BUGS
Report bugs via <https://github.com/pcuzner/ceph-iscsi-tools/issues>