example code for testing minConnectionsPerHost