CHANGES.txt 34 KB

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