Foreman (RackApp?) hangs when concurrent creation of hosts

I have written a script that create hosts in Foreman on a VMware compute
resource (using API v2)
Looking at the logs, it manages to create DNS and DHCP records, but it
hangs when it finishes the "rendering template" part, Foreman no longer
accept any requests until i restart apache (httpd).
The hosts are able to finish and gets created without issues, well, only if
i restart apache when it finishes the "rendering template" part.
Am i missing something in my configuration or just hit a bug?

Had to increase "PassengerMaxPoolSize" under
/etc/httpd/conf.d/passenger.conf
It is a smart class param in the apache puppet module but not under the
foreman one.

I assume because the VMware calls are blocking calls, in this specific case
it should be increased.

ยทยทยท On Sunday, January 8, 2017 at 8:15:35 PM UTC+2, Erez Zarum wrote: > > I have written a script that create hosts in Foreman on a VMware compute > resource (using API v2) > Looking at the logs, it manages to create DNS and DHCP records, but it > hangs when it finishes the "rendering template" part, Foreman no longer > accept any requests until i restart apache (httpd). > The hosts are able to finish and gets created without issues, well, only > if i restart apache when it finishes the "rendering template" part. > Am i missing something in my configuration or just hit a bug? > >