: The problem is at program startup -- when 'new HttpSolrServer(url)' is called, : it goes and makes sure that the server is up and responsive. If any of those : 56 object creation calls fails, then my app won't even start.
What exactly is the exception are you getting? i don't think antying in HttpSolrServer explicitly tries to test the server on creation. : Someone on the IRC channel brought up the possibility of initializing the : HttpClient myself instead of letting the Solr object do it. If the health : check is actually in HttpClient, this might work, if there's a way to : initialize the HttpClient without a health check. I've actually been : wondering if it makes any sense to re-use a single HttpClient object across : all 56 server objects. It probably would make sense for you to create a single HttpClient object that you re-use in all of your HttpSolrServer instances -- but i'm not sure how that would help your problem, since the HttpClient constructed implicitly by HttpSolrServer(String) doesn't know anything about the baseUrl. HttpClient literally can not test the health of the URL when it is created, because it doesn't know anything about any URLs until a request is executed. -Hoss