Install yappi and objgraph packages

If yappi is installed, we can get nodepool to dump thread info.
If objgraph is installed, we can get object counts to help find
memory leaks (which we seem to have).

Change-Id: I88e79da77fb03c6d522f48baa19d55fd69968528
This commit is contained in:
David Shrewsbury 2019-04-22 10:15:46 -04:00
parent c3b5a3497e
commit 5eb147f7d9
1 changed files with 20 additions and 0 deletions

View File

@ -120,11 +120,29 @@ class nodepool (
if ($python_version == 3) {
include ::pip::python3
$pip_provider = pip3
$pip_command = 'pip3'
} else {
$pip_provider = openstack_pip
$pip_command = 'pip'
}
if ! defined(Package['yappi']) {
package { 'yappi':
ensure => present,
provider => $pip_provider,
require => Class['pip'],
}
}
if ! defined(Package['objgraph']) {
package { 'objgraph':
ensure => present,
provider => $pip_provider,
require => Class['pip'],
}
}
exec { 'install_nodepool' :
command => "${pip_command} install -U /opt/nodepool",
path => '/usr/local/bin:/usr/bin:/bin/',
@ -138,6 +156,8 @@ class nodepool (
Package['libxml2-dev'],
Package['libxslt1-dev'],
Package['libgmp-dev'],
Package['objgraph'],
Package['yappi'],
],
timeout => 1000,
}