Hi Shawn this code is für the solrj lib which we already use. I'm talking about solr s internal communication from leader to replica via the DistributedCmdUpdate class. I want to force the leader to time out after a fixed period instead of waiting for 15 minutes für the server to figure out the other end of the socket was closed. I don't know of any flags or settings in the solrconfig.xml to do this or if it's even possible with out modifying source code.
Jed Von Samsung Mobile gesendet -------- Ursprüngliche Nachricht -------- Von: Shawn Heisey <s...@elyograg.org> Datum: 07.10.2013 17:35 (GMT+01:00) An: solr-user@lucene.apache.org Betreff: Re: Solr Hangs During Updates for over 10 minutes 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