Wow, this sounds interesting.  I never looked at JMX with multiple cores Solr 
instances.
I wonder if this calls for a new JIRA issue....

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Hadoop ecosystem search :: http://search-hadoop.com/



----- Original Message ----
> From: Constantijn Visinescu <baeli...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Tue, March 23, 2010 8:42:30 AM
> Subject: Re: Configuring multiple SOLR apps to play nice with MBeans / JMX
> 
> Hi,

Multicore lets me have me have multiple cores in a single 
> instance.

However since i have 3 different webapps with embedded solr 
> that means i
have 3 different instances of solr.
(and they're all trying 
> to park their JMX MBeans under the same name, 
> namely
solr)

Constantijn


On Tue, Mar 23, 2010 at 11:44 AM, 
> Charl Mert <
> href="mailto:ch...@knowledgetree.com";>ch...@knowledgetree.com>wrote:

> 
> Hi Constantijn,
>
> I'm not too sure about the JMX monitoring side 
> of things but having looked
> at the Solr's MultiCore <
> href="http://wiki.apache.org/solr/CoreAdmin"; target=_blank 
> >http://wiki.apache.org/solr/CoreAdmin>
> feature it seems really 
> simple to create multiple solr cores that could all
> be configured to 
> point
> to one MBean server.
>
> When creating a core you can 
> specify name like solr1, solr2:
>
> 
> href="http://localhost:8983/solr/admin/cores?action=CREATE&name=solr_01&instanceDir=/etc/solr/multicore/core2&config=solrconfig.xml&schema=schema.xml&dataDir=data";
>  
> target=_blank 
> >http://localhost:8983/solr/admin/cores?action=CREATE&name=solr_01&instanceDir=/etc/solr/multicore/core2&config=solrconfig.xml&schema=schema.xml&dataDir=data
>
> 
> This is made possible due to the fact that each core can have it's own
> 
> solrconfig.xml
> See example/multicore/ in your solr 
> distribution.
>
> Hope this helps.
>
> Regards
> 
> Charl Mert
>
>
>
> On Tue, Mar 23, 2010 at 12:10 PM, 
> Constantijn Visinescu
> <
> href="mailto:baeli...@gmail.com";>baeli...@gmail.com>wrote:
>
> 
> > Hi,
> >
> > I'm having a problem trying to get multiple 
> solr applications to run in
> the
> > same servlet container 
> because they all try to claim "solr" as a
> > name/category to put 
> their mbeans under and that causes
> exceptions/crashes
> > for 
> all the applications after the first.
> >
> > I've read 
> href="http://wiki.apache.org/solr/SolrJmx"; target=_blank 
> >http://wiki.apache.org/solr/SolrJmx and it shows configuration
> > 
> options to define a JMX server agentID or to provide your own JMX url 
> but
> i
> > don't want either. (i think)
> >
> 
> > I just want my webapps to show as "solr1", "solr2" and "solr3" when
> 
> > monitoring them rather then all of them trying to race for "solr" 
> and
> > having
> > all of them after the first crash.
> 
> >
> > Right now I've disabled JMX and that works to get my apps 
> started at
> least,
> > but it's not what i want either.
> 
> >
> > Anyone know how to configure solr to do this?
> > If 
> a configuration option like <jmx name="solr1" /> exists that'd fix 
> my
> > problem but i can't seem to find it in the 
> documentation.
> >
> > Thanks in advance,
> > 
> Constantijn Visinescu
> >
>

Reply via email to