![]() Processes belonging to each of the homogeneous groups will be placed Program section will not exist at runtime in supervisor. Programs line, the homogeneous groups that are implied by the Placed into a “heterogeneous” group via section’s If “homogeneous” process groups (represented by program sections) are Refer to them by name in the programs value. Sections elsewhere in your configuration file, and the group must ![]() The name must not include a colonįor a, there must be one or more The name is used withinĬlient applications that control the processes that are created as a A header value of ĭescribes a group with the name of “foo”. It is the word “group”, followed directly by aĬolon, then the group name. To place programs into a group so you can treat them as a unit, defineĪ section in your configuration file. “programs”) together into a “heterogeneous” process group so they canīe controlled as a unit from Supervisor’s various controller It is often useful to group “homogeneous” process groups (aka files = /an/absolute/nf /an/absolute/*.conf foo.conf config?.conf Section Settings ¶ Numprocs, here (the directory of the supervisord config file),Īnd all supervisord’s environment variables prefixed with ENV_.Ĭontrolled programs should themselves not be daemons, as supervisordĪssumes it is responsible for daemonizing its subprocesses (see Group_name, host_node_name, program_name, process_num, StringĮxpressions are evaluated against a dictionary containing the keys path/to/programname -port=80%(process_num)02d mightĮxpand to /path/to/programname -port=8000 at runtime. Note that the value ofĬommand may include Python string expressions,Į.g. The command line can use double quotes to groupĪrguments with spaces in them to pass to the program,Į.g. Supervisord’s environment $PATH will be searched for theĮxecutable. The command that will be run when this program is started. Slightly different parameters to each process. Logfile names, all environment strings, and the command of programsĬan also contain similar Python string expressions, to pass Similar processes using a single section. This makes it possible to start a number of very %(program_name)s_%(process_num)02d, the “foo” group willĬontain three processes, named foo_00, foo_01, andįoo_02. Numprocs of 3 and a process_name expression of Which did not treat program sections as homogeneous process groupīut for instance, if you have a section with a Modicum of backwards compatibility with older supervisor releases, Will have a single process named x in it. The group represented by will be named x and Numprocs and process_name are left unchanged from their defaults, Process_name parameters in the configuration. The members of the groupĪre defined by the combination of the numprocs and Process group” to supervisor (as of 3.0). A section actually represents a “homogeneous
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |