- From: Christopher DeMarco <
>
- To:
- Subject: [chef] Re: Re: Setting up service with huge data files?
- Date: Sun, 23 Sep 2012 21:40:54 -0400
Assuming that I don't want to distribute the file via Chef, how would I best
divide the recipe into bits that could run before the file arrives and bits
that can't run until afterwards?
And if I did want to use that BT or some other custom method to provision
such a huge file, does a recipe (or indeed an entire chef-client run!) block
on that file transfer? Or can I make chef do stuff / sleep while it's
"waiting" for the huge file to arrive?
On Sep 23, 2012, at 9:21 PM, AJ Christensen
<
>
wrote:
>
There's a cookbook for distributing files via BitTorrent that I'd
>
suggest you use for shipping around such an amazingly large binary
>
asset; alternatives may be S3, rsync, etc.
>
>
--AJ
>
>
On 24 September 2012 13:07, Christopher DeMarco
>
<
>
>
wrote:
>
> So I want to provision a service for a custom app we've got. I can
>
> template
>
> an initscript/launchd_plist, and put all my listening ports, identifying
>
> strings etc. into data bags, etc… but until I've got the datafile on disk I
>
> can't start the service.
>
>
>
> The datafile will be anywhere from 100GB to 2TB - far too big to provision
>
> during a chef run, and since it's being seeded from an existing host I
>
> won't
>
> have it in advance anyway.
>
>
>
> What's the best way to proceed with something like this?
>
>
>
> My current best-thinking is to write a recipe with a data bag attribute
>
> "filename to look for", such that if the datafile doesn't exit the recipe
>
> doesn't do certain things until it finds the file…
>
>
>
> Suggestions?
>
>
>
> --cmd
>
>
>
>
>
> --
>
> Christopher DeMarco
>
> <
>
>
> +1-412-708-9660
>
>
--
Christopher DeMarco
<
>
+1-412-708-9660
Archive powered by MHonArc 2.6.16.