Support setting max number of mysql connections allowed