make r connection pool size configurable