'Spring Cloud Dataflow - Set max-connection-pool for Composed Task Runner

I've encountered an issue on Spring Cloud Dataflow when running multiple composed tasks at once.

Hikari DataSource takes 10 connections from the connection pool by default. When running for example 10 composed tasks at once, this means 100 connections + connections required for every task on each composed task.

I tried running the Composed Task Runner locally with spring.datasource.hikari.maximum-pool-size=1 and it worked.

Is there any way how to set this property to every Composed Task Runner by default ? I did not find any documentation related to modifying things like this for composed tasks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source