Re: [Puppet Users] Performance issue with puppetserver

2017-12-13 Thread Martin Alfke
> On 13 Dec 2017, at 20:48, n.bele...@gaijin.ru wrote: > > You are managing lots of files on your agent. > How many are managed? > grep file /opt/puppetlabs/puppet/cache/state/resources.txt | wc -l > > > grep -c file /opt/puppetlabs/puppet/cache/state/resources.txt > 223 That is not many.

Re: [Puppet Users] Re: Performance issue with puppetserver

2017-12-13 Thread n . belecky
Thanks for the advice! We will try to use packages more often. среда, 13 декабря 2017 г., 20:24:04 UTC+3 пользователь Rob Nelson написал: > > For packing files (or applications, or anything) as John suggested (#2), I > recommend FPM. It's really easy to create an rpm, deb, or whatever quickly >

Re: [Puppet Users] Performance issue with puppetserver

2017-12-13 Thread n . belecky
среда, 13 декабря 2017 г., 21:30:56 UTC+3 пользователь Martin Alfke написал: > > > > On 13 Dec 2017, at 18:40, n.be...@gaijin.ru wrote: > > > > > > Many changes. Is this initial Puppet run or is this standard that you > have 1043 changes on every Puppet run? > > This is the initial run. Ins

Re: [Puppet Users] Performance issue with puppetserver

2017-12-13 Thread Robert
Hey, Do you manage directories using recursive => true? > A good question indeed - I don't recommend recurse => true, it needs a LOT of time and memory from a given number of files (no idea how much exactly). We had two servers with a similar role, but different environment, the one had like 20GB

Re: [Puppet Users] Performance issue with puppetserver

2017-12-13 Thread Martin Alfke
> On 13 Dec 2017, at 18:40, n.bele...@gaijin.ru wrote: > > > Many changes. Is this initial Puppet run or is this standard that you have > 1043 changes on every Puppet run? > This is the initial run. Installing a new server. OK. > > File: 4466.81 > > Which Puppetserver version

Re: [Puppet Users] Performance issue with puppetserver

2017-12-13 Thread n . belecky
среда, 13 декабря 2017 г., 19:23:00 UTC+3 пользователь Martin Alfke написал: > > > Hi, > > > On 12 Dec 2017, at 12:41, n.be...@gaijin.ru wrote: > > > > Hello! > > > > We have a problem with very slow work puppetserver. > > > > > > We have ~300 nodes, master runs on a server with 24 cores

Re: [Puppet Users] Re: Performance issue with puppetserver

2017-12-13 Thread Rob Nelson
For packing files (or applications, or anything) as John suggested (#2), I recommend FPM. It's really easy to create an rpm, deb, or whatever quickly without having to learn the arcane options for each package builder. It's not considered suitable for distribution-quality packages but I do not thin

Re: [Puppet Users] Differences between Resource Defaults statement and per block default?

2017-12-13 Thread R.I.Pienaar
On Wed, 13 Dec 2017, at 18:00, Henrik Lindberg wrote: > On 13/12/17 17:40, R.I.Pienaar wrote: > > > > > > On Wed, 13 Dec 2017, at 16:31, Henrik Lindberg wrote: > >> On 13/12/17 14:46, Tobias Koeck wrote: > >>> Hi, > >>> > >>> I am wondering what the difference between a Resource Default stateme

Re: [Puppet Users] Differences between Resource Defaults statement and per block default?

2017-12-13 Thread Henrik Lindberg
On 13/12/17 17:40, R.I.Pienaar wrote: On Wed, 13 Dec 2017, at 16:31, Henrik Lindberg wrote: On 13/12/17 14:46, Tobias Koeck wrote: Hi, I am wondering what the difference between a Resource Default statement like |Exec { path => '/usr/bin:/bin:/usr/sbin:/sbin', environment => 'RUBYLIB=/opt/p

[Puppet Users] Re: Performance issue with puppetserver

2017-12-13 Thread jcbollinger
On Tuesday, December 12, 2017 at 11:17:20 AM UTC-6, n.be...@gaijin.ru wrote: > > > We have a problem with very slow work puppetserver. > > > We have ~300 nodes, master runs on a server with 24 cores and 20 GB of > memory. > > Pappet agent log: > [...] > Time: > [...] > File: 4466.81

Re: [Puppet Users] Differences between Resource Defaults statement and per block default?

2017-12-13 Thread R.I.Pienaar
On Wed, 13 Dec 2017, at 16:31, Henrik Lindberg wrote: > On 13/12/17 14:46, Tobias Koeck wrote: > > Hi, > > > > I am wondering what the difference between a Resource Default statement like > > > > |Exec { path => '/usr/bin:/bin:/usr/sbin:/sbin', environment => > > 'RUBYLIB=/opt/puppetlabs/puppe

Re: [Puppet Users] Performance issue with puppetserver

2017-12-13 Thread Martin Alfke
Hi, > On 12 Dec 2017, at 12:41, n.bele...@gaijin.ru wrote: > > Hello! > > We have a problem with very slow work puppetserver. > > > We have ~300 nodes, master runs on a server with 24 cores and 20 GB of memory. Low number of nodes. Enough CPU and RAM. > > Pappet agent log: > > Notice: App

Re: [Puppet Users] Differences between Resource Defaults statement and per block default?

2017-12-13 Thread Henrik Lindberg
On 13/12/17 14:46, Tobias Koeck wrote: Hi, I am wondering what the difference between a Resource Default statement like |Exec { path => '/usr/bin:/bin:/usr/sbin:/sbin', environment => 'RUBYLIB=/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0/', logoutput => true, timeout => 180, } What th

Re: [Puppet Users] Differences between Resource Defaults statement and per block default?

2017-12-13 Thread Johan Fleury
Le mercredi 13 décembre 2017 à 14:46 +0100, Tobias Koeck a écrit : > Hi, > > I am wondering what the difference between a Resource Default statement like > > Exec { > path=> '/usr/bin:/bin:/usr/sbin:/sbin', > environment => 'RUBYLIB=/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0/', >

Re: [Puppet Users] Differences between Resource Defaults statement and per block default?

2017-12-13 Thread R.I.Pienaar
On Wed, 13 Dec 2017, at 14:46, Tobias Koeck wrote: > Hi, > > I am wondering what the difference between a Resource Default statement > like > > Exec { > path=> '/usr/bin:/bin:/usr/sbin:/sbin', > environment => > 'RUBYLIB=/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0/', > logou

[Puppet Users] Differences between Resource Defaults statement and per block default?

2017-12-13 Thread Tobias Koeck
Hi, I am wondering what the difference between a Resource Default statement like Exec { path=> '/usr/bin:/bin:/usr/sbin:/sbin', environment => 'RUBYLIB=/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0/', logoutput => true, timeout => 180, } and using a per block default lik

[Puppet Users] Managing puppet module

2017-12-13 Thread Albert Shih
Hi everyone. I'm not sure if it's a bug or what. Here what puppet module list give me : ├── puppetlabs-apt (v2.4.0) ├── puppetlabs-stdlib (v4.24.0) but if I try to upgrade puppetlabs-apt they say Notice: Downloading from https://forgeapi.puppet.com ... Error: Could not upgrade module 'puppetlab