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 for now. In the past oslo.service was used. But our projects don’t want to use eventlet anymore.
oslo.service is written on top of eventlet to provide two main features:
periodic tasks
workers processes management
The first one was replaced by another Oslo lib called futurist and the second part by Cotyledon.
Our main issue was greenlet that doesn’t run in timely fashion because we don’t monkeypatch the python stdlib anymore. Making Tooz/Oslo.messaging hearbeats to fail. And processes that doesn’t exists as expected due to greenpipe never processed.
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.
So these toohard to fix issues and the heavy eventlet dependencies make this library to appear.
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.5.tar.gz
.
File metadata
- Download URL: cotyledon-1.6.5.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01603841fed51fcdba6a63c050435e1f65fe2f0fe95eba1119f9d7bbd6ee9ddb |
|
MD5 | 8e0b2c45ec8b0fcd50823118b534b26b |
|
BLAKE2b-256 | 35b545b57d31fe628cbd2b2e75dba061af792991df69432d2cb19e194621c453 |
File details
Details for the file cotyledon-1.6.5-py2.py3-none-any.whl
.
File metadata
- Download URL: cotyledon-1.6.5-py2.py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed3498740087cba50735b1606ea9cd832407c428792775601fde2489b3f5d2c8 |
|
MD5 | 9a878fe7313fe7770a01cb6ad676f178 |
|
BLAKE2b-256 | 07e0218cd4cbc440804ce7018d7f2ba11bf03da47a3d9dbd2306ba1c762677f4 |