kubelet scale down
Platform services configuration were changed in order to consume minimal resources by limiting number of threads/workers to the minimum value based on kubelet service documentation TEST PLAN: PASS: build a new Debian ISO. PASS: AIO: SX|DX|DX+: Install, bootstrap and perform a host-unlock verifying that GOMAXPROCS is following the correct scalability set parameter. PASS: STD: Install, bootstrap and perform a host-unlock verifying that GOMAXPROCS is following the correct scalability set parameter. PASS: Single-core for scale-down testing. PASS: Increased cores for scale-up testing. Story: 2010087 Task: 45704 Change-Id: Ib4962e2c34542a443059d4d80684f3f88f5492a3 Signed-off-by: Thiago Antonio Miranda <tmarques@windriver.com>
This commit is contained in:
committed by
Caio Cesar Ferreira
parent
1cdfd78286
commit
34bb84f3a0
@@ -564,9 +564,23 @@ class platform::kubernetes::worker
|
||||
class platform::kubernetes::aio
|
||||
inherits ::platform::kubernetes::params {
|
||||
|
||||
include ::platform::params
|
||||
include ::platform::kubernetes::master
|
||||
include ::platform::kubernetes::worker
|
||||
|
||||
if $::platform::params::distributed_cloud_role != 'systemcontroller' {
|
||||
$kubelet_max_procs = $::platform::params::eng_workers
|
||||
|
||||
# Set kubelet GOMAXPROCS environment variable
|
||||
file { '/etc/systemd/system/kubelet.service.d/kubelet-max-procs.conf':
|
||||
ensure => file,
|
||||
content => template('platform/kubelet-max-procs.conf.erb'),
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
}
|
||||
}
|
||||
|
||||
Class['::platform::kubernetes::master']
|
||||
-> Class['::platform::kubernetes::worker']
|
||||
-> Class[$name]
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Environment="GOMAXPROCS=<%= @kubelet_max_procs %>"
|
||||
Reference in New Issue
Block a user