Skip to main content

Cotyledon provides a framework for defining long-running services.

Project description

https://travis-ci.org/sileht/cotyledon.png?branch=master Latest Version Downloads

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.

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 to 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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cotyledon-1.3.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

cotyledon-1.3.0-py2.py3-none-any.whl (14.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cotyledon-1.3.0.tar.gz.

File metadata

  • Download URL: cotyledon-1.3.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cotyledon-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f1373d55f8e17895a671c9f7021d23fe5ab488d7a5918c603d57cc7e16288164
MD5 71ed00deb046735f6f1c73832b9cc8f0
BLAKE2b-256 74677723f4bfbf3bd5a196c610c4c929a7f47c49c3a41cf6f5184cfa1c6ddcd3

See more details on using hashes here.

File details

Details for the file cotyledon-1.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cotyledon-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 11553c913108686552ae467e82b77ea72824ea7773f0e9609f02355e5e66359f
MD5 3fd49c776a5e6e3c171501a4e6f96a1e
BLAKE2b-256 d2322e618c5e78d958c988ad3b680fb6be466f4748bda92f1371a70e5817146d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page