Thanks for the info Mark, and yes you can point coldfusion to a seperate solr instance.
Charlie, when the initial install was done, it was a multiserver deployment. Yes it goes in the directory you mention below, in the default cfusion instance in: /opt/jrun4/servers/cfusion/.. The Solr part is installed at: /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/solr/ and there is a start script that gets put in init.d/ to start / stop / restart solr. Yes solr was installed in the initial deployment and we have been using it without a problem in that instance. When the second instance creation was done, we just ran the create new instance from the CFIDE administrator, and then did the custom apache config edits as listed in the cf9 documentation. It creates the second instance here: /opt/jrun4/servers/uat/ I looked in the corresponding folder as the default install, and there is no solr/ folder in /opt/jrun4/servers/uat/cfusion.ear/cfusion.war/WEB-INF/cfusion/ We are not sure what one is 'supposed' to do here, normally I guess you would have your second instance just point to the solr server running from the default install instance, but in our case this is no good because we need to use the same collection names for the second instance. I had a go at running multiple webapps with Jetty (what Solr in cf runs on) - where you edit the [CF]/solr/etc/jetty.xml config file as shown here: http://wiki.apache.org/solr/SolrJetty but none of that worked, Solr would always fail to start with errors, normally about how it couldn't find the methods or classes specified. Solr under coldfusion runs the collections out of a [CF]/solr/multicore The only options I've come up with are; 1. copy the solr folder from the cfusion instance, to our uat instance, and update the jetty config accordingly, add a new solr start file in init.d and update the new coldfusion instance to point to that solr server. 2. run the installer for the standalone solr server (which adobe provide mainly for running solr on a different server), then point the new coldfusion instance to that - essentially what Mark pointed out in his post. Barry On Wed, Apr 6, 2011 at 4:13 AM, charlie arehart <[email protected]>wrote: > Barry, this is indeed interesting. I've read the other replies so far, and > I > have some other thoughts. > > I've not tried to install solr on a server where I installed CF in > multiserver mode, but looking at the install guide, it's a little unclear. > It says in the discussion of J2EE deployment (which is different from > multiserver) that "there can be only one solr instance per server". It > doesn't really seem to speak to multiserver deployment. > > But it does say (as Mark did) that at least in that J2EE setup, the > solution > is for it to be in one place and for the solr home in each CF admin to be > configured to point to that place. > > I'm curious: do I assume you did tell it to install Solr during the CF 9 > Multiserver installation, right? I'm curious: where did the solr files end > up? In a Standard/Server deployment, they are in a [cf]\solr directory. In > a > multiserver deployment, was this created within the cfusion instance (such > as a C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\solr > directory), or perhaps even also in each new isntance (such as in > C:\JRun4\servers\instance2\cfusion.ear\cfusion.war\WEB-INF\cfusion\solr)? > Or > is it put in some directory outside of jrun entirely? > > If it was created each instance, then I wonder if it may be possible for > you > to manually manipulate the solr/jetty config files to simply specify > different ports so that they can run on their own. It seems reasonable. But > I wouldn't be surprised if the CF team opted to make the default behavior > be > simplest: a single deployment. > > Hope that helps. Let us know what you find. > > /charlie > > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] On > > Behalf Of BarryC > > Sent: Monday, April 04, 2011 5:25 PM > > To: cfaussie > > Subject: [cfaussie] using Solr in a multi instance configuration > > > > Hi, > > > > Has anyone used, or does anyone know how to get Solr going properly in > > a multi instance configuration? > > > > We have two instances on a single server installed; > > cfusion > > uat > > > > the solr directory sits buried inside the cfusion instance directory, > > but the uat instance does not have a solr directory. It seems by > > default that the idea is to have the new instance point at the solr > > server running out of the original instance 'cfusion' > > We want the uat instance to have seperate solr search collections but > > using the same collection names as the ones in cfusion, which means we > > need to have a seperate solr store somehow. > > > > I've had a look at running 'multiple solr webapps' from a single solr > > server, but the documentation on this is very poor and I have not been > > able to successfully get this working. > > > > Do we need to duplicate the solr directory into the new instance, and > > run a seperate solr server start script with solr running on a > > different port or something? > > > > Thanks > > Barry > > > > -- > > You received this message because you are subscribed to the Google > > Groups "cfaussie" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/cfaussie?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
