Make DISCOVER_POOL_SIZE configurable