CHANGES.txt 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. Next Release
  2. - Supervisorctl now reports a better error message when the main
  3. supervisor XML-RPC namespace is not registered. Thanks to
  4. Mike Orr for reporting this. (Mike Naberezny)
  5. - Create 'scripts' directory within supervisor package, move
  6. 'pidproxy.py' there, and place sample event listener and comm
  7. event programs within the directory.
  8. - When an event notification is buffered (either because a listener
  9. rejected it or because all listeners were busy when we attempted
  10. to send it originally), we now rebuffer it in a way that will
  11. result in it being retried earlier than it used to be.
  12. - When a listener process exits (unexpectedly) before transitioning
  13. from the BUSY state, rebuffer the event that was being processed.
  14. - supervisorctl 'tail' command now accepts a trailing specifier:
  15. 'stderr' or 'stdout', which respectively, allow a user to tail the
  16. stderr or stdout of the named process. When this specifier is not
  17. provided, tail defaults to stdout.
  18. - supervisor 'clear' command now clears both stderr and stdout logs
  19. for the given process.
  20. - When a process encounters a spawn error as a result of a failed
  21. execve or when it cannot setuid to a given uid, it now puts this
  22. info into the process' stderr log rather than its stdout log.
  23. - The event listener protocol header now contains the 'server'
  24. identifier, the 'pool' that the event emanated from, and the
  25. 'poolserial' as well as the values it previously contained
  26. (version, event name, serial, and length). The server identifier
  27. is taken from the config file options value 'identifier', the
  28. 'pool' value is the name of the listener pool that this event
  29. emanates from, and the 'poolserial' is a serial number assigned to
  30. the event local to the pool that is processing it.
  31. - The event listener protocol header is now a sequence of key-value
  32. pairs rather than a list of positional values. Previously, a
  33. representative header looked like:
  34. SUPERVISOR3.0 PROCESS_COMMUNICATION_STDOUT 30 22\n
  35. Now it looks like:
  36. ver:3.0 server:supervisor serial:21 ...
  37. - Specific event payload serializations have changed. All event
  38. types that deal with processes now include the pid of the process
  39. that the event is describing. The PROCESS_COMMUNICATION_EVENT
  40. serializations now separate the data sent by the process from the
  41. "headers" using two linefeed characters (to make parsing easier).
  42. In event serialization "header" values, we've removed the space
  43. between the header name and the value and headers are now
  44. separated by a space instead of a line feed. The names of keys in
  45. all event types have had underscores removed.
  46. - Abandon the use of the Python stdlib 'logging' module for speed
  47. and cleanliness purposes. We've rolled our own.
  48. - Fix crash on start if AUTO logging is used with a max_bytes of
  49. zero for a process.
  50. - Improve process communication event performance.
  51. - The process config parameters 'stdout_capturefile' and
  52. 'stderr_capturefile' are no longer valid. They have been replaced
  53. with the 'stdout_capture_maxbytes' and 'stderr_capture_maxbytes'
  54. parameters, which are meant to be suffix-multipled integers. They
  55. both default to zero. When they are zero, process communication
  56. event capturing is not performed. When either is nonzero, the
  57. value represents the maximum number of bytes that will be captured
  58. between process event start and end tags. This change was to
  59. support the fact that we no longer keep capture data in a separate
  60. file, we just use a FIFO in RAM to maintain capture info. For
  61. users whom don't care about process communication events, or whom
  62. haven't changed the defaults for 'stdout_capturefile' or
  63. 'stderr_capturefile', they needn't do anything to their
  64. configurations to deal with this change.
  65. 3.0a2
  66. - Fixed the README.txt example for defining the supervisor RPC
  67. interface in the configuration file. Thanks to Drew Perttula.
  68. - Fixed a bug where process communication events would not have the
  69. proper payload if the payload data was very short.
  70. - when supervisord attempted to kill a process with SIGKILL after
  71. the process was not killed within "stopwaitsecs" using a "normal"
  72. kill signal, supervisord would crash with an improper
  73. AssertionError. Thanks to Calvin Hendryx-Parker.
  74. - On Linux, Supervisor would consume too much CPU in an effective
  75. "busywait" between the time a subprocess exited and the time at
  76. which supervisor was notified of its exit status. Thanks to Drew
  77. Perttula.
  78. - RPC interface behavior change: if the RPC method
  79. "sendProcessStdin" is called against a process that has closed its
  80. stdin file descriptor (e.g. it has done the equivalent of
  81. "sys.stdin.close(); os.close(0)"), we return a NO_FILE fault
  82. instead of accepting the data.
  83. - Changed the semantics of the process configuration 'autorestart'
  84. parameter with respect to processes which move between the RUNNING
  85. and EXITED state. 'autorestart' was previously a boolean. Now
  86. it's a trinary, accepting one of 'false', 'unexpected', or 'true'.
  87. If it's 'false', a process will never be automatically restarted
  88. from the EXITED state. If it's 'unexpected', a process that
  89. enters the EXITED state will be automatically restarted if it
  90. exited with an exit code that was not named in the process
  91. config's 'exitcodes' list. If it's 'true', a process that enters
  92. the EXITED state will be automatically restarted unconditionally.
  93. The default is now 'unexpected' (it was previously 'true'). The
  94. readdition of this feature is a reversion of the behavior change
  95. note in the changelog notes for 3.0a1 that asserted we never cared
  96. about the process' exit status when determining whether to restart
  97. it or not.
  98. - setup.py develop (and presumably setup.py install) would fail
  99. under Python 2.3.3, because setuptools attempted to import
  100. 'splituser' from urllib2, and it didn't exist.
  101. - It's now possible to use 'setup.py install' and 'setup.py develop'
  102. on systems which do not have a C compiler if you set the
  103. environment variable "NO_MELD3_EXTENSION_MODULES=1" in the shell
  104. in which you invoke these commands (versions of meld3 > 0.6.1
  105. respect this envvar and do not try to compile optional C
  106. extensions when it's set).
  107. - The test suite would fail on Python versions <= 2.3.3 because
  108. the "assertTrue" and "assertFalse" methods of unittest.TestCase
  109. didn't exist in those versions.
  110. - The 'supervisorctl' and 'supervisord' wrapper scripts were disused
  111. in favor of using setuptools' 'console_scripts' entry point settings.
  112. - Documentation files and the sample configuration file are put into
  113. the generated supervisor egg's 'doc' directory.
  114. _ Using the web interface would cause fairly dramatic memory
  115. leakage. We now require a version of meld3 that does not appear
  116. to leak memory from its C extensions (0.6.3).
  117. 3.0a1
  118. - Default config file comment documented 10 secs as default for
  119. 'startsecs' value in process config, in reality it was 1 sec.
  120. Thanks to Christoph Zwerschke.
  121. - Make note of subprocess environment behavior in README.txt.
  122. Thanks to Christoph Zwerschke.
  123. - New "strip_ansi" config file option attempts to strip ANSI escape
  124. sequences from logs for smaller/more readable logs (submitted by
  125. Mike Naberezny).
  126. - The XML-RPC method supervisor.getVersion() has been renamed for
  127. clarity to supervisor.getAPIVersion(). The old name is aliased
  128. for compatibility but is deprecated and will be removed in a
  129. future version (Mike Naberezny).
  130. - Improved web interface styling (Mike Naberezny, Derek DeVries)
  131. - The XML-RPC method supervisor.startProcess() now checks that
  132. the file exists and is executable (Mike Naberezny).
  133. - Two environment variables, "SUPERVISOR_PROCESS_NAME" and
  134. "SUPERVISOR_PROCESS_GROUP" are set in the environment of child
  135. processes, representing the name of the process and group in
  136. supervisor's configuration.
  137. - Process state map change: a process may now move directly from the
  138. STARTING state to the STOPPING state (as a result of a stop
  139. request).
  140. - Behavior change: if 'autorestart' is true, even if a process exits
  141. with an "expected" exit code, it will still be restarted. In the
  142. immediately prior release of supervisor, this was true anyway, and
  143. no one complained, so we're going to consider that the "officially
  144. correct" behavior from now on.
  145. - Supervisor now logs subprocess stdout and stderr independently.
  146. The old program config keys "logfile", "logfile_backups" and
  147. "logfile_maxbytes" are superseded by "stdout_logfile",
  148. "stdout_logfile_backups", and "stdout_logfile_maxbytes". Added
  149. keys include "stderr_logfile", "stderr_logfile_backups", and
  150. "stderr_logfile_maxbytes". An additional "redirect_stderr" key is
  151. used to cause program stderr output to be sent to its stdin
  152. channel. The keys "log_stderr" and "log_stdout" have been
  153. removed.
  154. - '[program:x]' config file sections now represent "homgeneous
  155. process groups" instead of single processes. A "numprocs" key in
  156. the section represents the number of processes that are in the
  157. group. A "process_name" key in the section allows composition of
  158. the each process' name within the homogeneous group.
  159. - A new kind of config file section, '[group:x]' now exists,
  160. allowing users to group heterogeneous processes together into a
  161. process group that can be controlled as a unit from a client.
  162. - Supervisord now emits "events" at certain points in its normal
  163. operation. These events include supervisor state change events,
  164. process state change events, and "process communication events".
  165. - A new kind of config file section '[eventlistener:x]' now exists.
  166. Each section represents an "event listener pool", which is a
  167. special kind of homogeneous process group. Each process in the
  168. pool is meant to receive supervisor "events" via its stdin and
  169. perform some notification (e.g. send a mail, log, make an http
  170. request, etc.)
  171. - Supervisord can now capture data between special tokens in
  172. subprocess stdout/stderr output and emit a "process communications
  173. event" as a result.
  174. - Supervisor's XML-RPC interface may be extended arbitrarily by
  175. programmers. Additional top-level namespace XML-RPC interfaces
  176. can be added using the '[rpcinterface:foo]' declaration in the
  177. configuration file.
  178. - New 'supervisor'-namespace XML-RPC methods have been added:
  179. getAPIVersion (returns the XML-RPC API version, the older
  180. "getVersion" is now deprecated), "startProcessGroup" (starts all
  181. processes in a supervisor process group), "stopProcessGroup"
  182. (stops all processes in a supervisor process group), and
  183. "sendProcessStdin" (sends data to a process' stdin file
  184. descriptor).
  185. - 'supervisor'-namespace XML-RPC methods which previously accepted
  186. ony a process name as "name" (startProcess, stopProcess,
  187. getProcessInfo, readProcessLog, tailProcessLog, and
  188. clearProcessLog) now accept a "name" which may contain both the
  189. process name and the process group name in the form
  190. 'groupname:procname'. For backwards compatibility purposes,
  191. "simple" names will also be accepted but will be expanded
  192. internally (e.g. if "foo" is sent as a name, it will be expanded
  193. to "foo:foo", representing the foo process within the foo process
  194. group).
  195. - 2.X versions of supervisorctl will work against supervisor 3.0
  196. servers in a degraded fashion, but 3.X versions of supervisorctl
  197. will not work at all against supervisor 2.X servers.
  198. Known issues:
  199. - supervisorctl and the web interface do not yet allow you to stop
  200. / start / restart a process group as a unit.
  201. - supervisorctl and the web interface do not allow you to tail or
  202. otherwise examine stderr log files of processes.
  203. - buffered event notifications may be lost at supervisor shutdown
  204. or restart time.
  205. Acknowledgements:
  206. Maintainable Software (http://www.maintainable.com) contracted
  207. Agendless Consulting to add the event notification features and
  208. extensible XML-RPC namespaces feature to supervisor.
  209. 2.2b1
  210. - Individual program configuration sections can now specify an
  211. environment.
  212. - Added a 'version' command to supervisorctl. This returns the
  213. version of the supervisor2 package which the remote supervisord
  214. process is using.
  215. 2.1
  216. - When supervisord was invoked more than once, and its configuration
  217. was set up to use a UNIX domain socket as the HTTP server, the
  218. socket file would be erased in error. The symptom of this was
  219. that a subsequent invocation of supervisorctl could not find the
  220. socket file, so the process could not be controlled (it and all of
  221. its subprocesses would need to be killed by hand).
  222. - Close subprocess file descriptors properly when a subprocess exits
  223. or otherwise dies. This should result in fewer "too many open
  224. files to spawn foo" messages when supervisor is left up for long
  225. periods of time.
  226. - When a process was not killable with a "normal" signal at shutdown
  227. time, too many "INFO: waiting for x to die" messages would be sent
  228. to the log until we ended up killing the process with a SIGKILL.
  229. Now a maximum of one every three seconds is sent up until SIGKILL
  230. time. Thanks to Ian Bicking.
  231. - Add an assertion: we never want to try to marshal None to XML-RPC
  232. callers. Issue 223 in the collector from vgatto indicates that
  233. somehow a supervisor XML-RPC method is returning None (which
  234. should never happen), but I cannot identify how. Maybe the
  235. assertion will give us more clues if it happens again.
  236. - Supervisor would crash when run under Python 2.5 because the
  237. xmlrpclib.Transport class in Python 2.5 changed in a
  238. backward-incompatible way. Thanks to Eric Westra for the bug
  239. report and a fix.
  240. - Tests now pass under Python 2.5.
  241. - Better supervisorctl reporting on stop requests that have a FAILED
  242. status.
  243. - Removed duplicated code (readLog/readMainLog), thanks to Mike
  244. Naberezny.
  245. - Added tailProcessLog command to the XML-RPC API. It provides a
  246. more efficient way to tail logs than readProcessLog(). Use
  247. readProcessLog() to read chunks and tailProcessLog() to tail.
  248. (thanks to Mike Naberezny).
  249. 2.1b2
  250. - Added new tailProcessLog() command to the XML-RPC API that
  251. is more efficient for just tailing than the existing
  252. readProcessLog() command (Mike Naberezny).
  253. 2.1b1
  254. - "supervisord -h" and "supervisorctl -h" did not work (traceback
  255. instead of showing help view (thanks to Damjan from Macedonia for
  256. the bug report).
  257. - Processes which started successfully after failing to start
  258. initially are no longer reported in BACKOFF state once they are
  259. started successfully (thanks to Damjan from Macdonia for the bug
  260. report).
  261. - Add new 'maintail' command to supervisorctl shell, which allows
  262. you to tail the 'main' supervisor log. This uses a new
  263. readMainLog xmlrpc API.
  264. - Various process-state-transition related changes, all internal.
  265. README.txt updated with new state transition map.
  266. - startProcess and startAllProcesses xmlrpc APIs changed: instead of
  267. accepting a timeout integer, these accept a wait boolean (timeout
  268. is implied by process' "startsecs" configuration). If wait is
  269. False, do not wait for startsecs.
  270. Known issues:
  271. Code does not match state transition map. Processes which are
  272. configured as autorestarting which start "successfully" but
  273. subsequently die after 'startsecs' go through the transitions
  274. RUNNING -> BACKOFF -> STARTING instead of the correct transitions
  275. RUNNING -> EXITED -> STARTING. This has no real negative effect,
  276. but should be fixed for correctness.
  277. 2.0
  278. - pidfile written in daemon mode had incorrect pid.
  279. - supervisorctl: tail (non -f) did not pass through proper error
  280. messages when supplied by the server.
  281. - Log signal name used to kill processes at debug level.
  282. - supervisorctl "tail -f" didn't work with supervisorctl sections
  283. configured with an absolute unix:// URL
  284. - New "environment" config file option allows you to add environment
  285. variable values to supervisord environment from config file.
  286. 2.0b1
  287. - fundamental rewrite based on 1.0.6, use distutils (only) for
  288. installation, use ConfigParser rather than ZConfig, use HTTP for
  289. wire protocol, web interface, less lies in supervisorctl.