GithubHelp home page GithubHelp logo

darron / shudi Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 23 KB

Golang utility to only run programs if they're not "blocked" by a key in a KV store.

Makefile 6.53% Go 82.38% Shell 5.69% Ruby 5.40%

shudi's Introduction

shudi

shudi - pronounced "Should I?"

Sometimes, we want to block programs from running - but we don't want to do something drastic like "rename the binary".

We could achieve this by running a small program that:

  1. Runs with a schedule in mind - and a random splay amount.
  2. Checks to see if program execution should be stopped. (By looking inside of Consul's KV store - for example.)
  3. Executing if a block isn't present.
  4. Then looping for the appointed time.

The program I'd like to try this with is Chef client:

./shudi run -e chef-client -d 1800 -s 900

  1. We can't stop a Chef run during the run without throwing an error. This would not throw an error - it would log a metric if it was blocked.
  2. We often don't want Chef to run for all sorts of reasons.
  3. The methods we have to stop Chef from running are currently not that great.

I'd like to make the block interface simple:

./shudi block -e chef-client

Also:

./shudi unblock -e chef-client

shudi's People

Contributors

darron avatar

Watchers

James Cloos avatar  avatar

shudi's Issues

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.