Thanks, Shawn and Daniel for your feedback. We will consider that and see what 
fits best into our environment. 

Regards
Andreas




>>> "Davis, Daniel (NIH/NLM) [C]" <daniel.da...@nih.gov> 05.07.16 19.36 Uhr >>>
Because access to Solr is typically to an API, rather than to webapps having 
images and static files that can be served directly, I think you can use 
mod_proxy_http just as well as mod_jk.   I would suggest you not pursue trying 
to get AJP to work.

mod_proxy_balancer will work with mod_proxy_http, but you may also want to 
consider using varnish as a front-end cache rather than Apache httpd.   I’m not 
sure about that architecture myself, because varnish’s strength is in caching 
the data from the backend systems, and Solr’s data should primarily not be 
cached.   However, varnish is very commonly used for this sort of thing – and 
if you also have other things behind the balancer (such as WordPress or 
Drupal), then varnish is becoming a better a way to go.

Hope this helps,

Dan Davis, Systems/Applications Architect (Contractor),
Office of Computer and Communications Systems,
National Library of Medicine, NIH



From: Andreas Kahl [mailto:k...@bsb-muenchen.de]
Sent: Monday, July 04, 2016 5:54 AM
To: solr-user@lucene.apache.org
Subject: Access Solr via Apache's mod_proxy_balancer or mod_jk (AJP)

Hello everyone,

we've setup two Solr servers (not SolrCloud) which shall be accessed via Apache 
webserver's load balancing (either mod_proxy_balancer or mod_jk).

1. Is it possible to configure Solr >5 to enable an AJP port as this was the 
case in earlier versions when running in Tomcat?

2. If AJP/mod_jk is not possible, how should I set up mod_proxy_balancer? At 
the moment I run into the error "All workers are in error state". This is my 
current Apache config:
<Proxy balancer://solrCluster>
                BalancerMember http://server1:8888
                BalancerMember http://server2:8888
</Proxy>
ProxyPass /solrCluster balancer://solrCluster/solr
ProxyPassReverse /solrCluster balancer://solrCluster/solr

Accessing a single server with a non balanced ReverseProxy works perfectly, but 
somehow mod_proxy_balancer's health checks do get negative responses from Solr. 
Any ideas what's going wrong? (I already tried putting /solr into the 
BalancerMembers to avoid the redirect from / to /solr)

Thanks
Andreas


Reply via email to