On 9/17/2014 8:07 PM, Shawn Heisey wrote: > I've got haproxy in front of my solr servers. My checks happen every > five seconds, with a 4990 millisecond timeout. My ping handler query > (defined in solrconfig.xml) is "q=*:*&rows=1" ... so it's very simple > and fast. Because of efficiencies in the *:* query and caching, I doubt > this is putting much of a load on Solr. It would probably be acceptable > to do the health checks once a second, although with typical Solr > logging configs you'd end up with a LOT of log data. If you configure > logging at the WARN level, this would not be a worry.
At the URL below, you can see a trimmed version of my haproxy config. I've got more than I show here, but this is the part that handles my main Solr index: http://apaste.info/0vk The ncmain core is a core that has no index, with the shards parameter built into the config, so the application has no idea that it's talking to a sharded index that actually lives on two separate servers. Thanks, Shawn