Log server load stats

Bug #729787 reported by Anthony Lenton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ratings and Reviews server
Confirmed
Medium
Unassigned

Bug Description

Using a response middleware we can log server load stats once per request.
This logging should be enabled via a config setting.
Some necessary stats that we should log are:
    - Cpu load.
    - Memory usage.
    - Disk activity.

Changed in rnr-server:
importance: Undecided → Low
tags: added: kb-task
tags: added: kb-feature
removed: kb-task
Changed in rnr-server:
importance: Low → Medium
Danny Tamez (zematynnad)
Changed in rnr-server:
assignee: nobody → Danny Tamez (zematynnad)
status: New → In Progress
Changed in rnr-server:
status: In Progress → Fix Committed
tags: added: sp-1
tags: added: qa-untestable
tags: removed: qa-untestable
Revision history for this message
Anthony Lenton (elachuni) wrote :

Bumped back to confirmed as the provided solution is impractical. It stalls a server request for a full second each time server stats are gathered.

Changed in rnr-server:
status: Fix Committed → Confirmed
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

How much resolution do you need in order to get useful server stats? Is this for generating graphs, adding info for debugging individual requests, or something else?

If it needs to be per-request, could it be limited to only the requests which generate errors? Could it be calculated after sending a response to the client?

If it's just for periodic data, how about using a simple proc/sys logging daemon? They're pretty easy to write, and wouldn't interfere with server response times.

Danny Tamez (zematynnad)
Changed in rnr-server:
assignee: Danny Tamez (zematynnad) → nobody
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.