On 7/10/2013 6:57 AM, Jed Glazner wrote:
So we'll do what we can quickly to see if we can 'band-aid' the problem
until we can upgrade to solr 4.4  Speaking of band-aids - does anyone know
of a way to change the socket timeout/connection timeout for distributed
updates?

If you need to change HttpClient parameters for CloudSolrServer, here's how you can do it:

String zkHost = "zk1.REDACTED.com:2181,zk2.REDACTED.com:2181,zk3.REDACTED.com:2181/chroot";
ModifiableSolrParams params = new ModifiableSolrParams();
params.set(HttpClientUtil.PROP_MAX_CONNECTIONS, 1000);
params.set(HttpClientUtil.PROP_MAX_CONNECTIONS_PER_HOST, 200);
params.set(HttpClientUtil.PROP_SO_TIMEOUT, 300000);
params.set(HttpClientUtil.PROP_CONNECTION_TIMEOUT, 5000);
HttpClient client = HttpClientUtil.createClient(params);
ResponseParser parser = new BinaryResponseParser();
LBHttpSolrServer lbServer = new LBHttpSolrServer(client, parser);
CloudSolrServer server = new CloudSolrServer(zkHost, lbServer);

Thanks,
Shawn

Reply via email to