On 12/10/2014 8:51 AM, yriveiro wrote:
How I can raise this two variables: maxUpdateConnections,
maxUpdateConnectionsPerHost in Solr 4.6.1 with the old solr.xml style?
One way to handle this is the shardHandlerFactory setting in
solrconfig.xml. I think you'd need it on the /update handler and any
other handlers you want to modify. I don't think I'd do it this way ...
solr.xml lets you set these values globally.
http://wiki.apache.org/solr/SolrConfigXml#Configuration_of_Shard_Handlers_for_Distributed_searches
Looking at the code for handling the old style solr.xml, it looks like
you can set these as parameters on the <cores> tag, which is inside the
<solr> tag. Here's the code:
storeConfigPropertyAsInt(CfgProp.SOLR_MAXUPDATECONNECTIONS,
"solr/cores/@maxUpdateConnections");
storeConfigPropertyAsInt(CfgProp.SOLR_MAXUPDATECONNECTIONSPERHOST,
"solr/cores/@maxUpdateConnectionsPerHost");
Code in another place sets the default values if these are not present,
which are 10000 for maxUpdateConnections and 00 for
maxUpdateConnectionsPerHost.
public int getMaxUpdateConnections() {
return get(CfgProp.SOLR_MAXUPDATECONNECTIONS, 10000);
}
public int getMaxUpdateConnectionsPerHost() {
return get(CfgProp.SOLR_MAXUPDATECONNECTIONSPERHOST, 100);
}
Thanks,
Shawn