Addition of option to configure max_pool_size

Part of the fix for [PD-642](https://datacentred.atlassian.net/browse/PD-642).