chef-sentry-handler icon indicating copy to clipboard operation
chef-sentry-handler copied to clipboard

Add version property to uuidtools chef_gem stanza

Open 68lc040 opened this issue 10 years ago • 1 comments

Add a version property to the uuidtools chef_gem stanza.

In using this cookbook across hundreds of nodes, which are coincidentally NAT'd behind the same public IPv4 address, we started to notice strange network behavior that caused chef-client runs to hang while processing the uuidtools stanza. Each node typically had two https connections stuck in an ESTABLISHED and/or CLOSE_WAIT state with data in recv-q. We quickly surmised that this was symptomatic of chef checking for an updated uuidtools gem, and some kludgey rate limiting over at the gem repo causing our clients to hang indefinitely. If you don't specify a gem version, upon each client run chef will attempt to retrieve the latest version info for that gem. By specifying a suitable gem version we take a step to use the gem repo responsibly.

68lc040 avatar Nov 25 '15 06:11 68lc040

This would need to be parameterized and disabled by default.

coderanger avatar Nov 25 '15 15:11 coderanger