Fixes #39093 - add container db connection options#896
Fixes #39093 - add container db connection options#896evgeni merged 1 commit intotheforeman:masterfrom
Conversation
Who can answer that? |
|
The diff is fine, but Katello/smart_proxy_container_gateway#63 is not yet merged, so I am a bit hesitant to merge this before the implementation side hasn't settled. |
|
This current design allows them to be configured by the user, and to remove the installer support and rely only on hiera would require some gymnastics that would I think lead to an uglier design. I think also these parameters are good to expose this way if a user needs to tweak them. |
@ehelms I thought the params here were only editable by custom hiera? I applied the changes to my box and am not seeing container gateway options. I think I remember from back when we added installer support, we decided not to expose the container gateway options to the greater installer arguments. |
|
I verified that I can set the values via custom-hiera.yaml: # custom-hiera.yaml
foreman_proxy::plugin::container_gateway::database_max_connections: 100
foreman_proxy::plugin::container_gateway::database_pool_timeout: 80# container_gateway.yml
...
:db_max_connections: 100
:db_pool_timeout: 80 |
|
No foreman-installer options for max connections or pool timeout though: |
|
Oh right right, it's contained inside https://github.com/theforeman/puppet-foreman_proxy_content/blob/master/manifests/init.pp#L261 If users may need to tweak this based on their environment and workflows, then I feel like we should expose it directly in puppet-foreman_proxy_content. |
That sounds good to me then, we can open a foreman_proxy_content PR. |
|
Here is the FPC PR: theforeman/puppet-foreman_proxy_content#532 |
Adds support for Katello/smart_proxy_container_gateway#63
Allows users to modify DB max connections and the pool timeout for the container gateway.
The default in the gateway is proposed to be set at 30 connections / 30s timeout.
The reason for the entire effort is that the default 4 connections does not allow enough concurrency for concurrent container pulls.
One big question: should this be configurable via the Installer? Or just via Hiera? My hope is that most users will be able to operate with the defaults.