Giter Club home page Giter Club logo

Comments (8)

drnic avatar drnic commented on June 16, 2024

James, would these be release job scripts? Or if not, how would you like to inject the monitoring behaviour into the VMs? Or do you want notifications to 3rd party systems via director/NATS messages?

from bosh.

james-masson avatar james-masson commented on June 16, 2024

For my needs, just simple script triggers on the box - similar to the job scripts.
NATS/director integration would be nice, but a bit overkill

from bosh.

msackman avatar msackman commented on June 16, 2024

Agreed: post-install and pre-removal scripts for jobs-deployed-on-vms would be very useful for me too. Currently I'm having to do things every time a job starts rather than once once it's been installed. The obvious variants of "once this job has been started for the first time" and "before this job is stopped for the last time" are very useful too.

from bosh.

mark-rushakoff avatar mark-rushakoff commented on June 16, 2024

@tsaleh Is this a story you want prioritized?

@mark-rushakoff / @d

from bosh.

tammersaleh avatar tammersaleh commented on June 16, 2024

Interesting. Isn't this functionality what the drain scripts are for? The DEAs, for instance, know to migrate running customer applications to another box before they're decommissioned.

from bosh.

james-masson avatar james-masson commented on June 16, 2024

Drain scripts were what was originally suggested in the discussion thread I linked to, but unless something has changed, drain happens on every job shutdown, not on a decommission.

I envision this functionality being used when you have something you need to do once, at a particular point during commissioning/decommissioning.

For me, this would be triggering a few hundred GB of data migration away from the persistent data disk - and that's not something I'd want done on every job shutdown.

from bosh.

adamstegman avatar adamstegman commented on June 16, 2024

@goehmen I think post_install is already a thing; would the changes we are making to drain scripts cover the pre-removal use case?

Thanks,
CF Community Pair (@adamstegman & @mbhave)

from bosh.

cppforlife avatar cppforlife commented on June 16, 2024

@james-masson Drain scripts now have a way to determine if persistent disk size is going to change (0 size means that either persistent disk was removed or instance is going away). You can get that value by parsing BOSH_JOB_STATE & BOSH_JOB_NEXT_STATE environment variables (https://github.com/cloudfoundry/bosh-agent/blob/master/agent/drain/concrete_script.go) if you are using new BOSH Agent (written in go).

from bosh.

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.