« Previous | Next » 

Revision d509e6da

IDd509e6da7a89512694d27d7d9cec57334fd4a5f9

Added by Stratos Psomadakis almost 11 years ago

Add greenlet tracing code in snf-common

Add greenlet tracing code in snf-common, useful for debugging stuck
gevent gunicorn workers.

If the environmental variable SYNNEFO_TRACE is set to a non-empty
string, the tracing code will install a SIGTRAP signal handler for the
process, after the Synnefo settings have been imported.

Sending a SIGTRAP signal to the process (eg a gevent gunicorn worker)
will then print the stack trace of each greenlet spawned within the
process to stderr.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences