- From: Erik Hollensbe <
>
- To: Bryan Berry <
>
- Cc: Steven Danna <
>,
- Subject: [chef-dev] Re: Re: Re: Fwd: How do I know if my application has really been "provisioned"? a suggestion
- Date: Sun, 9 Dec 2012 12:40:59 -0800
On Dec 9, 2012, at 12:38 PM, Bryan Berry
<
>
wrote:
>
Dear PeterD,
>
>
I have to disagree w/ the approach to change the init script to block
>
until the satisfied condition has been reached. 99% of the time I
>
want a call to restart a service to return quickly. Only 1% of the
>
time, usually during some kind of orchestration activity or testing
>
activity, that I want to block for desired state that indicates the
>
action is fully completed.
>
>
Even more so, I don't want to actually block all of Chef until this
>
desired state is reached. there may be additional resources that i
>
want to continue to be processed after the service is started. for
>
example, cron tasks to clean up log files and collectd plugins to be
>
configured to monitor my giant, slow-ass J2EE service. checking for
>
the :until condition to be met should be deferred until the end of the
>
chef run or at least b4 other handlers run, like
>
minitest-chef-handler. A chef_handler is the correct place for them to
>
live.
>
>
erikh's wait lwrp might do the job. However, I want there to be the
>
possibility to have multiple wait resources in chef run. I can easily
>
manage the possibility of trying to run several superslow J2EE recipes
>
on a single machine. This might be premature optimization but the
>
extra engineering effort to write a wait_handler isn't that
>
significant.
I really think the 'ensure' thing I suggested has more utility and solves
this problem better. I know the email is long, but I encourage its
consideration for solving this (and many other) problem.
-Erik
[chef-dev] Re: Re: Fwd: How do I know if my application has really been "provisioned"? a suggestion, Peter Donald, 12/09/2012
Archive powered by MHonArc 2.6.16.