Changes between Version 23 and Version 24 of GoogleSOC


Ignore:
Timestamp:
04/02/2012 03:10:19 PM (8 years ago)
Author:
Glyph
Comment:

reactor metrics interface

Legend:

Unmodified
Added
Removed
Modified
  • GoogleSOC

    v23 v24  
    3535
    3636Requirements: In addition to Python, a decent understanding of networking and socket APIs.
     37
     38
     39=== Reactor Metrics and Monitoring Interface ===
     40
     41The reactor runs lots of events; connectionMade, dataReceived, connectionLost, timed calls, and queued calls from callFromThread.  But currently there's no tools to discover how long those events took, or what resources they consumed, so when one event makes your reactor get "stuck" you might not know which one it is without some manual instrumentation.
     42
     43You could build a reporting protocol which would report timings and potentially other relevant status information on the reactor's activities to a client connected on an appropriate socket.  For example: the longest, shortest, mean and median event times over a particular interval, and which objects and code were involved in the longest and shortest.  (This would not necessarily involve a user interface, just the internal infrastructure necessary to extract and report this information to other tools which could make sense of it.)
     44
     45Requirements: an understanding of event-driven programming, and some experience with monitoring or performance tools.
    3746
    3847