docker-registry 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 docker-registry service documentation TEST PLAN: PASS: AIO-SX: build a new Debian ISO. Install, boostrap and perform a host-unlock verifying expected number of threads created. Story: 2010087 Task: 45707 Change-Id: I8dd10b5d3d9c8d7e7886996a620d4b776c45c980 Signed-off-by: Thiago Antonio Miranda <tmarques@windriver.com>
This commit is contained in:
@@ -154,6 +154,19 @@ class platform::dockerdistribution::config
|
||||
mode => '0644',
|
||||
content => template('platform/docker-distribution-override.conf.erb'),
|
||||
}
|
||||
|
||||
if $::platform::params::system_type == 'All-in-one' and
|
||||
$::platform::params::distributed_cloud_role != 'systemcontroller' {
|
||||
$docker_registry_max_procs = $::platform::params::eng_workers
|
||||
|
||||
file { "/etc/systemd/system/${service_name}.d/docker-distribution-stx-override.conf":
|
||||
ensure => file,
|
||||
content => template('platform/docker-distribution-stx-override.conf.erb'),
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# compute also needs the "insecure" flag in order to deploy images from
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Environment="GOMAXPROCS=<%= @docker_registry_max_procs %>"
|
||||
Reference in New Issue
Block a user