We need to put a script into /usr/local/bin. Which is more efficient, put the text into a variable and use content =>, or put the file on the puppetmaster server and use source => --- Thanks, Allan Marcus 505-667-5666 "A carrot may work better than a stick, but only if the carrot is big enough and it doesn''t break when you hit people with it." -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 30/06/10 20:48, Marcus, Allan B wrote:> We need to put a script into /usr/local/bin. Which is more efficient, put the text into a variable and use content =>, or put the file on the puppetmaster server and use source =>Definitely source. Because most of the time the script won''t be downloaded again and again. With content, your transmitted catalog will contains the file content everytime, which means the puppetmaster will read the file on each catalog compilation and transmit it to the client. Note: in the upcoming 2.6, the file transfer is definitely better and doesn''t cost any memory on the client nor the server (and it is even possible to activate http compression). -- Brice Figureau My Blog: http://www.masterzen.fr/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Marcus, Allan B writes: > We need to put a script into /usr/local/bin. Which is more efficient, > put the text into a variable and use content =>, or put the file on > the puppetmaster server and use source => Why do you care about the efficiency of this? It''s more important to make things easier to maintain than more efficient in most cases. However, I suspect using file { source => ... } will be both more efficient and easier to maintain. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
With over two thousand client hitting one server, and plans to grow to about 5000, efficiency is important. --- Thanks, Allan Marcus 505-667-5666 "A carrot may work better than a stick, but only if the carrot is big enough and it doesn''t break when you hit people with it." On Jun 30, 2010, at 12:58 PM, Steven VanDevender wrote:> Marcus, Allan B writes: >> We need to put a script into /usr/local/bin. Which is more efficient, >> put the text into a variable and use content =>, or put the file on >> the puppetmaster server and use source => > > Why do you care about the efficiency of this? It''s more important to > make things easier to maintain than more efficient in most cases. > > However, I suspect using file { source => ... } will be both more > efficient and easier to maintain. > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I''d say that "this way lies madness". Just do whatever gives you maintainability. The way that you source a file isn''t going to make or break your server. (Unless you start embedding huge files in your manifest.) If small changes like this will break your server, your server will die the first time you run a backup or any other maintenance. On Jun 30, 2010, at 1:07 PM, Marcus, Allan B wrote:> With over two thousand client hitting one server, and plans to grow to about 5000, efficiency is important. > > On Jun 30, 2010, at 12:58 PM, Steven VanDevender wrote: > >> Marcus, Allan B writes: >>> We need to put a script into /usr/local/bin. Which is more efficient, >>> put the text into a variable and use content =>, or put the file on >>> the puppetmaster server and use source => >> >> Why do you care about the efficiency of this? It''s more important to >> make things easier to maintain than more efficient in most cases. >> >> However, I suspect using file { source => ... } will be both more >> efficient and easier to maintain. >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
we are running at about 10-15% processor usage now, so it ain''t even close to make or break. We run MySQL and apache on the same box too, so we can split them off if we need to. I was just wondering if one way was significantly more efficient than the other. --- Thanks, Allan Marcus 505-667-5666 "A carrot may work better than a stick, but only if the carrot is big enough and it doesn''t break when you hit people with it." On Jun 30, 2010, at 2:28 PM, Patrick Mohr wrote:> I''d say that "this way lies madness". Just do whatever gives you maintainability. The way that you source a file isn''t going to make or break your server. (Unless you start embedding huge files in your manifest.) If small changes like this will break your server, your server will die the first time you run a backup or any other maintenance. > > > On Jun 30, 2010, at 1:07 PM, Marcus, Allan B wrote: > >> With over two thousand client hitting one server, and plans to grow to about 5000, efficiency is important. >> >> On Jun 30, 2010, at 12:58 PM, Steven VanDevender wrote: >> >>> Marcus, Allan B writes: >>>> We need to put a script into /usr/local/bin. Which is more efficient, >>>> put the text into a variable and use content =>, or put the file on >>>> the puppetmaster server and use source => >>> >>> Why do you care about the efficiency of this? It''s more important to >>> make things easier to maintain than more efficient in most cases. >>> >>> However, I suspect using file { source => ... } will be both more >>> efficient and easier to maintain. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >>> To post to this group, send email to puppet-users@googlegroups.com. >>> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >>> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Wed, Jun 30, 2010 at 11:57 AM, Brice Figureau <brice-puppet@daysofwonder.com> wrote:> On 30/06/10 20:48, Marcus, Allan B wrote: >> We need to put a script into /usr/local/bin. Which is more efficient, put the text into a variable and use content =>, or put the file on the puppetmaster server and use source => > > Definitely source.I''m in the process of setting up performance testing for this sort of question, but my intuition tells me otherwise. With source =>, the puppet master still needs to determine a hash of the file to include in the catalog, which isn''t an inexpensive operation. If you use content => file(''/tmp/foo.txt''), the master still needs to hit the filesystem, but it doesn''t need to calculate a checksum. In addition, if you''re using cached catalogs, the agent doesn''t need to do a round trip to the puppet master file server to manage the file resource if it''s out of state, since the contents are directly in the catalog. Just my intuition, I hope to have data to back up my hypothesis by the end of next week. -- Jeff McCune http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.