I'm sure this thread is going to take some heat. Obviously what I post here is
very YMMV, and I guess that's my point -- MMDV and it just doesn't seem equal
just yet. That said, I'd be very happy to be enlightened about things I may
have overlooked. So please reply to this thread with a chance to educate me and
others reading it, rather than a chance to tell us how stupid we are.
On Jun 11, 2012, at 6:59 PM, Eric Sorenson wrote:
> The direction people are (and should be) taking is to remove that data from
> puppet manifest files entirely, instead using a data store that either:
>
> (a) drives parameters with which a class is invoked,
> (b) back-ends an external node classifier and injects these values in the
> top-scope `parameters` hash, or
> (c) serves inline lookups like the heira/extlookup parser functions.
>
> So yes, data ought to be separated from puppet code, in the same way database
> models are separated from controller code in MVC frameworks
I have to say I like the idea of ENC, but every ENC system I've tested so far
makes trackability and reusability harder instead of easier. Both Foreman and
Puppet Dashboard remove configuration files which can be stored in SVN/Git
repos with a cute GUI interface and no historical trackability. I keep thinking
there is something better, but I haven't found it yet. I suspect that if you
already have a significant internal data store, the ENC mechanism can be
adapted to use it quite well. But all the sites I've been working on lately I'm
creating something entirely new where nothing (useful) exists today, and these
solutions are less useful and less trackable than straight puppet configs.
Note: there are very nice features in both Dashboard and Foreman. I use them
both on different sites. I am simply saying that using either one as an ENC
right now seems fairly barebones and incomplete. I don't consider a database
table where I cannot figure out what it was yesterday to be a suitable
replacement for a configuration file with a commit history.
Yes, absolutely, I can put the configuration data in a CVS file and load it
using Hiera. I'm just not (yet) convinced that moving the data from a Puppet
configuration file to a CSV file is a large improvement. I can generate both of
these from other internal tools. They are identical for my purposes.
But the thing which is really holding me back is this: parse time has gone
through the roof. Simply put, doing nothing other than putting hiera and
puppetlabs-stdlib into the class definitions adds a few minutes to the puppet
run time, on a 8-core system with 64 gigabytes of ram! Without doing anything
at all. In a straight comparison test, side by side, a pure puppet catalog
runs in 1/20th of the time of the exact same catalog run with a hiera lookup.
This simply won't scale.
At the shop I was working at late last year, we were already hitting 3-minute
catalog compilation times on a pure puppet catalog with 40-50 modules and
approximately 10k lines of code. That was with puppet 2.6. We tried going to
puppet 2.7 and it completely killed a system with 300gb ram system and 16 cores
as the puppet master. When it takes 3 minutes to compile a catalog, and you
have 600 systems checking in every 30 minutes, you end up needing some serious
horsepower to deliver. Cost of that server was well above $30,000 and it wasn't
sufficient.
Summary: I do agree that separation of data and code is much better than mixing
them together. In theory, I love the idea of ENCs. But I haven't found a useful
system I can toss into place that provides a trackable and revert-able data
source.
*AND*
All of the modules which people are using seem to add EXTENSIVE slowdowns in
configuration and performance. As Puppet is something that is already VERY
resource intensive, I'm not certain that the external data source lookups are
plausible in large production environments. Yes, the very same environments
which need them the most.
Oh, last point: I am a huge proponent and user of "puppet kick", however long
run times effectively removes any functional use of puppet kick. Even today
it's really only functional with tight tagging to limit the catalog. However,
as soon as you start syncing plugins down to the host puppet kick runtimes grow
excessively long again.
--
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.