CHANGES.txt 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. Next Release
  2. - Per-process exitcodes= configuration now will not accept exit
  3. codes that are integers above 255 (supervisord will not start when
  4. one of the exit codes is outside the range of 0 - 255).
  5. - Per-process 'directory' value can now contain expandable values
  6. like %(here)s. (See http://www.plope.com/software/collector/262).
  7. - Accepted patch from Roger Hoover to allow for a new sort of
  8. process group: "fcgi-program". Adding one of these to your
  9. supervisord.conf allows you to control fastcgi programs. FastCGI
  10. programs cannot belong to heterogenous groups.
  11. The configuration for FastCGI programs is the same as regular
  12. programs except an additional "socket" parameter. Substitution
  13. happens on the socket parameter with the 'here' and 'program_name'
  14. variables::
  15. [fcgi-program:fcgi_test]
  16. ;socket=tcp://localhost:8002
  17. socket=unix:///path/to/fcgi/socket
  18. - Supervisorctl now supports a plugin model for supervisorctl
  19. commands.
  20. - Added the ability to retrieve supervisord's own pid through
  21. supervisor.getPID() on the XML-RPC interface or a new
  22. "pid" command on supervisorctl.
  23. 3.0a6
  24. - The RotatingFileLogger had a race condition in its doRollover
  25. method whereby a file might not actually exist despite a call to
  26. os.path.exists on the line above a place where we try to remove
  27. it. We catch the exception now and ignore the missing file.
  28. 3.0a5
  29. - Supervisorctl now supports persistent readline history. To
  30. enable, add "history_file = <pathname>" to the '[supervisorctl']
  31. section in your supervisord.conf file.
  32. - Multiple commands may now be issued on one supervisorctl command
  33. line, e.g. "restart prog; tail -f prog". Separate commands with a
  34. single semicolon; they will be executed in order as you would
  35. expect.
  36. 3.0a4
  37. - 3.0a3 broke Python 2.3 backwards compatibility.
  38. - On Debian Sarge, one user reported that a call to
  39. options.mktempfile would fail with an "[Errno 9] Bad file
  40. descriptor" at supervisord startup time. I was unable to
  41. reproduce this, but we found a workaround that seemed to work for
  42. him and it's included in this release. See
  43. http://www.plope.com/software/collector/252 for more information.
  44. Thanks to William Dode.
  45. - The fault ALREADY_TERMINATED has been removed. It was only
  46. raised by supervisor.sendProcessStdin(). That method now returns
  47. NOT_RUNNING for parity with the other methods. (Mike Naberezny)
  48. - The fault TIMED_OUT has been removed. It was not used.
  49. - Supervisor now depends on meld3 0.6.4, which does not compile its
  50. C extensions by default, so there is no more need to faff around
  51. with NO_MELD3_EXTENSION_MODULES during installation if you don't
  52. have a C compiler or the Python development libraries on your
  53. system.
  54. - Instead of making a user root around for the sample.conf file,
  55. provide a convenience command "echo_supervisord_conf", which he can
  56. use to echo the sample.conf to his terminal (and redirect to a file
  57. appropriately). This is a new user convenience (especially one who
  58. has no Python experience).
  59. - Added 'numprocs_start' config option to '[program:x]' and
  60. '[eventlistener:x]' sections. This is an offset used to compute
  61. the first integer that 'numprocs' will begin to start from.
  62. Contributed by Antonio Beamud Montero.
  63. - Added capability for '[include]' config section to config format.
  64. This section must contain a single key "files", which must name a
  65. space-separated list of file globs that will be included in
  66. supervisor's configuration. Contributed by Ian Bicking.
  67. - Invoking the 'reload' supervisorctl command could trigger a bug in
  68. supervisord which caused it to crash. See
  69. http://www.plope.com/software/collector/253 . Thanks to William
  70. Dode for a bug report.
  71. - The 'pidproxy' script was made into a console script.
  72. - The 'password' value in both the '[inet_http_server]' and
  73. '[unix_http_server]' sections can now optionally be specified as a
  74. SHA hexdigest instead of as cleartext. Values prefixed with
  75. '{SHA}' will be considered SHA hex digests. To encrypt a password
  76. to a form suitable for pasting into the configuration file using
  77. Python, do, e.g.:
  78. >>> import sha
  79. >>> '{SHA}' + sha.new('thepassword').hexdigest()
  80. '{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d'
  81. - The subtypes of the events PROCESS_STATE_CHANGE (and
  82. PROCESS_STATE_CHANGE itself) have been removed, replaced with a
  83. simpler set of PROCESS_STATE subscribable event types.
  84. The new event types are:
  85. PROCESS_STATE_STOPPED
  86. PROCESS_STATE_EXITED
  87. PROCESS_STATE_STARTING
  88. PROCESS_STATE_STOPPING
  89. PROCESS_STATE_BACKOFF
  90. PROCESS_STATE_FATAL
  91. PROCESS_STATE_RUNNING
  92. PROCESS_STATE_UNKNOWN
  93. PROCESS_STATE # abstract
  94. PROCESS_STATE_STARTING replaces:
  95. PROCESS_STATE_CHANGE_STARTING_FROM_STOPPED
  96. PROCESS_STATE_CHANGE_STARTING_FROM_BACKOFF
  97. PROCESS_STATE_CHANGE_STARTING_FROM_EXITED
  98. PROCESS_STATE_CHANGE_STARTING_FROM_FATAL
  99. PROCESS_STATE_RUNNING replaces
  100. PROCESS_STATE_CHANGE_RUNNING_FROM_STARTED
  101. PROCESS_STATE_BACKOFF replaces
  102. PROCESS_STATE_CHANGE_BACKOFF_FROM_STARTING
  103. PROCESS_STATE_STOPPING replaces:
  104. PROCESS_STATE_CHANGE_STOPPING_FROM_RUNNING
  105. PROCESS_STATE_CHANGE_STOPPING_FROM_STARTING
  106. PROCESS_STATE_EXITED replaces
  107. PROCESS_STATE_CHANGE_EXITED_FROM_RUNNING
  108. PROCESS_STATE_STOPPED replaces
  109. PROCESS_STATE_CHANGE_STOPPED_FROM_STOPPING
  110. PROCESS_STATE_FATAL replaces
  111. PROCESS_STATE_CHANGE_FATAL_FROM_BACKOFF
  112. PROCESS_STATE_UNKNOWN replaces PROCESS_STATE_CHANGE_TO_UNKNOWN
  113. PROCESS_STATE replaces PROCESS_STATE_CHANGE
  114. The PROCESS_STATE_CHANGE_EXITED_OR_STOPPED abstract event is gone.
  115. All process state changes have at least "processname",
  116. "groupname", and "from_state" (the name of the previous state) in
  117. their serializations.
  118. PROCESS_STATE_EXITED additionaly has "expected" (1 or 0) and "pid"
  119. (the process id) in its serialization.
  120. PROCESS_STATE_RUNNING, PROCESS_STATE_STOPPING,
  121. PROCESS_STATE_STOPPED additionally have "pid" in their
  122. serializations.
  123. PROCESS_STATE_STARTING and PROCESS_STATE_BACKOFF have "tries" in
  124. their serialization (initially "0", bumped +1 each time a start
  125. retry happens).
  126. - Remove documentation from README.txt, point people to
  127. http://supervisord.org/manual/ .
  128. - The eventlistener request/response protocol has changed. OK/FAIL
  129. must now be wrapped in a RESULT envelope so we can use it for more
  130. specialized communications.
  131. Previously, to signify success, an event listener would write the
  132. string 'OK\n' to its stdout. To signify that the event was seen
  133. but couldn't be handled by the listener and should be rebuffered,
  134. an event listener would write the string 'FAIL\n' to its stdout.
  135. In the new protocol, the listener must write the string:
  136. RESULT {resultlen}\n{result}
  137. For example, to signify OK:
  138. RESULT 2\nOK
  139. To signify FAIL:
  140. RESULT 4\nFAIL
  141. See the scripts/sample_eventlistener.py script for an example.
  142. - To provide a hook point for custom results returned from event
  143. handlers (see above) the [eventlistener:x] configuration sections
  144. now accept a "result_handler=" parameter,
  145. e.g. "result_handler=supervisor.dispatchers:default_handler" (the
  146. default) or "handler=mypackage:myhandler". The keys are pkgutil
  147. "entry point" specifications (importable Python function names).
  148. Result handlers must be callables which accept two arguments: one
  149. named "event" which represents the event, and the other named
  150. "result", which represents the listener's result. A result
  151. handler either executes successfully or raises an exception. If
  152. it raises a supervisor.dispatchers.RejectEvent exception, the
  153. event will be rebuffered, and the eventhandler will be placed back
  154. into the ACKNOWLEDGED state. If it raises any other exception,
  155. the event handler will be placed in the UNKNOWN state. If it does
  156. not raise any exception, the event is considered successfully
  157. processed. A result handler's return value is ignored. Writing a
  158. result handler is a "in case of emergency break glass" sort of
  159. thing, it is not something to be used for arbitrary business code.
  160. In particular, handlers *must not block* for any appreciable
  161. amount of time.
  162. The 'standard' eventlistener result handler
  163. (supervisor.dispatchers:default_handler) does nothing if it
  164. receives an "OK" and will raise a
  165. supervisor.dispatchers.RejectEvent exception if it receives any
  166. other value.
  167. - Supervisord now emits TICK events, which happen every N seconds.
  168. Three types of TICK events are available: TICK_5 (every five
  169. seconds), TICK_60 (every minute), TICK_3600 (every hour). Event
  170. listeners may subscribe to one of these types of events to perform
  171. every-so-often processing. TICK events are subtypes of the EVENT
  172. type.
  173. - Get rid of OSX platform-specific memory monitor and replace with
  174. memmon.py, which works on both Linux and Mac OS. This script is
  175. now a console script named "memmon".
  176. - Allow "web handler" (the handler which receives http requests from
  177. browsers visiting the web UI of supervisor) to deal with POST requests.
  178. - RPC interface methods stopProcess(), stopProcessGroup(), and
  179. stopAllProcesses() now take an optional "wait" argument that defaults
  180. to True for parity with the start methods.
  181. 3.0a3
  182. - Supervisorctl now reports a better error message when the main
  183. supervisor XML-RPC namespace is not registered. Thanks to
  184. Mike Orr for reporting this. (Mike Naberezny)
  185. - Create 'scripts' directory within supervisor package, move
  186. 'pidproxy.py' there, and place sample event listener and comm
  187. event programs within the directory.
  188. - When an event notification is buffered (either because a listener
  189. rejected it or because all listeners were busy when we attempted
  190. to send it originally), we now rebuffer it in a way that will
  191. result in it being retried earlier than it used to be.
  192. - When a listener process exits (unexpectedly) before transitioning
  193. from the BUSY state, rebuffer the event that was being processed.
  194. - supervisorctl 'tail' command now accepts a trailing specifier:
  195. 'stderr' or 'stdout', which respectively, allow a user to tail the
  196. stderr or stdout of the named process. When this specifier is not
  197. provided, tail defaults to stdout.
  198. - supervisor 'clear' command now clears both stderr and stdout logs
  199. for the given process.
  200. - When a process encounters a spawn error as a result of a failed
  201. execve or when it cannot setuid to a given uid, it now puts this
  202. info into the process' stderr log rather than its stdout log.
  203. - The event listener protocol header now contains the 'server'
  204. identifier, the 'pool' that the event emanated from, and the
  205. 'poolserial' as well as the values it previously contained
  206. (version, event name, serial, and length). The server identifier
  207. is taken from the config file options value 'identifier', the
  208. 'pool' value is the name of the listener pool that this event
  209. emanates from, and the 'poolserial' is a serial number assigned to
  210. the event local to the pool that is processing it.
  211. - The event listener protocol header is now a sequence of key-value
  212. pairs rather than a list of positional values. Previously, a
  213. representative header looked like:
  214. SUPERVISOR3.0 PROCESS_COMMUNICATION_STDOUT 30 22\n
  215. Now it looks like:
  216. ver:3.0 server:supervisor serial:21 ...
  217. - Specific event payload serializations have changed. All event
  218. types that deal with processes now include the pid of the process
  219. that the event is describing. In event serialization "header"
  220. values, we've removed the space between the header name and the
  221. value and headers are now separated by a space instead of a line
  222. feed. The names of keys in all event types have had underscores
  223. removed.
  224. - Abandon the use of the Python stdlib 'logging' module for speed
  225. and cleanliness purposes. We've rolled our own.
  226. - Fix crash on start if AUTO logging is used with a max_bytes of
  227. zero for a process.
  228. - Improve process communication event performance.
  229. - The process config parameters 'stdout_capturefile' and
  230. 'stderr_capturefile' are no longer valid. They have been replaced
  231. with the 'stdout_capture_maxbytes' and 'stderr_capture_maxbytes'
  232. parameters, which are meant to be suffix-multiplied integers.
  233. They both default to zero. When they are zero, process
  234. communication event capturing is not performed. When either is
  235. nonzero, the value represents the maximum number of bytes that
  236. will be captured between process event start and end tags. This
  237. change was to support the fact that we no longer keep capture data
  238. in a separate file, we just use a FIFO in RAM to maintain capture
  239. info. For users whom don't care about process communication
  240. events, or whom haven't changed the defaults for
  241. 'stdout_capturefile' or 'stderr_capturefile', they needn't do
  242. anything to their configurations to deal with this change.
  243. - Log message levels have been normalized. In particular, process
  244. stdin/stdout is now logged at 'debug' level rather than at 'trace'
  245. level ('trace' level is now reserved for output useful typically
  246. for debugging supervisor itself). See 'Supervisor Log Levels' in
  247. README.txt for more info.
  248. - When an event is rebuffered (because all listeners are busy or a
  249. listener rejected the event), the rebuffered event is now inserted
  250. in the head of the listener event queue. This doesn't guarantee
  251. event emission in natural ordering, because if a listener rejects
  252. an event or dies while it's processing an event, it can take an
  253. arbitrary amount of time for the event to be rebuffered, and other
  254. events may be processed in the meantime. But if pool listeners
  255. never reject an event or don't die while processing an event, this
  256. guarantees that events will be emitted in the order that they were
  257. received because if all listeners are busy, the rebuffered event
  258. will be tried again "first" on the next go-around.
  259. - Removed EVENT_BUFFER_OVERFLOW event type.
  260. - The supervisorctl xmlrpc proxy can now communicate with
  261. supervisord using a persistent HTTP connection.
  262. - A new module "supervisor.childutils" was added. This module
  263. provides utilities for Python scripts which act as children of
  264. supervisord. Most notably, it contains an API method
  265. "getRPCInterface" allows you to obtain an xmlrpxlib ServerProxy
  266. that is willing to communicate with the parent supervisor. It
  267. also contains utility functions that allow for parsing of
  268. supervisor event listener protocol headers. A pair of scripts
  269. (loop_eventgen.py and loop_listener.py) were added to the script
  270. directory that serve as examples about how to use the childutils
  271. module.
  272. - A new envvar is added to child process environments:
  273. SUPERVISOR_SERVER_URL. This contains the server URL for the
  274. supervisord running the child.
  275. - An 'OK' URL was added at /ok.html which just returns the string
  276. 'OK' (can be used for up checks or speed checks via
  277. plain-old-HTTP).
  278. - An additional command-line option '--profile_options' is accepted
  279. by the supervisord script for developer use.
  280. supervisord -n -c sample.conf --profile_options=cumulative,calls
  281. The values are sort_stats options that can be passed to the
  282. standard Python profiler's PStats sort_stats method.
  283. When you exit supervisor, it will print Python profiling output to
  284. stdout.
  285. - If cElementTree is installed in the Python used to invoke
  286. supervisor, an alternate (faster, by about 2X) XML parser will be
  287. used to parse XML-RPC request bodies. cElementTree was added as
  288. an "extras_require" option in setup.py.
  289. - Added the ability to start, stop, and restart process groups to
  290. supervisorctl. To start a group, use "start groupname:*". To
  291. start multiple groups, use "start groupname1:* groupname2:*".
  292. Equivalent commands work for "stop" and "restart". You can mix and
  293. match short processnames, fullly-specified group:process names,
  294. and groupsplats on the same line for any of these commands.
  295. - Added 'directory' option to process config. If you set this
  296. option, supervisor will chdir to this directory before executing
  297. the child program (and thus it will be the child's cwd).
  298. - Added 'umask' option to process config. If you set this option,
  299. supervisor will set the umask of the child program. (Thanks to
  300. Ian Bicking for the suggestion).
  301. - A pair of scripts "osx_memmon_eventgen.py" and
  302. "osx_memmon_listener.py" have been added to the scripts directory.
  303. If they are used together as described in their comments,
  304. processes which are consuming "too much" memory will be restarted.
  305. The 'eventgen' script only works on OSX (my main development
  306. platform) but it should be trivially generalizable to other
  307. operating systems.
  308. - The long form "--configuration" (-c) command line option for
  309. supervisord was broken. Reported by Mike Orr. (Mike Naberezny)
  310. - New log level: BLAT (blather). We log all
  311. supervisor-internal-related debugging info here. Thanks to Mike
  312. Orr for the suggestion.
  313. - We now allow supervisor to listen on both a UNIX domain socket and
  314. an inet socket instead of making them mutually exclusive. As a
  315. result, the options "http_port", "http_username", "http_password",
  316. "sockchmod" and "sockchown" are no longer part of the
  317. '[supervisord]' section configuration. These have been supplanted
  318. by two other sections: '[unix_http_server]' and
  319. '[inet_http_server']. You'll need to insert one or the other
  320. (depending on whether you want to listen on a UNIX domain socket
  321. or a TCP socket respectively) or both into your supervisord.conf
  322. file. These sections have their own options (where applicable)
  323. for port, username, password, chmod, and chown. See README.txt
  324. for more information about these sections.
  325. - All supervisord command-line options related to "http_port",
  326. "http_username", "http_password", "sockchmod" and "sockchown" have
  327. been removed (see above point for rationale).
  328. - The option that *used* to be 'sockchown' within the
  329. '[supervisord]' section (and is now named 'chown' within the
  330. '[unix_http_server]' section) used to accept a dot-separated
  331. user.group value. The separator now must be a colon ":",
  332. e.g. "user:group". Unices allow for dots in usernames, so this
  333. change is a bugfix. Thanks to Ian Bicking for the bug report.
  334. - If a '-c' option is not specified on the command line, both
  335. supervisord and supervisorctl will search for one in the paths
  336. './supervisord.conf' , './etc/supervisord.conf' (relative to the
  337. current working dir when supervisord or supervisorctl is invoked)
  338. or in '/etc/supervisord.conf' (the old default path). These paths
  339. are searched in order, and supervisord and supervisorctl will use
  340. the first one found. If none are found, supervisor will fail to
  341. start.
  342. - The Python string expression '%(here)s' (referring to the
  343. directory in which the the configuration file was found) can be
  344. used within the following sections/options within the config file:
  345. unix_http_server:file
  346. supervisor:directory
  347. supervisor:logfile
  348. supervisor:pidfile
  349. supervisor:childlogdir
  350. supervisor:environment
  351. program:environment
  352. program:stdout_logfile
  353. program:stderr_logfile
  354. program:process_name
  355. program:command
  356. - The '--environment' aka '-b' option was removed from the list of
  357. available command-line switches to supervisord (use "A=1 B=2
  358. bin/supervisord" instead).
  359. - If the socket filename (the tail-end of the unix:// URL) was
  360. longer than 64 characters, supervisorctl would fail with an
  361. encoding error at startup.
  362. - The 'identifier' command-line argument was not functional.
  363. - Fixed http://www.plope.com/software/collector/215 (bad error
  364. message in supervisorctl when program command not found on PATH).
  365. - Some child processes may not have been shut down properly at
  366. supervisor shutdown time.
  367. - Move to ZPL-derived (but not ZPL) license availble from
  368. http://www.repoze.org/LICENSE.txt; it's slightly less restrictive
  369. than the ZPL (no servicemark clause).
  370. - Spurious errors related to unclosed files ("bad file descriptor",
  371. typically) were evident at supervisord "reload" time (when using
  372. the "reload" command from supervisorctl).
  373. - Updated ez_setup.py to one that knows about setuptools 0.6c7.
  374. 3.0a2
  375. - Fixed the README.txt example for defining the supervisor RPC
  376. interface in the configuration file. Thanks to Drew Perttula.
  377. - Fixed a bug where process communication events would not have the
  378. proper payload if the payload data was very short.
  379. - when supervisord attempted to kill a process with SIGKILL after
  380. the process was not killed within "stopwaitsecs" using a "normal"
  381. kill signal, supervisord would crash with an improper
  382. AssertionError. Thanks to Calvin Hendryx-Parker.
  383. - On Linux, Supervisor would consume too much CPU in an effective
  384. "busywait" between the time a subprocess exited and the time at
  385. which supervisor was notified of its exit status. Thanks to Drew
  386. Perttula.
  387. - RPC interface behavior change: if the RPC method
  388. "sendProcessStdin" is called against a process that has closed its
  389. stdin file descriptor (e.g. it has done the equivalent of
  390. "sys.stdin.close(); os.close(0)"), we return a NO_FILE fault
  391. instead of accepting the data.
  392. - Changed the semantics of the process configuration 'autorestart'
  393. parameter with respect to processes which move between the RUNNING
  394. and EXITED state. 'autorestart' was previously a boolean. Now
  395. it's a trinary, accepting one of 'false', 'unexpected', or 'true'.
  396. If it's 'false', a process will never be automatically restarted
  397. from the EXITED state. If it's 'unexpected', a process that
  398. enters the EXITED state will be automatically restarted if it
  399. exited with an exit code that was not named in the process
  400. config's 'exitcodes' list. If it's 'true', a process that enters
  401. the EXITED state will be automatically restarted unconditionally.
  402. The default is now 'unexpected' (it was previously 'true'). The
  403. readdition of this feature is a reversion of the behavior change
  404. note in the changelog notes for 3.0a1 that asserted we never cared
  405. about the process' exit status when determining whether to restart
  406. it or not.
  407. - setup.py develop (and presumably setup.py install) would fail
  408. under Python 2.3.3, because setuptools attempted to import
  409. 'splituser' from urllib2, and it didn't exist.
  410. - It's now possible to use 'setup.py install' and 'setup.py develop'
  411. on systems which do not have a C compiler if you set the
  412. environment variable "NO_MELD3_EXTENSION_MODULES=1" in the shell
  413. in which you invoke these commands (versions of meld3 > 0.6.1
  414. respect this envvar and do not try to compile optional C
  415. extensions when it's set).
  416. - The test suite would fail on Python versions <= 2.3.3 because
  417. the "assertTrue" and "assertFalse" methods of unittest.TestCase
  418. didn't exist in those versions.
  419. - The 'supervisorctl' and 'supervisord' wrapper scripts were disused
  420. in favor of using setuptools' 'console_scripts' entry point settings.
  421. - Documentation files and the sample configuration file are put into
  422. the generated supervisor egg's 'doc' directory.
  423. _ Using the web interface would cause fairly dramatic memory
  424. leakage. We now require a version of meld3 that does not appear
  425. to leak memory from its C extensions (0.6.3).
  426. 3.0a1
  427. - Default config file comment documented 10 secs as default for
  428. 'startsecs' value in process config, in reality it was 1 sec.
  429. Thanks to Christoph Zwerschke.
  430. - Make note of subprocess environment behavior in README.txt.
  431. Thanks to Christoph Zwerschke.
  432. - New "strip_ansi" config file option attempts to strip ANSI escape
  433. sequences from logs for smaller/more readable logs (submitted by
  434. Mike Naberezny).
  435. - The XML-RPC method supervisor.getVersion() has been renamed for
  436. clarity to supervisor.getAPIVersion(). The old name is aliased
  437. for compatibility but is deprecated and will be removed in a
  438. future version (Mike Naberezny).
  439. - Improved web interface styling (Mike Naberezny, Derek DeVries)
  440. - The XML-RPC method supervisor.startProcess() now checks that
  441. the file exists and is executable (Mike Naberezny).
  442. - Two environment variables, "SUPERVISOR_PROCESS_NAME" and
  443. "SUPERVISOR_PROCESS_GROUP" are set in the environment of child
  444. processes, representing the name of the process and group in
  445. supervisor's configuration.
  446. - Process state map change: a process may now move directly from the
  447. STARTING state to the STOPPING state (as a result of a stop
  448. request).
  449. - Behavior change: if 'autorestart' is true, even if a process exits
  450. with an "expected" exit code, it will still be restarted. In the
  451. immediately prior release of supervisor, this was true anyway, and
  452. no one complained, so we're going to consider that the "officially
  453. correct" behavior from now on.
  454. - Supervisor now logs subprocess stdout and stderr independently.
  455. The old program config keys "logfile", "logfile_backups" and
  456. "logfile_maxbytes" are superseded by "stdout_logfile",
  457. "stdout_logfile_backups", and "stdout_logfile_maxbytes". Added
  458. keys include "stderr_logfile", "stderr_logfile_backups", and
  459. "stderr_logfile_maxbytes". An additional "redirect_stderr" key is
  460. used to cause program stderr output to be sent to its stdin
  461. channel. The keys "log_stderr" and "log_stdout" have been
  462. removed.
  463. - '[program:x]' config file sections now represent "homgeneous
  464. process groups" instead of single processes. A "numprocs" key in
  465. the section represents the number of processes that are in the
  466. group. A "process_name" key in the section allows composition of
  467. the each process' name within the homogeneous group.
  468. - A new kind of config file section, '[group:x]' now exists,
  469. allowing users to group heterogeneous processes together into a
  470. process group that can be controlled as a unit from a client.
  471. - Supervisord now emits "events" at certain points in its normal
  472. operation. These events include supervisor state change events,
  473. process state change events, and "process communication events".
  474. - A new kind of config file section '[eventlistener:x]' now exists.
  475. Each section represents an "event listener pool", which is a
  476. special kind of homogeneous process group. Each process in the
  477. pool is meant to receive supervisor "events" via its stdin and
  478. perform some notification (e.g. send a mail, log, make an http
  479. request, etc.)
  480. - Supervisord can now capture data between special tokens in
  481. subprocess stdout/stderr output and emit a "process communications
  482. event" as a result.
  483. - Supervisor's XML-RPC interface may be extended arbitrarily by
  484. programmers. Additional top-level namespace XML-RPC interfaces
  485. can be added using the '[rpcinterface:foo]' declaration in the
  486. configuration file.
  487. - New 'supervisor'-namespace XML-RPC methods have been added:
  488. getAPIVersion (returns the XML-RPC API version, the older
  489. "getVersion" is now deprecated), "startProcessGroup" (starts all
  490. processes in a supervisor process group), "stopProcessGroup"
  491. (stops all processes in a supervisor process group), and
  492. "sendProcessStdin" (sends data to a process' stdin file
  493. descriptor).
  494. - 'supervisor'-namespace XML-RPC methods which previously accepted
  495. ony a process name as "name" (startProcess, stopProcess,
  496. getProcessInfo, readProcessLog, tailProcessLog, and
  497. clearProcessLog) now accept a "name" which may contain both the
  498. process name and the process group name in the form
  499. 'groupname:procname'. For backwards compatibility purposes,
  500. "simple" names will also be accepted but will be expanded
  501. internally (e.g. if "foo" is sent as a name, it will be expanded
  502. to "foo:foo", representing the foo process within the foo process
  503. group).
  504. - 2.X versions of supervisorctl will work against supervisor 3.0
  505. servers in a degraded fashion, but 3.X versions of supervisorctl
  506. will not work at all against supervisor 2.X servers.
  507. Known issues:
  508. - supervisorctl and the web interface do not yet allow you to stop
  509. / start / restart a process group as a unit.
  510. - supervisorctl and the web interface do not allow you to tail or
  511. otherwise examine stderr log files of processes.
  512. - buffered event notifications may be lost at supervisor shutdown
  513. or restart time.
  514. Acknowledgements:
  515. Maintainable Software (http://www.maintainable.com) contracted
  516. Agendless Consulting to add the event notification features and
  517. extensible XML-RPC namespaces feature to supervisor.
  518. 2.2b1
  519. - Individual program configuration sections can now specify an
  520. environment.
  521. - Added a 'version' command to supervisorctl. This returns the
  522. version of the supervisor2 package which the remote supervisord
  523. process is using.
  524. 2.1
  525. - When supervisord was invoked more than once, and its configuration
  526. was set up to use a UNIX domain socket as the HTTP server, the
  527. socket file would be erased in error. The symptom of this was
  528. that a subsequent invocation of supervisorctl could not find the
  529. socket file, so the process could not be controlled (it and all of
  530. its subprocesses would need to be killed by hand).
  531. - Close subprocess file descriptors properly when a subprocess exits
  532. or otherwise dies. This should result in fewer "too many open
  533. files to spawn foo" messages when supervisor is left up for long
  534. periods of time.
  535. - When a process was not killable with a "normal" signal at shutdown
  536. time, too many "INFO: waiting for x to die" messages would be sent
  537. to the log until we ended up killing the process with a SIGKILL.
  538. Now a maximum of one every three seconds is sent up until SIGKILL
  539. time. Thanks to Ian Bicking.
  540. - Add an assertion: we never want to try to marshal None to XML-RPC
  541. callers. Issue 223 in the collector from vgatto indicates that
  542. somehow a supervisor XML-RPC method is returning None (which
  543. should never happen), but I cannot identify how. Maybe the
  544. assertion will give us more clues if it happens again.
  545. - Supervisor would crash when run under Python 2.5 because the
  546. xmlrpclib.Transport class in Python 2.5 changed in a
  547. backward-incompatible way. Thanks to Eric Westra for the bug
  548. report and a fix.
  549. - Tests now pass under Python 2.5.
  550. - Better supervisorctl reporting on stop requests that have a FAILED
  551. status.
  552. - Removed duplicated code (readLog/readMainLog), thanks to Mike
  553. Naberezny.
  554. - Added tailProcessLog command to the XML-RPC API. It provides a
  555. more efficient way to tail logs than readProcessLog(). Use
  556. readProcessLog() to read chunks and tailProcessLog() to tail.
  557. (thanks to Mike Naberezny).
  558. 2.1b2
  559. - Added new tailProcessLog() command to the XML-RPC API that
  560. is more efficient for just tailing than the existing
  561. readProcessLog() command (Mike Naberezny).
  562. 2.1b1
  563. - "supervisord -h" and "supervisorctl -h" did not work (traceback
  564. instead of showing help view (thanks to Damjan from Macedonia for
  565. the bug report).
  566. - Processes which started successfully after failing to start
  567. initially are no longer reported in BACKOFF state once they are
  568. started successfully (thanks to Damjan from Macdonia for the bug
  569. report).
  570. - Add new 'maintail' command to supervisorctl shell, which allows
  571. you to tail the 'main' supervisor log. This uses a new
  572. readMainLog xmlrpc API.
  573. - Various process-state-transition related changes, all internal.
  574. README.txt updated with new state transition map.
  575. - startProcess and startAllProcesses xmlrpc APIs changed: instead of
  576. accepting a timeout integer, these accept a wait boolean (timeout
  577. is implied by process' "startsecs" configuration). If wait is
  578. False, do not wait for startsecs.
  579. Known issues:
  580. Code does not match state transition map. Processes which are
  581. configured as autorestarting which start "successfully" but
  582. subsequently die after 'startsecs' go through the transitions
  583. RUNNING -> BACKOFF -> STARTING instead of the correct transitions
  584. RUNNING -> EXITED -> STARTING. This has no real negative effect,
  585. but should be fixed for correctness.
  586. 2.0
  587. - pidfile written in daemon mode had incorrect pid.
  588. - supervisorctl: tail (non -f) did not pass through proper error
  589. messages when supplied by the server.
  590. - Log signal name used to kill processes at debug level.
  591. - supervisorctl "tail -f" didn't work with supervisorctl sections
  592. configured with an absolute unix:// URL
  593. - New "environment" config file option allows you to add environment
  594. variable values to supervisord environment from config file.
  595. 2.0b1
  596. - fundamental rewrite based on 1.0.6, use distutils (only) for
  597. installation, use ConfigParser rather than ZConfig, use HTTP for
  598. wire protocol, web interface, less lies in supervisorctl.