1MOGSTATS(1)           User Contributed Perl Documentation          MOGSTATS(1)
2
3
4

NAME

6       mogstats -- Utility for calculating slow stats directly against a
7       MogileFS DB
8

SYNOPSIS

10           $ mogstats --db_dsn="DBI:mysql:mfs:host=mfshost" --db_user="mfs" \
11                      --db_pass="mfs" --verbose --stats="devices,files"
12           $ mogstats --stats="all"
13           $ mogstats [all options in ~/.mogilefs.conf]
14

DESCRIPTION

16       Utility for inspecting queues and running general statistics against a
17       MogileFS database. Some of these stats can take a very long time to run
18       against a large instance, so the utility can be pointed at a read slave
19       or special account.
20

OPTIONS

22       --db_dsn=<DBI_dsn>
23           The DSN to use for connecting to the MogileFS database server.
24
25       --db_user=<username>
26           A database user for connecting to the database.
27
28       --db_pass=<password>
29           An optional password for the database user.
30
31       --config=<file>
32           An explicit config file to use. By default
33           /etc/mogilefs/mogilefs.conf and ~/.mogilefs.conf are checked.
34
35       --verbose
36           Print some extra text during processing. Mostly notes about what
37           stats are starting or finishing.
38
39       --stats=<stats>
40           A list of which statistics to calculate. Notes on some of them are
41           listed below, see --help for full list. A value of "all" fetches
42           all possible stats.
43
44       --help
45           List usage info and supported statistics.
46

AVAILABLE STATISTICS

48       Contains notes on which stats may be fast or slow.
49
50       devices
51           Lists count of files and current database status per-device. Can be
52           very slow.
53
54       fids
55           Lists the current highest file id. Should be fast.
56
57       files
58           Gives a breakdown of where files are by domain and class. Displays
59           the size of all stored files pre-replication, as well as post-
60           replication size. The latter being closer to the actual storage
61           amount. Can be very slow.
62
63       domains
64           Shows a simple count of where files are by domain and class. Faster
65           than using "files" but displays less information.
66
67       replication
68           Displays a breakdown of devcount per domain/class combo. Shows
69           number of files in domain "foo" with class "bar" that have a
70           current devcount of 0, 1, 2, 3, etc. Useful for spotting broken
71           files (devcount 0), replication lag, or over replication bugs. Can
72           be very slow.
73
74       replication-queue
75           Quick breakdown of how many fids are due for replication. Fids
76           listed as "manual" need manual intervention before they can be
77           replicated, and could be broken. Will be fast unless there are many
78           files in queue.
79
80       delete-queue
81           Similar to replication-queue.
82
83       general-queue
84           Displays a breakdown of what's in the general queue. This includes
85           FSCK, Rebalance, and other temporary queueing systems MogileFS has.
86           Should be fast unless you have configured MogileFS to queue many
87           fids at once.
88

AUTHOR

90       Dormando <dormando@rydia.net>
91

BUGS

93       None known.
94

LICENSE

96       Licensed for use and redistribution under the same terms as Perl
97       itself.
98
99
100
101perl v5.30.1                      2020-01-30                       MOGSTATS(1)
Impressum