pt-stalk doesn't run vmstat, iostat, and mpstat for --run-time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
High
|
Daniel Nichter | ||
2.0 |
Fix Released
|
High
|
Daniel Nichter | ||
2.1 |
Fix Released
|
High
|
Daniel Nichter |
Bug Description
When you run pt-stalk just to collect information with --no-stalk, it ignores --sleep and --iterations:
root@debian:# /root/pt-stalk --collect --no-stalk --threshold=0 --run-time 61 --sleep=120 --iterations=10 -- -uroot -pmsandbox -h 127.0.0.1 -P 5520
2012_03_15_11_14_08 Starting /root/pt-stalk --function=status --variable=
With sleep=0, pt-stalk run so fast that you don't get some useful information, like iostat or vmstat for example. The workaround is the use of --stalk option with low values:
root@debian:# /root/pt-stalk --collect --variable=
2012_03_15_05_11_33 Starting /root/pt-stalk --function=status --variable=
Now, pt-stalk has time to collect all the data from the system.
Related branches
- Daniel Nichter: Approve
-
Diff: 113 lines (+35/-14)4 files modifiedbin/pt-stalk (+6/-6)
lib/bash/collect.sh (+6/-6)
t/lib/bash/collect.sh (+11/-1)
t/pt-stalk/pt-stalk.t (+12/-1)
- Daniel Nichter: Approve
-
Diff: 113 lines (+35/-14)4 files modifiedbin/pt-stalk (+6/-6)
lib/bash/collect.sh (+6/-6)
t/lib/bash/collect.sh (+11/-1)
t/pt-stalk/pt-stalk.t (+12/-1)
summary: |
- pt-stalk ignores --sleep and --iterations when running with --no-stalk + pt-stalk ignores --sleep and --iterations with --no-stalk |
tags: | added: option-ignored pt-stalk |
When I want to collect some information now() rather than letting pt-stalk trigger on some condition, I usually use:
pt-stalk --cycles=1 --iterations=1 --threshold=1
However, there's the same problem that there's just one sample of vmstat, mpstat & iostat while I'd expect 30 in this case.