pt-stalk doesn't collect the correct number of mysqladmin samples

Bug #1166414 reported by Ryan Lowe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Triaged
Undecided
Unassigned

Bug Description

When I run:

%> pt-stalk --no-stalk --iterations 1 --run-time=3600
...

It finishes correctly, but:

%> grep -c Bytes_sent /var/lib/pt-stalk/(TS)-mysqladmin
3592
%> grep -c TS /var/lib/pt-stalk/(TS)-df
3600

Suggested behavior would be to have all tools collect the same number of iterations :)

Tags: pt-stalk
tags: added: pt-stalk
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

mysqladmin is working on its own. So pt-stalk tells it to get 3600 samples (-i1 -c3600), but either that program is inexact or pt-stalk is killing it too soon. The other data like -df is inside a loop controlled by pt-stalk, so it's more or less guaranteed to get the number of samples. This loop should also allow mysqladmin to run for the full 3600 seconds, but I guess not. I suppose we could run mysqladmin in the loop too?

Changed in percona-toolkit:
status: New → Triaged
summary: - pt-stalk collections are not consistent
+ pt-stalk doesn't collect the correct number of mysqladmin samples
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-1095

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.