set max number of idle connections and total number  of connections