Skip to content

harlowja/quietus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quietus

What

Death or something that causes death, regarded as a release from life.

Really what

A tiny Python program that can take files that define lifecycles of other binaries via a simple yaml configuration file and attempts to realize the lifecycle defined there-in.

It contains support for the following:

  • Starting a process after a given amount of time.
  • Stopping a started process after a given amount of time.
  • Restarting a process after death.

It is meant to be able to easily define a set of binaries lifecycle together for uses such as HA testing; or failover testing where having a repeatable and easy to read lifecycle is key for continuous testing (and helps in sharing those same lifecycles for others to test with).

An example yaml file:

binaries:
  redis:
    path: "/usr/bin/redis-server"
    arguments: []
  memcached:
    path: "/usr/bin/memcached"
    arguments: []

schedule:
  A:
    binary: redis
    start_after: 0
    death_after: 60
    restart_delay: 30
    arguments: ["--port", "6380"]
  B:
    binary: redis
    start_after: 30
    death_after: 60
    arguments: ["--port", "6381"]
  C:
    binary: redis
    arguments: ["--port", "6382"]
  D:
    binary: memcached
    arguments: ["-p", "11212"]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages