Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 880688 Details for
Bug 1081962
[SCALE] block storage domain monitoring thread slows down when storage operations are running
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
repostats tool - generate repostats statistics from vdsm logs
repostat (text/plain), 899 bytes, created by
Nir Soffer
on 2014-03-31 10:46:42 UTC
(
hide
)
Description:
repostats tool - generate repostats statistics from vdsm logs
Filename:
MIME Type:
Creator:
Nir Soffer
Created:
2014-03-31 10:46:42 UTC
Size:
899 bytes
patch
obsolete
>#!/usr/bin/env python >""" >Parse repoStats log lines and calculate statistics. > >Usage: repostat vdsm.log [...] >""" > >import fileinput >import re > >prefix = re.compile(r'Thread-\d+::INFO::.+Run and protect: repoStats, Return response: ') > >stats = {} > >def liststat(a): > b = sorted(a) > return sum(b) / len(b), b[0], b[-1] > >for line in fileinput.input(): > match = prefix.match(line) > if not match: > continue > response = eval(line[match.end():]) > for uuid, info in response.items(): > stats.setdefault(uuid, {'delays': [], 'checks': []}) > stats[uuid]['delays'].append(float(info['delay'])) > stats[uuid]['checks'].append(float(info['lastCheck'])) > >for uuid, info in stats.iteritems(): > print 'domain:', uuid > print ' delay avg: %f min: %f max: %f' % liststat(info['delays']) > print ' last check avg: %f min: %f max: %f' % liststat(info['checks'])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1081962
: 880688 |
1061456
|
1120440
|
1121610
|
1121611
|
1122471
|
1122472
|
1122476
|
1127299
|
1127303
|
1127304
|
1129733
|
1129734
|
1129737
|
1129751
|
1129754
|
1130967
|
1130968
|
1130982
|
1130983
|
1130984
|
1187507
|
1187508
|
1187510
|
1187511
|
1192516
|
1197972