Comments (8)
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.
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.
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.
@tsaleh Is this a story you want prioritized?
from bosh.
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.
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.
@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.
@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)
- Is an internal ca & certificate can be used instead of bosh self signed HOT 4
- When deploying bosh on Vsphere, Prompt Cleaning up rendered CPI jobs... Finished HOT 26
- `/metrics` and `/api_metrics` endpoint does not show the generic API metrics for the director's endpoints HOT 5
- Create a Jumpbox and a BOSH Director error HOT 2
- 1 of 2 post-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: bosh-dns. HOT 1
- Resurrector not resurrecting unresponsive agent. HOT 7
- Multi-cpi with different iaas bosh cpi releases induce ruby package conflict HOT 2
- Default bosh generated x509 certificates have invalid 3 digits USA country code HOT 6
- Support Alibaba OSS as an external blobstore for bosh HOT 5
- Improve support for diagnostics of failed compilation: flag to preserve compilation source packages and logs HOT 2
- How to get vm_cid in VM? HOT 1
- Failed on upgrading BOSH Director from v271.2.0 to v280.0.14 HOT 4
- Non-descriptive error message when a BOSH job spec property name is a prefix for another one HOT 3
- Support for updating disks HOT 4
- Cannot connect to Bosh Director HOT 5
- Retention period of task logs HOT 2
- health_monitor is leaking connections
- panic: Internal inconsistency: Expected len(Interface '(.+)' was successfully created matches) >= 3: HOT 4
- Health_Monitor stop sending logs HOT 2
- Health-Monitor fails to start because of NATS? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bosh.