CHANGES.txt 9.9 KB

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