A Control System for Distributed Applications
Project description
Supvisors
Supvisors is a Control System for Distributed Applications, based on multiple instances of Supervisor.
The main features are:
- a new web-based dashboard that replaces the default dashboard of Supervisor,
- an extended XML-RPC API to control applications and multiple Supervisor instances,
- the definition of a rules file to handle:
- the starting sequence of the applications,
- the stopping sequence of the applications,
- the starting strategy of the processes,
- the strategy to apply when a process crashes.
Supervisor Enhancements
Supvisors proposes a contribution to the following Supervisor issues:
- #122 - supervisord Starts All Processes at the Same Time
- #177 - Dynamic numproc change
- #456 - Add the ability to set different "restart policies" on process workers
- #520 - allow a program to wait for another to stop before being stopped?
- #723 - Restart waits for all processes to stop before starting any
- #874 - Bring down one process when other process gets killed in a group
- #1023 - Pass arguments to program when starting a job?
- #1150 - Why do event listeners not report the process exit status when stopped/crashed?
Supported Platforms
Supvisors has been tested and is known to run on Linux (CentOS 8.3). It will likely work fine on most UNIX systems.
Supvisors will not run at all under any version of Windows.
Supvisors >= 0.2 works with Python 3.6 or later.
Supvisors 0.1 (available on PyPi) works with Python 2.7 (and former versions of Supervisor, i.e. 3.3.0) but is not maintained anymore.
Dependencies
Supvisors has dependencies on:
| Package | Release | Optional |
|---|---|---|
| Supervisor | 4.2.1 | |
| PyZMQ | 20.0.0 | |
| psutil | 5.7.3 | X |
| matplotlib | 3.3.3 | X |
| lxml | 4.6.2 | X |
Please note that some of these dependencies may have their own dependencies.
Versions are given for information. Although Supvisors has been developed and tested with these releases, the minimal release of each dependency is unknown. Other releases are likely working as well.
Installation
Supvisors can be installed with pip install:
# minimal install (including Supervisor and PyZMQ)
[bash] > pip install supvisors
# extra install for all optional dependencies
[bash] > pip install supvisors[all]
Documentation
You can view the current Supvisors documentation here.
You will find detailed installation and configuration documentation.
Reporting Bugs and Viewing the Source Repository
Please report bugs in the Github issue tracker.
You can view the source repository for Supvisors.
Contributing
Not opened yet.
Change Log
0.10 (2021-09-05)
-
Implement Supervisor Issue #177. It is possible to update dynamically the program numprocs using the new
update_numprocsXML-RPC. -
Add targets Python 3.7 and Python 3.8 to Travis-CI.
-
Update documentation.
0.9 (2021-08-31)
-
Enable the hash '#' for the
addressesof a non-distributed application. -
Add
supvisorsctlto pally the lack of support ofsupervisorctlwhen used with--serverurl URLoption. See related Supervisor Issue #1455. -
Provide
breed.pyas a binary of Supvisors:supvisors_breed. The script only considers group duplication as it is fully valid to include multiple times a program definition in several groups. -
Move the contents of the
[supvisors]section into the[rpcinterface:supvisors]section and benefit from the configuration structure provided by Supervisor. The[supvisors]section itself is thus obsolete. -
Remove deprecated support of
patternelements. -
Fixed issue when using the Web UI Application page from a previous launch.
-
Invert the stop sequence logic, starting from the greatest
stop_sequencenumber to the lowest one. -
When
stop_sequenceis not set in the rules files, it is defaulted to thestart_sequencevalue. With the new stop sequence logic, the stop sequence is by default exactly the opposite of the start sequence. -
Fixed Nodes column width for
supervisorctl application_rules. -
CHANGES.rstreplaced withCHANGES.md. -
'Scenario 3' has been added to the Supvisors use cases.
-
A 'Gathering' configuration has been added to the Supvisors use cases. It combines all uses cases.
-
Update documentation.
0.8 (2021-08-22)
-
Fixed exception in
INITIALIZATIONstate when the Master declared by other nodes is not RUNNING yet and the core nodes are RUNNING. -
Fixed exception when program rules and extra arguments are tested against a program unknown to the local Supervisor.
-
Fixed issue about program patterns that were applicable to all elements. The scope of program patterns is now limited to their owner application.
-
Fixed issue with infinite tries of application restart when the process cannot be started due to a lack of resources and
RESTART_APPLICATIONis set on the program in the Supvisors rules file. -
Fixed issue about application state not updated after a node has become silent.
-
Fixed issue when choosing a node in
Starter. Apply the requests that have not been satisfied yet for non-distributed applications. -
Logic for application major / minor failures reviewed.
-
Simplify the insertion of applications to start or stop in Commander jobs.
-
In the rules file, support for application patterns has been added.
-
In the rules file,
patternelements are deprecated and are replaced byprogramelements with apatternattribute instead of anameattribute. Support forpatternelements will be removed in the next version of Supvisors. -
Node aliases have been added to the rules file.
-
Add the current node to all pages of Web UI to be aware of the node that displays the page.
-
The Web UI is updated to handle a large list of applications, nodes, processor cores and network interfaces.
-
In the Process page of the Web UI, expand / shrink actions are not applicable to programs that are not owned by a Supervisor group.
-
In the application navigation menu of the Web UI, add a red light near the Applications title if any application has raised a failure.
-
In the Application page of the Web UI, default starting strategy is the starting strategy defined in the rules file for the application considered.
-
In the Application ang Process page, the detailed process statistics can be deselected.
-
Titles added to the output of :program:
supervisorctladdress_statusandapplication_info. -
The XML schema has been moved to a separate file
rules.xsd. -
Remove dependency to netifaces as psutil provides the function.
-
'Scenario 2' has been added to the Supvisors use cases.
-
A script
breed.pyhas been added to the install package. It can be used to duplicate the applications based on a template configuration and more particularly used to prepare the Scenario 2 of the Supvisors use cases. -
Update documentation.
0.7 (2021-08-15)
-
Fixed Issue #92. The Master drives the state of all Supvisors instances and a simplified state machine has been assigned to non-master Supvisors instances. The loss of the Master instance is managed in all relevant states.
-
Fixed issue about applications that would be started automatically whereas their
start_sequenceis 0. The regression has been introduced during the implementation of applications repair in Supvisors 0.6. -
Enable stop sequence on Unmanaged applications.
-
In the application navigation menu of the Web UI, add a red light to applications having raised a failure.
-
New application rules
distributedandaddressesadded to the Supvisors rules file. Non-distributed applications have all their processes started on the same node chosen in accordance with theaddressesand thestarting_strategy. -
Starting strategy added to the application rules.
-
Fixed issue when choosing a node in
Starter. The starting strategies considers the current load of the nodes and includes the requests that have not been satisfied yet. -
Fixed issue with infinite process restart when the process crashes and
RESTART_PROCESSis set on the program in the Supvisors rules file. When the process crashes, only the Supervisorautorestartapplies. The SupvisorsRESTART_PROCESSapplies only when the node becomes inactive. -
Fixed exception when forcing the state on a process that is unknown to the local Supervisor.
-
Promote the
RESTART_PROCESSintoRESTART_APPLICATIONif the application is stopped. -
For the Master election, give a priority to nodes declared in the
forced_synchro_ifoption if used. -
When using the
forced_synchro_ifoption and whenauto_fenceis activated, do not isolate nodes as long assynchro_timeouthas not passed. -
In the
INITALIZATIONstate, skip the synchronization phase upon notification of a known Master and adopt it. -
Add reciprocity to isolation even if
auto_fenceis not activated. -
In the process description of the Web UI Application page, add information about the node name. In particular, it is useful to know where the process was running when it is stopped.
-
Start adding use cases to documentation, inspired by real examples. 'Scenario 1' has been added.
-
Documentation updated.
0.6 (2021-08-01)
-
Applications that are not declared in the rules file are not managed. Unmanaged applications have no start/stop sequence, no state and status (always STOPPED) and Supvisors does not raise a conflict if multiple instances are running over multiple nodes.
-
Improve Supvisors stability when dealing with remote programs undefined locally.
-
Add expand / shrink actions to applications to the
ProcAddressViewof the Web UI. -
Upon authorization of a new node in Supvisors, back to
DEPLOYMENTstate to repair applications. -
Add RPC
change_log_levelto dynamically change the Supvisors logger level. -
Application state is evaluated only against the starting sequence of its processes.
-
Fixed blocking issue when Master is stopped while in
DEPLOYMENTstate. -
Fixed issue with applications that would not fully stop when using the
STOP_APPLICATIONstarting failure strategy. -
Fixed issue related to Issue #85. An exception was raised when the program
procnumwas greater than the list of applicable nodes. -
Fixed Issue #91. Fix CSS style on the process tables in HTML.
-
Fixed Issue #90. The Supvisors Master node drives the transition to
OPERATION. -
In the Web UI, set the process state color to
FATALwhen the process has exited unexpectedly. -
Change the default expected loading to
0in the program rules. -
Python
Enumused for enumerations (not available in Python 2.7). -
Remove
supvisors_shortcutsfrom source code to get rid of IDE warnings. -
All unit tests updated from
unittesttopytest. -
Include this Change Log to documentation.
-
Documentation updated.
0.5 (2021-03-01)
-
New option
force_synchro_ifto force the end of the synchronization phase when a subset of nodes are active. -
New starting strategy
LOCALadded to command the starting of an application on the local node only. -
Fixed Issue #87. Under particular circumstances, Supvisors could have multiple Master nodes.
-
Fixed Issue #86. The starting and stopping sequences may fail and block when a sub-sequence includes only failed programs.
-
Fixed Issue #85. When using
#in theaddress_listprogram rule of the Supvisors rules file, a subset of nodes can optionally be defined. -
Fixed Issue #84. In the Supvisors rules file, program rules can be defined using both model reference and attributes.
-
The Web UI uses the default starting strategy of the configuration file.
-
The layout of Web UI statistics sections has been rearranged.
-
Fixed CSS style missing for
CHECKINGnode state in tables. -
Star added to the node box of the Master instance on the main page.
-
Type annotations are added progressively in source code.
-
Start switching from
unittesttopytest. -
Logs (especially
debugandtrace) updated to remove printed objects. -
Documentation updated.
0.4 (2021-02-14)
-
Auto-refresh button added to all pages.
-
Web UI Main page reworked by adding a subdivision of application in node boxes.
-
Fixed exception when exiting using
Ctrl+cfrom shell. -
Fixed exception when rules files is not provided.
-
Documentation updated.
0.3 (2020-12-29)
-
Fixed Issue #81. When Supvisors logfile is set to
AUTO, Supvisors uses the same logger as Supervisor. -
Fixed Issue #79. When
FATALorUNKNOWNProcess state is forced by Supvisors,spawnerrwas missing in the listener payload. -
Useless folder
rsc_refdeleted. -
designfolder moved to a dedicated GitHub repository. -
100% coverage reached in unit tests.
-
Documentation updated.
0.2 (2020-12-14)
-
Migration to Python 3.6. Versions of dependencies are refreshed, more particularly Supervisor 4.2.1.
-
CSS of Web UI updated / simplified.
-
New action added to Host Process page of WebUI:
tail -f stderrbutton. -
New information actions added to Application page of WebUI:
descriptionfield.clear logs,tail -f stdout,tail -f stderrbuttons.
-
Fixed Issue #75. Supvisors takes into account the
usernameand thepasswordofinet_http_serverin thesupervisordsection. -
Fixed Issue #17. The user selections on the web UI are passed to the URL.
-
Fixed Issue #72. The extra arguments are shared between all Supvisors instances.
-
README.rstreplaced withREADME.md. -
Coverage improved in tests.
-
Docs target added to Travis-CI.
-
Documentation formatting issues fixed.
0.1 (2017-08-11)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supvisors-0.10.tar.gz.
File metadata
- Download URL: supvisors-0.10.tar.gz
- Upload date:
- Size: 343.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc7e98c00c176009c006c26c464c00cebd94e5cabcc8cf2e3654a068cff182fe
|
|
| MD5 |
8a306f7393432ab6a1824fa4bcda59a9
|
|
| BLAKE2b-256 |
6193355f76f1a6b70e1b04c06676341089fafa815eefad46fe0950db991b0670
|
File details
Details for the file supvisors-0.10-py3-none-any.whl.
File metadata
- Download URL: supvisors-0.10-py3-none-any.whl
- Upload date:
- Size: 398.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1dd49836240e665967eb9ef3492f326a98c5e0ef2724f1acaf7f676fc9f28f
|
|
| MD5 |
7f9af39895835f1d6b078399d9111c4c
|
|
| BLAKE2b-256 |
61d81566fe2cec935b4460489a3f04f95e3e790976bc13d6d86e1211e257bf94
|