osrf_control --diagnostic should report max-children values

Bug #1711194 reported by Bill Erickson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSRF
Fix Released
Wishlist
Unassigned

Bug Description

In addition to displaying the number of active drones per service, it would be helpful if osrf_control --diagnostic also displayed the maximum number of allowed drones per service.

Patch en route.

Tags: pullrequest
Revision history for this message
Bill Erickson (berick) wrote :

http://git.evergreen-ils.org/?p=working/OpenSRF.git;a=shortlog;h=refs/heads/user/berick/lp1711194-osrf-control-diag-max-child

From the commit:

--diagnostic output shows the maximum number of allowed drones per service along with the active drone count. Additionally, a usage percentage value is displayed.

E.g.

$ /openils/bin/osrf_control -l --diagnostic

* open-ils.acq [1581] uptime=00:35 cputime=00:00:00 #drones=1/15 6%
* open-ils.actor [1629] uptime=00:35 cputime=00:00:00 #drones=2/15 13%

tags: added: pullrequest
Changed in opensrf:
milestone: none → 2.5.1
assignee: Bill Erickson (berick) → nobody
Revision history for this message
Bill Erickson (berick) wrote :

Just force-pushed a change to right-justify the percents display. Easier on the eyes.

Revision history for this message
Chris Sharp (chrissharp123) wrote :
tags: added: signedoff
Revision history for this message
Galen Charlton (gmc) wrote :

I've tested and it does the thing, but it's a bit too easy to see ugly division by zero error messages. The user/gmcharlt/lp1711194-diag-improved branch has a signoff on the original patch as well as a follow-up; removing signoff tag for and requesting review of the follow-up.

http://git.evergreen-ils.org/?p=working/OpenSRF.git;a=shortlog;h=refs/heads/user/gmcharlt/lp1711194-diag-improved

tags: removed: signedoff
Changed in opensrf:
status: New → Confirmed
Bill Erickson (berick)
Changed in opensrf:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

Good catch, thanks Galen. Tested and merged to master / rel_2_5.

Changed in opensrf:
status: Confirmed → Fix Committed
assignee: Bill Erickson (berick) → nobody
Changed in opensrf:
status: Fix Committed → Fix Released
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.