Cotyledon provides a framework for defining long-running services.
Project description
Cotyledon provides a framework for defining long-running services.
It provides handling of Unix signals, spawning of workers, supervision of children processes, daemon reloading, sd-notify, rate limiting for worker spawning, and more.
Free software: Apache license
Documentation: http://cotyledon.readthedocs.org/
Why Cotyledon
This library is mainly used in OpenStack Telemetry projects, in replacement of oslo.service. However, as oslo.service depends on eventlet, a different library was needed for project that do not need it. When an application do not monkeypatch the Python standard library anymore, greenlets do not in timely fashion. That made other libraries such as Tooz or oslo.messaging to fail with e.g. their heartbeat systems. Also, processes would not exist as expected due to greenpipes never being processed.
oslo.service is actually written on top of eventlet to provide two main features:
periodic tasks
workers processes management
The first feature was replaced by another library called futurist and the second feature is superseded by Cotyledon.
Unlike oslo.service, Cotyledon have:
The same code path when workers=1 and workers>=2
Reload API (on SIGHUP) hooks work in case of you don’t want to restarting children
A separated API for children process termination and for master process termination
Seatbelt to ensure only one service workers manager run at a time.
Is signal concurrency safe.
Support non posix platform, because it’s built on top of multiprocessing module instead of os.fork
Provide functional testing
And doesn’t:
facilitate the creation of wsgi application (sockets sharing between parent and children process). Because too many wsgi webserver already exists.
oslo.service being impossible to fix and bringing an heavy dependency on eventlet, Cotyledon appeared.
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
File details
Details for the file cotyledon-1.6.8.tar.gz
.
File metadata
- Download URL: cotyledon-1.6.8.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f22a8b9ed982276bd54805e7c1d6dbb273a2723ac4df66297c102d10d52e1fc |
|
MD5 | 3ccacbca3bc6d27ab27e366b28f379dd |
|
BLAKE2b-256 | 8398b1987e8e049cd6e7c2b2119e0c5afc18418880845026b64d390305fd64cc |
File details
Details for the file cotyledon-1.6.8-py2.py3-none-any.whl
.
File metadata
- Download URL: cotyledon-1.6.8-py2.py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b96bfe988e2bb1ab54991f8d783639e2174102a9e3274b654b80e4ada41002b |
|
MD5 | d577cf611a6a1940286c40b462b6930b |
|
BLAKE2b-256 | e610199704795983374a97db13b0c72961b3b9c3d3a2620ed37835ad53b7d5fa |