You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2007/09/10 19:42:30 UTC
[jira] Updated: (SOLR-350) Manage Multiple SolrCores
[ https://issues.apache.org/jira/browse/SOLR-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley updated SOLR-350:
-------------------------------
Attachment: SOLR-350-MultiCore.patch
Here is a quick sketch of what I think the multicore management/interface should look like.
Essentially, it works like this:
A. If you do nothing, solr keeps working as it is - it has a little extra checking at startup and each requests only makes an extra if( singlecore != null ) call
B. If you put a "multicore.xml" file in the startup instanceDir, a multicore registry will be initialized. Each call to the SolrDispatchFilter will select the core (from a synchronized map). Using the default core does not require a synchronized map lookup.
In the attached patch, you select the core from the path:
http://host:port/context/handlerpath -- uses default core
http://host:port/context/@core0/handlerpath -- uses core0
http://host:port/context/@core1/handlerpath -- uses core1
This assumes handler names will not start with '@' (perhaps we should make it a requirement that handler names don't start with any punctuation? this would leave open special characters in the future?)
This still needs a servlet or request handler to manage core manipulation (load, restart, etc). Since it handles functions across handlers, it should probably be a servlet, but that makes it difficult to use the wt=json/xml stuff.
NOTE -- the core management stuff is untested, I'm attaching it now because I don't have much time to work on it and hopefully someone else can carry on.
Parts of this patch clean up things from SOLR-215. Unless there is much movement on this issue, I'd like to commit that part in a few days.
> Manage Multiple SolrCores
> -------------------------
>
> Key: SOLR-350
> URL: https://issues.apache.org/jira/browse/SOLR-350
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 1.3
> Reporter: Ryan McKinley
> Attachments: SOLR-350-MultiCore.patch
>
>
> In SOLR-215, we enabled support for more then one SolrCore - but there is no way to use them yet.
> We need to make some interface to manage, register, modify avaliable SolrCores
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.