Improve README.md
[pstop.git] / NEW_FEATURES
1 New features
2 ------------
3
4 Some thoughts for new features which I hope to get around to.
5 See also BUGS which probably need fixing first.
6
7 1. performance_schema has several tables showing a wide variety of
8 interesting information. So look and see which tables are most
9 interesting and adapt pstop to show this.
10
11 2. Often we want to look at behaviour over time when we change
12 something, so cumulative statistics are not idea: we'd like to see
13 a window of data which gradually moves over time. Look at how to
14 implement this with ps_top.  I'd expect the window to be rather
15 small, perhaps 1 minute, or maybe longer triggered by collecting
16 data less frequently.
17
18 3. vmstat, iostat, pt-diskstats and other such utilities show values
19 over time but providing output as stdout. It might be useful to
20 have options to pstop to present the info in that sort of format
21 too.
22
23 4. Add some replication metrics to pstop as most of my servers are
24 slaves and we want to know where the server is busy. I've seen a
25 way to do that and need to incorporate it into pstop.
26
27 5. _if_ ps statistics get truncated it would be good to be able to
28 remember the latest state and add those metrics back again, _if_
29 looking at absolute rather than relative statistics. On servers I
30 manage I currently truncate info as it is collected after 15-minutes,
31 so this might happen while watching a server with pstop.
32
33 6. Improve the options for sorting the data. Total latency is good,
34 but it would be good to see the write based metrics ordered by total
35 write latency. So look to improve the display and sort options here.
36
37 7. Add command line options for providing access to the MySQL server.
38 --defaults-file=/path/to/.my.cnf now works, but missing an explicit
39 --host=xx --port=99 --user=xx --password=xx or --socket=/path/to/mysql.sock
40 options.
41
42 8. I/O Latency by File shows read/write bytes and operations but
43 none of these values is converted into B/s or ops/sec which might
44 be better given we want to see the rate values.  MB/s or ops/s are
45 easier to understand and the values don't change depending on the
46 period being viewed. That said unless we have the times the metrics
47 were collected we can't calculate these rates so the ABS values
48 can't show the rate information but would need to show only the
49 counters.