Make rpc_conn_pool_size and rpc_thread_pool_size configurable
Change-Id: I30bc64217a364b16fda3e8dc042af8f444006db3
Related-Prod: PROD-26334
diff --git a/oslo_templates/files/queens/oslo/messaging/_default.conf b/oslo_templates/files/queens/oslo/messaging/_default.conf
index 988a40c..5382e2b 100644
--- a/oslo_templates/files/queens/oslo/messaging/_default.conf
+++ b/oslo_templates/files/queens/oslo/messaging/_default.conf
@@ -5,6 +5,9 @@
# Size of RPC connection pool. (integer value)
#rpc_conn_pool_size = 30
+{%- if _data.rpc_conn_pool_size is defined %}
+rpc_conn_pool_size = {{ _data.rpc_conn_pool_size }}
+{%- endif %}
# The pool size limit for connections expiration policy (integer
# value)
@@ -137,6 +140,9 @@
# Maximum number of (green) threads to work concurrently. (integer
# value)
#rpc_thread_pool_size = 100
+{%- if _data.rpc_thread_pool_size is defined %}
+rpc_thread_pool_size = {{ _data.rpc_thread_pool_size }}
+{%- endif %}
# Expiration timeout in seconds of a sent/received message after which
# it is not tracked anymore by a client/server. (integer value)
diff --git a/oslo_templates/files/rocky/oslo/messaging/_default.conf b/oslo_templates/files/rocky/oslo/messaging/_default.conf
index 2a785a8..d46838c 100644
--- a/oslo_templates/files/rocky/oslo/messaging/_default.conf
+++ b/oslo_templates/files/rocky/oslo/messaging/_default.conf
@@ -5,6 +5,9 @@
# Size of RPC connection pool. (integer value)
#rpc_conn_pool_size = 30
+{%- if _data.rpc_conn_pool_size is defined %}
+rpc_conn_pool_size = {{ _data.rpc_conn_pool_size }}
+{%- endif %}
# The pool size limit for connections expiration policy (integer value)
#conn_pool_min_size = 2
@@ -127,6 +130,9 @@
# Maximum number of (green) threads to work concurrently. (integer value)
#rpc_thread_pool_size = 100
+{%- if _data.rpc_thread_pool_size is defined %}
+rpc_thread_pool_size = {{ _data.rpc_thread_pool_size }}
+{%- endif %}
# Expiration timeout in seconds of a sent/received message after which it is
# not tracked anymore by a client/server. (integer value)