int maxThreadsPerSearcher = (workerThreads * 2 / hosts.length) + 1 ;
logger.info("init: setting maxThreadsPerSearcher to " + maxThreadsPerSearcher);
for (int i = 0; i < hosts.length; i++) {
Pair<String, Integer> host = PortUtil.parseHost(hosts[i]);
searchers.add(new RmiSearcherStub(host.last(), host.first(), policy, maxThreadsPerSearcher));
searcherIPs.add(host.first());
}
timeout = config.getLong("multiSearcher.timeout");
logger.info("init: timeout set to " + timeout + "ms (from config file).");
multiQueryExecutor = new MultiExecutor<GroupedSearchResults>(workerThreads, "multiSearcher");