diff --git a/config/foreman.migrations/20240505103832_change_db_pool_size.rb b/config/foreman.migrations/20240505103832_change_db_pool_size.rb new file mode 100644 index 00000000..1921a7ca --- /dev/null +++ b/config/foreman.migrations/20240505103832_change_db_pool_size.rb @@ -0,0 +1,4 @@ +if answers['foreman'].is_a?(Hash) && answers.dig('foreman', 'db_pool') + puma_threads_max = answers.dig('foreman', 'foreman_service_puma_threads_max').to_i + answers['foreman']['db_pool'] = [answers.dig('foreman', 'db_pool').to_i, puma_threads_max + 4].max +end