Coder Social home page Coder Social logo

Comments (4)

mook-as avatar mook-as commented on July 19, 2024

So we basically need to update that script to call update_readiness false unless it actually passes a readiness probe (or there isn't one, in which case it get unset)…

from fissile.

qu1queee avatar qu1queee commented on July 19, 2024

I´not sure how reliable is the readiness probe, while the checks here could be successful even if the job is down. For example, if the bbs job for diego-api is down, the additional readiness will execute the head -c0 </dev/tcp/${HOSTNAME}/8891(see line), returning an exit code 0.(pls correct me if im wrong). I would probably move this block before monit checks, so it will ensure the label of skiff-role-active can be set to false, opinions?

from fissile.

mook-as avatar mook-as commented on July 19, 2024

I was thinking of something like

  • Set trap to set active to false on exit
  • Current stuff
  • Erase trap, set active to true
    Basically, try to ensure that we set the active flag however we exit, instead of just on the happy path. After all, the script (with errexit) is designed to abort early on failure, anyway.

Would that cover everything (and be less likely to be broken as we change the script)?

from fissile.

qu1queee avatar qu1queee commented on July 19, 2024

yes, sorry for the late response(I already saw the merged PR). Trapping that method on EXIT was a nice idea.

from fissile.

Related Issues (20)

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.