The Trocla leak seems to be in the trocla-hiera-backend
diff --git a/lib/puppet/functions/trocla_lookup_key.rb
b/lib/puppet/functions/trocla_lookup_key.rb
index d377ec8..f61df46 100644
--- a/lib/puppet/functions/trocla_lookup_key.rb
+++ b/lib/puppet/functions/trocla_lookup_key.rb
@@ -33,6 +33,8 @@ Puppet::Functions.create_function(:trocla_lookup_key) do
trocla_hierarchy(trocla_key, format, opts)
end
+ @trocla.close
+
context.not_found unless res
context.cache(key, res)
end
Le 18/10/2017 à 10:01, Poil a écrit :
Hi,
There still a leak on Trocla database connections (latest
gem/module/hiera backend).
I've installed a puppetserver, with only a node connected on; after 5
days, there is 240 opened connections.
Best regards,
Le 16/10/2017 à 09:44, Poil a écrit :
Hi,
We have upgrade to Hiera Backend v5 (and to the new trocla v5 backend)
There still a leak but it seems to be very very low.
I've also switched in our site.pp all hiera/hiera_hash/hiera_array
call to lookup. We still have some hiera* function call in some
module, I'm asking myself if the leak is not in these functions.
Best regards,
Le 06/10/2017 à 12:40, Poil a écrit :
Hi,
The database connections leak remains after upgrading trocla.
Also after 2 days the catalog computation times start to increase
again.
I'm going to install newrelic on a puppetserver and if I see nothing
I will try to analyze via your blog article.
Best regardsLe 4 oct. 2017 10:58, Poil <[email protected]> a écrit :
Hi,
Thanks !
We had Trocla 0.2.3, and module 0.2.2 I'm upgrading to Trocla 0.3.0
and
latest module code
Best regards,
Le 04/10/2017 à 08:27, Peter Meier a écrit :
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/675be630-3ef4-e316-6d05-d6000eaadd6c%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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/a1bca6b3-5824-b97f-117f-95f22c7588ab%40quake.fr.
For more options, visit https://groups.google.com/d/optout.