Skip to content

asteris-llc/smlr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smlr

Build Status

smlr waits for service dependencies.

smlr is short for "sommelier", but easier to spell

Use

smlr can wait for several types of dependencies:

  • http
  • tcp (TODO)
  • script (TODO)

Each of them has different use cases. In general, you should prefer to use HTTP or TCP for service depdendencies, and only use script if you need to do something out of the ordinary (but please do open an issue with your use case!)

You can use it in, for example, a systemd unit file:

ExecStartPre=smlr http http://your-service-dependency.cluster.local:1234
ExecStart=/usr/bin/your-service

In this configuration, smlr will wait for a while (the default is 5 minutes) for the service to be available and then exit with a failure if it is not up. It adds jitter to avoid overloading a newly started dependency service.