[Puppet Users] PuppetServer 2.8 resource Leak

2017-10-03 Thread Poil

Hi,

We have PuppetServer 2.8 on RHEL7.

After some days computation of the catalog become slower and slower; the 
load average of the compute nodes increased and the compute goes in timeout.


All our 4 computes nodes have 48 cores, only 10% of each core is used 
when the timeout occured.


We are on hiera v3, we only tuned  "max-requests-per-instance: 5000" 
because of a databases connection leak with our Trocla library.


Only 150 nodes are connected to our PuppetServer.

We never had this problem with Puppet3 (with more than 3000 nodes)

Anyone have already see this or have a tips to resolv this ?

Best regards,

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c6a457e9-5caf-f048-68b7-9dbdc867a5bb%40quake.fr.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Confusing error with file resource...

2017-10-03 Thread Sean
Hi,

I have a strange puppet error (v4.10.1) with a file resource that creates a 
cron job...

  file { '/etc/cron.daily/aide':
ensure  => $mymodule::ensure_aide,
owner   => 'root',
group   => 'root',
mode=> '0755',
source  => 'puppet:///modules/mymodule/cron/daily-aide-check.sh',
require => Package['aide'],
  }

The error is:

Error: Failed to apply catalog: Validation of File[/etc/cron.daily/aide] 
failed: You cannot specify more than one of content, source, target at :line#



The ensure param is a Variant - either boolean or enum of true, false, 
present, absent, latest.  The code passes the puppet parser and checking 
puppet lookup for $mymodule::ensure_aide for the test node returns a 'true' 
value from the module's hiera data.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/64776827-6fe1-49c0-89b1-fc532faa211a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Confusing error with file resource...

2017-10-03 Thread Henrik Lindberg

On 03/10/17 09:41, Sean wrote:

Hi,

I have a strange puppet error (v4.10.1) with a file resource that 
creates a cron job...


|
   file { '/etc/cron.daily/aide':
     ensure  => $mymodule::ensure_aide,
     owner   => 'root',
     group   => 'root',
     mode    => '0755',
     source  => 'puppet:///modules/mymodule/cron/daily-aide-check.sh',
     require => Package['aide'],
   }
|

The error is:

|
Error:Failedto apply catalog:Validationof 
File[/etc/cron.daily/aide]failed:Youcannot specify more than one of 
content,source,target at :line#



|

The ensure param is a Variant - either boolean or enum of true, false, 
present, absent, latest.  The code passes the puppet parser and checking 
puppet lookup for $mymodule::ensure_aide for the test node returns a 
'true' value from the module's hiera data.


Any ideas?


Check that you do not have any defaults or overrides that sets one of 
the other attributes that also specifies the contents of the file.


Compile the catalog and inspect the contents of the resource in 
question. If the catalog contains conflicting information about the file 
contents, then the problem is most likely a default/override problem in 
your code. If the resource is what you shown (no conflict) then it looks 
like a possible bug on the agent side. If so, please file a ticket with 
a reproducible example.


Best,
- henrik



--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/64776827-6fe1-49c0-89b1-fc532faa211a%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.



--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/or0kh8%24jod%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetServer 2.8 resource Leak

2017-10-03 Thread Matthaus Owens
Depending on what the trocla library does, it could be leaking objects
to the java layer, in which case tuning the max-requests-per-instance
down would not help. In general, the best way to find leaks like you
are talking about is described here:
https://puppet.com/blog/puppet-server-advanced-memory-debugging and
involves taking some heap dumps and investigating what changes between
dumps to see what is leaking.

On Tue, Oct 3, 2017 at 5:11 AM, Poil  wrote:
> Hi,
>
> We have PuppetServer 2.8 on RHEL7.
>
> After some days computation of the catalog become slower and slower; the
> load average of the compute nodes increased and the compute goes in timeout.
>
> All our 4 computes nodes have 48 cores, only 10% of each core is used when
> the timeout occured.
>
> We are on hiera v3, we only tuned  "max-requests-per-instance: 5000" because
> of a databases connection leak with our Trocla library.
>
> Only 150 nodes are connected to our PuppetServer.
>
> We never had this problem with Puppet3 (with more than 3000 nodes)
>
> Anyone have already see this or have a tips to resolv this ?
>
> Best regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/c6a457e9-5caf-f048-68b7-9dbdc867a5bb%40quake.fr.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACD%3DwAc_nSQgO22P7RwytO1vz4X8KtgazJ5P75AqUfmyTuhjwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetServer 2.8 resource Leak

2017-10-03 Thread Peter Meier
> We are on hiera v3, we only tuned  "max-requests-per-instance: 5000"
> because of a databases connection leak with our Trocla library.

This is fixed with the trocla module 1.0.1 [1] are you on that version?

best

~pete

[1]
https://github.com/duritong/puppet-trocla/commit/bbedb788a7951e2f69c1c2815a5c3c669ff02ae6

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e586fee5-028c-bc30-6758-5190c487010f%40immerda.ch.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature