Merge "Enable caching"

This commit is contained in:
Zuul 2024-12-17 10:01:41 +00:00 committed by Gerrit Code Review
commit 1e03b3e260
6 changed files with 41 additions and 1 deletions

View File

@ -15,6 +15,18 @@ class packstack::heat ()
workers => lookup('CONFIG_SERVICE_WORKERS'),
}
$memcache_servers = lookup('CONFIG_IP_VERSION') ? {
'ipv6' => ['[::1]:11211'],
default => ['127.0.0.1:11211'],
}
class {'heat::cache':
enabled => true,
backend => 'dogpile.cache.pymemcache',
memcache_servers => $memcache_servers,
}
include packstack::memcached
Class['memcached'] -> Anchor['heat::service::begin']
$heat_cfg_ctrl_host = lookup('CONFIG_KEYSTONE_HOST_URL')
class { 'heat::engine':

View File

@ -60,6 +60,18 @@ class packstack::keystone ()
region => lookup('CONFIG_KEYSTONE_REGION'),
}
$memcache_servers = lookup('CONFIG_IP_VERSION') ? {
'ipv6' => ['[::1]:11211'],
default => ['127.0.0.1:11211'],
}
class { 'keystone::cache':
enabled => true,
backend => 'dogpile.cache.pymemcache',
memcache_servers => $memcache_servers,
}
include packstack::memcached
Class['memcached'] -> Anchor['keystone::dbsync::begin']
# default assignment driver is SQL
$assignment_driver = 'keystone.assignment.backends.sql.Assignment'

View File

@ -36,6 +36,7 @@ class packstack::nova::api ()
service_name => 'httpd',
}
include packstack::nova::cache
class { 'nova::metadata':
neutron_metadata_proxy_shared_secret => lookup('CONFIG_NEUTRON_METADATA_PW_UNQUOTED', undef, undef, undef),
}

View File

@ -0,0 +1,14 @@
class packstack::nova::cache ()
{
$memcache_servers = lookup('CONFIG_IP_VERSION') ? {
'ipv6' => ['[::1]:11211'],
default => ['127.0.0.1:11211'],
}
class { 'nova::cache':
enabled => true,
backend => 'dogpile.cache.pymemcache',
memcache_servers => $memcache_servers,
}
include packstack::memcached
Class['memcached'] -> Anchor['nova::service::begin']
}

View File

@ -1,5 +1,6 @@
class packstack::nova::conductor ()
{
include packstack::nova::cache
class { 'nova::conductor':
enabled => true,
workers => lookup('CONFIG_SERVICE_WORKERS'),

View File

@ -1,7 +1,7 @@
class packstack::nova::sched ()
{
include packstack::nova::cache
include nova::scheduler::filter
class { 'nova::scheduler':
enabled => true,
}