In our environment, we use a mirrored pair of dspace tomcat servers behind an ipvs cluster server for redundancy and throughput. The two servers share the same general settings, assetstores, and postgres database. All works well, except that of course the user search statistics are gathered for each dspace server separately. Thus, we're stuck with two sets of search statistics, where ideally we'd like to have one aggregate set of search statistics. Has anybody been able to configure a mirrored pair of dspace tomcat servers to share a single solr search statistics database?
I've managed to get one dspace solr server (I'll call it server1) configured so that it will accept solr http connections from the other server (which I'll call server2.) But I haven't been able to get dspace on server2 to send it's solr http client data to server1. I got server1 configured to accept solr data from server2 by editing server.xml as per https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Tomcat-specificinstructions: <Context path="/solr" reloadable="true"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="<ip address of server2>, 127.0.0.1"/> <Parameter name="LocalHostRestrictionFilter.localhost" value="false" override="false" /> </Context> So now from server2 I can do: wget -O - 'http://server1:8080/solr/search/select?q=search.resourcetype:2&sort=dc.date.accessioned_dt%20desc&rows=1&fl=dc.date.accessioned&omitHeader=true' and get back solr search data. But how to get dspace on server2 to send its solr client search statistics to server1? I tried setting the "server" property in modules/solr-statistics.cfg on server2 to "server=http://server1/solr/statistics". That didn't work -- from "netstat -an" on server2 I could see connections from 127.0.0.1:<some port> to 127.0.0.1:8080 when I did searches, so clearly dspace on server2 was ignoring my "server" setting. (And why not, since the ip address for server1 was not bound here!) Does anybody know of a way to share a single dspace solr server between a mirrored pair of dspace servers, or perhaps just how to get one dspace server to send it's solr search data to another solr server? Thanks in advance for any advice. --Mike ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette