CHANGES.txt 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. 3.0a1
  2. - Default config file comment documented 10 secs as default for
  3. 'startsecs' value in process config, in reality it was 1 sec.
  4. Thanks to Christoph Zwerschke.
  5. - Make note of subprocess environment behavior in README.txt.
  6. Thanks to Christoph Zwerschke.
  7. - New "strip_ansi" config file option attempts to strip ANSI escape
  8. sequences from logs for smaller/more readable logs (submitted by
  9. Mike Naberezny).
  10. - The XML-RPC method supervisor.getVersion() has been renamed for
  11. clarity to supervisor.getAPIVersion(). The old name is aliased
  12. for compatibility but is deprecated and will be removed in a
  13. future version (Mike Naberezny).
  14. - Improved web interface styling (Mike Naberezny, Derek DeVries)
  15. - The XML-RPC method supervisor.startProcess() now checks that
  16. the file exists and is executable (Mike Naberezny).
  17. - Two environment variables, "SUPERVISOR_PROCESS_NAME" and
  18. "SUPERVISOR_PROCESS_GROUP" are set in the environment of child
  19. processes, representing the name of the process and group in
  20. supervisor's configuration.
  21. - Process state map change: a process may now move directly from the
  22. STARTING state to the STOPPING state (as a result of a stop
  23. request).
  24. - Behavior change: if 'autorestart' is true, even if a process exits
  25. with an "expected" exit code, it will still be restarted. In the
  26. immediately prior release of supervisor, this was true anyway, and
  27. no one complained, so we're going to consider that the "officially
  28. correct" behavior from now on.
  29. - Supervisor now logs subprocess stdout and stderr independently.
  30. The old program config keys "logfile", "logfile_backups" and
  31. "logfile_maxbytes" are superseded by "stdout_logfile",
  32. "stdout_logfile_backups", and "stdout_logfile_maxbytes". Added
  33. keys include "stderr_logfile", "stderr_logfile_backups", and
  34. "stderr_logfile_maxbytes". An additional "redirect_stderr" key is
  35. used to cause program stderr output to be sent to its stdin
  36. channel. The keys "log_stderr" and "log_stdout" have been
  37. removed.
  38. - '[program:x]' config file sections now represent "homgeneous
  39. process groups" instead of single processes. A "numprocs" key in
  40. the section represents the number of processes that are in the
  41. group. A "process_name" key in the section allows composition of
  42. the each process' name within the homogeneous group.
  43. - A new kind of config file section, '[group:x]' now exists,
  44. allowing users to group heterogeneous processes together into a
  45. process group that can be controlled as a unit from a client.
  46. - Supervisord now emits "events" at certain points in its normal
  47. operation. These events include supervisor state change events,
  48. process state change events, and "process communication events".
  49. - A new kind of config file section '[eventlistener:x]' now exists.
  50. Each section represents an "event listener pool", which is a
  51. special kind of homogeneous process group. Each process in the
  52. pool is meant to receive supervisor "events" via its stdin and
  53. perform some notification (e.g. send a mail, log, make an http
  54. request, etc.)
  55. - Supervisord can now capture data between special tokens in
  56. subprocess stdout/stderr output and emit a "process communications
  57. event" as a result.
  58. - Supervisor's XML-RPC interface may be extended arbitrarily by
  59. programmers. Additional top-level namespace XML-RPC interfaces
  60. can be added using the '[rpcinterface:foo]' declaration in the
  61. configuration file.
  62. - New 'supervisor'-namespace XML-RPC methods have been added:
  63. getAPIVersion (returns the XML-RPC API version, the older
  64. "getVersion" is now deprecated), "startProcessGroup" (starts all
  65. processes in a supervisor process group), "stopProcessGroup"
  66. (stops all processes in a supervisor process group), and
  67. "sendProcessStdin" (sends data to a process' stdin file
  68. descriptor).
  69. - 'supervisor'-namespace XML-RPC methods which previously accepted
  70. ony a process name as "name" (startProcess, stopProcess,
  71. getProcessInfo, readProcessLog, tailProcessLog, and
  72. clearProcessLog) now accept a "name" which may contain both the
  73. process name and the process group name in the form
  74. 'groupname:procname'. For backwards compatibility purposes,
  75. "simple" names will also be accepted but will be expanded
  76. internally (e.g. if "foo" is sent as a name, it will be expanded
  77. to "foo:foo", representing the foo process within the foo process
  78. group).
  79. 2.2b1
  80. - Individual program configuration sections can now specify an
  81. environment.
  82. - Added a 'version' command to supervisorctl. This returns the
  83. version of the supervisor2 package which the remote supervisord
  84. process is using.
  85. 2.1
  86. - When supervisord was invoked more than once, and its configuration
  87. was set up to use a UNIX domain socket as the HTTP server, the
  88. socket file would be erased in error. The symptom of this was
  89. that a subsequent invocation of supervisorctl could not find the
  90. socket file, so the process could not be controlled (it and all of
  91. its subprocesses would need to be killed by hand).
  92. - Close subprocess file descriptors properly when a subprocess exits
  93. or otherwise dies. This should result in fewer "too many open
  94. files to spawn foo" messages when supervisor is left up for long
  95. periods of time.
  96. - When a process was not killable with a "normal" signal at shutdown
  97. time, too many "INFO: waiting for x to die" messages would be sent
  98. to the log until we ended up killing the process with a SIGKILL.
  99. Now a maximum of one every three seconds is sent up until SIGKILL
  100. time. Thanks to Ian Bicking.
  101. - Add an assertion: we never want to try to marshal None to XML-RPC
  102. callers. Issue 223 in the collector from vgatto indicates that
  103. somehow a supervisor XML-RPC method is returning None (which
  104. should never happen), but I cannot identify how. Maybe the
  105. assertion will give us more clues if it happens again.
  106. - Supervisor would crash when run under Python 2.5 because the
  107. xmlrpclib.Transport class in Python 2.5 changed in a
  108. backward-incompatible way. Thanks to Eric Westra for the bug
  109. report and a fix.
  110. - Tests now pass under Python 2.5.
  111. - Better supervisorctl reporting on stop requests that have a FAILED
  112. status.
  113. - Removed duplicated code (readLog/readMainLog), thanks to Mike
  114. Naberezny.
  115. - Added tailProcessLog command to the XML-RPC API. It provides a
  116. more efficient way to tail logs than readProcessLog(). Use
  117. readProcessLog() to read chunks and tailProcessLog() to tail.
  118. (thanks to Mike Naberezny).
  119. 2.1b2
  120. - Added new tailProcessLog() command to the XML-RPC API that
  121. is more efficient for just tailing than the existing
  122. readProcessLog() command (Mike Naberezny).
  123. 2.1b1
  124. - "supervisord -h" and "supervisorctl -h" did not work (traceback
  125. instead of showing help view (thanks to Damjan from Macedonia for
  126. the bug report).
  127. - Processes which started successfully after failing to start
  128. initially are no longer reported in BACKOFF state once they are
  129. started successfully (thanks to Damjan from Macdonia for the bug
  130. report).
  131. - Add new 'maintail' command to supervisorctl shell, which allows
  132. you to tail the 'main' supervisor log. This uses a new
  133. readMainLog xmlrpc API.
  134. - Various process-state-transition related changes, all internal.
  135. README.txt updated with new state transition map.
  136. - startProcess and startAllProcesses xmlrpc APIs changed: instead of
  137. accepting a timeout integer, these accept a wait boolean (timeout
  138. is implied by process' "startsecs" configuration). If wait is
  139. False, do not wait for startsecs.
  140. Known issues:
  141. Code does not match state transition map. Processes which are
  142. configured as autorestarting which start "successfully" but
  143. subsequently die after 'startsecs' go through the transitions
  144. RUNNING -> BACKOFF -> STARTING instead of the correct transitions
  145. RUNNING -> EXITED -> STARTING. This has no real negative effect,
  146. but should be fixed for correctness.
  147. 2.0
  148. - pidfile written in daemon mode had incorrect pid.
  149. - supervisorctl: tail (non -f) did not pass through proper error
  150. messages when supplied by the server.
  151. - Log signal name used to kill processes at debug level.
  152. - supervisorctl "tail -f" didn't work with supervisorctl sections
  153. configured with an absolute unix:// URL
  154. - New "environment" config file option allows you to add environment
  155. variable values to supervisord environment from config file.
  156. 2.0b1
  157. - fundamental rewrite based on 1.0.6, use distutils (only) for
  158. installation, use ConfigParser rather than ZConfig, use HTTP for
  159. wire protocol, web interface, less lies in supervisorctl.