You could make your recipe more intelligent.Have an attribure default[:dns][:set] = false, then node.set[:dns][:set] = true in the first run.Check that on the recipe and avoid hitting the API if true.- cassianoOn Monday, March 25, 2013 at 09:04, Brian Akins wrote:
Let's take DNS (with route53) as an example:Each node uses an LWRP (based on HW's route53 cookbook) to checkroute53 and add itself to DNS if needed. This seems like a commonpatter and is all good.However, what about when you have, say, 5000 nodes? It just seemsabsolutely silly to have each node do this every hour. While it doesmake sure that new nodes get added to DNS right away - it just seemsunnecessary to do this every chef run.Now, imagine the above but with 3 or 4 services - API calls formonitoring, load balancing, etc. The "LWRP every chef run" is easyand makes sense when you have a relatively few number of nodes.How are other large installs handling this?I was thinking that a script that once every x minutes scraped route53and chef and just applied the "diff" would be more suitable for"large" installs.Or am I just fretting over nothing?--Brian
Archive powered by MHonArc 2.6.16.