Skip to content

Commit f6a887e

Browse files
committed
Fixes #36957 - Expose Pulpcore content & api worker counts
These are parameters on the pulpcore module and allow further tuning without diving into Hiera.
1 parent b33257c commit f6a887e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manifests/init.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@
5757
# degradation due to I/O blocking and is not recommended in most cases. Modifying this parameter should be done
5858
# incrementally with benchmarking at each step to determine an optimal value for your deployment.
5959
#
60+
# $pulpcore_content_service_worker_count:: Gunicorn worker count for the pulpcore-content.service
61+
#
6062
# $pulpcore_content_service_worker_timeout:: Gunicorn worker timeout in seconds for the pulpcore-content.service
6163
#
64+
# $pulpcore_api_service_worker_count:: Gunicorn worker count for the pulpcore-api.service
65+
#
6266
# $pulpcore_api_service_worker_timeout:: Gunicorn worker timeout in seconds for the pulpcore-api.service
6367
#
6468
# $pulpcore_django_secret_key:: Secret key used for cryptographic operations by Pulpcore's django runtime
@@ -107,7 +111,9 @@
107111
Stdlib::Absolutepath $pulpcore_postgresql_ssl_root_ca = '/etc/pki/tls/certs/ca-bundle.crt',
108112
Integer[0] $pulpcore_worker_count = $foreman_proxy_content::params::pulpcore_worker_count,
109113
Optional[String[50]] $pulpcore_django_secret_key = undef,
114+
Optional[Integer[0]] $pulpcore_content_service_worker_count = undef,
110115
Integer[0] $pulpcore_content_service_worker_timeout = 90,
116+
Optional[Integer[0]] $pulpcore_api_service_worker_count = undef,
111117
Integer[0] $pulpcore_api_service_worker_timeout = 90,
112118
Boolean $pulpcore_cache_enabled = true,
113119
Optional[Variant[Integer[1], Enum['None']]] $pulpcore_cache_expires_ttl = undef,
@@ -254,7 +260,9 @@
254260
postgresql_db_ssl_root_ca => $pulpcore_postgresql_ssl_root_ca,
255261
worker_count => $pulpcore_worker_count,
256262
django_secret_key => $pulpcore_django_secret_key,
263+
content_service_worker_count => $pulpcore_content_service_worker_count,
257264
content_service_worker_timeout => $pulpcore_content_service_worker_timeout,
265+
api_service_worker_count => $pulpcore_api_service_worker_count,
258266
api_service_worker_timeout => $pulpcore_api_service_worker_timeout,
259267
api_client_auth_cn_map => $api_client_auth_cn_map,
260268
cache_enabled => $pulpcore_cache_enabled,

0 commit comments

Comments
 (0)