On Jun 12, 2012, at 4:55 PM, Trevor Vaughan wrote: > The ENC interface appears to be slow in general. > > I can't say much about Dashboard and Foreman given their use of > storedconfigs, so I'm not sure where the bottlenecks are there > exactly. > > It *seems* to be that the base ENC gets read multiple times instead of > cached the first time, but that might just be my experience with > extlookup and LDAP.
That is a possibility. We'll take a look into it (/me puts it on his todo list). > > Then again, I haven't attempted to use these in quite some time so my > information here may be woefully (hopefully) out of date. > > I am excited to hear about the performance improvements going into 3.0 > but a bit sad to hear that they aren't going to make it into the 2.7 > series given the amount of work that it looks like it might take to > move to 3.0. I could be wrong and am seriously hoping that I am but > enough seems to be changing that a lot of people in the community > might be doing some major code overhauls. I'll try to keep an eye one what might be able to go into 2.7. I suspect that many of the things in 3.0 will also apply to 2.7. I'll likely try to have us concentrate on getting 3.0 sorted out and then back port those to 2.7 in a later release so that we don't take on too much at once. > > Thanks, > > Trevor > > On Tue, Jun 12, 2012 at 6:36 PM, Andrew Parker <[email protected]> wrote: >> On Jun 12, 2012, at 3:47 AM, Trevor Vaughan wrote: >> >>> Hi Jo, >>> >>> I've experienced some of the same issues that you're highlighting >>> while using Puppet internally at my company. >>> >>> My experience has shown: >>> >>> 1) 2.7 does slow things down significantly >> >> Unfortunate, but true. If I understand correctly, later 2.7 releases got a >> bit better, but never back up to the 2.6 speeds. >> >>> 2) ENC's are too slow to scale except in the case of LDAP where the >>> performance seems relatively reasonable as long as you have a caching >>> LDAP server on your host. >> >> Are there specific ENCs that you mean are slow (such as Dashboard or >> Foreman), or is that the ENC interface is slow in general? >> >>> 3) Augeas is slower that the native concat type that we posted to >>> Github (though that needs some polish) >>> 4) Calling a large number of Exec's and Service's will cause some sort >>> of undetermined queueing backup on your clients >>> 5) Replacing Exec's with native types is a *good thing* >>> 6) Stored Configs aren't worth the performance hit (SNMP is your friend) >>> 7) Watch out for people doing nested 'imports' instead of 'includes' >>> >>> I'm hoping that 3.0 brings some significant performance improvements. >>> >> >> We discovered some functionality regressions that we are working on right >> now and hope to have out of the way soon. We've also made the decision to >> hold off on releasing 3.0 until we have worked on the performance. So for >> the next month or so the team working on Puppet is going to be trying to >> improve the performance of 3.0. I would like us to achieve the performance >> of 2.6, but I don't know if that is going to happen, at the very least I >> don't want 3.0 to perform any worse than 2.7. >> >> What this means is that the already bad state of our pull request queue on >> github isn't going to get better soon, because in order for us to be able to >> concentrate on speeding up 3.0 we'll need to divert our attention away from >> other things for a while. That is the tradeoff that we are going to make, >> but it won't last forever, and we'll try to get back to getting on top of >> our pull requests and tickets once we have this major release out of the way. >> >>> Trevor >>> >>> On Tue, Jun 12, 2012 at 3:01 AM, Jo Rhett <[email protected]> wrote: >>>> 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. >>>> >>> >>> >>> >>> -- >>> Trevor Vaughan >>> Vice President, Onyx Point, Inc >>> (410) 541-6699 >>> [email protected] >>> >>> -- This account not approved for unencrypted proprietary information -- >>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > > > -- > Trevor Vaughan > Vice President, Onyx Point, Inc > (410) 541-6699 > [email protected] > > -- This account not approved for unencrypted proprietary information -- > > -- > 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. > -- 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.
