Merge "containerd scale down"

This commit is contained in:
Zuul 2022-11-22 20:55:13 +00:00 committed by Gerrit Code Review
commit b031ea37f2
2 changed files with 15 additions and 0 deletions

View File

@ -67,6 +67,19 @@ class platform::containerd::config
include ::platform::params
include ::platform::mtce::params
if $::platform::params::system_type == 'All-in-one' and
$::platform::params::distributed_cloud_role != 'systemcontroller' {
$containerd_max_proc = $::platform::params::eng_workers
file { '/etc/systemd/system/containerd.service.d/containerd-max-proc.conf':
ensure => file,
owner => 'root',
group => 'root',
mode => '0600',
content => template('platform/containerd-max-proc.conf.erb'),
}
}
# If containerd is started prior to networking providing a default route, the
# containerd cri plugin will fail to load and the status of the cri plugin
# will be in 'error'. This will prevent any crictl image pulls from working as

View File

@ -0,0 +1,2 @@
[Service]
Environment="GOMAXPROCS=<%= @containerd_max_proc %>"