Giter Club home page Giter Club logo

dolt's Introduction

Dolt

This is a simple yet functional payload service, that meant to mock real world service behavior.

Abstract

Any service can be unpredictably slow in a startup or shutdown processes, as well as, it can accidentally exit or, in opposite, resist to become terminated from external command.

Moreover, such real-world services, can easily exceed any limits, like CPU time or granted RAM.

Usage

To control application's behaviour, you need to pass one or several Environment variables from this list:

  • EXITCODE (int), — to control with which exit code the application will use;
  • HEALTHURI (string, urlformated), — to control on which host, port health web server will started, and by which path it will be answering;
  • IGNORESIGS (string, comma separated), — defines which os Signals should be ignored KILL (9) will never be ignored or catched;
  • INITTIME (duration: N[ns|us|ms|s|m|h] or their combination), — defines for how long it will takes to initialize the application;
  • LIFETIME (duration: N[ns|us|ms|s|m|h] or their combination), — defines life time of the application, after which it will be stopped;
  • STOPTIME (duration: N[ns|us|ms|s|m|h] or their combination), — defines for how long it will takes to stop the application;

Health Checks

Liveliness of main application will performed by additional application called healthprobe. It will be invoked by Docker via HEALTHCHECK directive declared in Dockerfile. Each time, it will try to GET against URL defined in HEALTHURI or http://localhost:8080/health by default, and regarding success it will inform docker about that.

dolt's People

Contributors

maxja avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.