[ 
https://issues.apache.org/jira/browse/SOLR-16615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17679879#comment-17679879
 ] 

ASF subversion and git services commented on SOLR-16615:
--------------------------------------------------------

Commit c21719ee2245bceebe124e3d39def9deabd2430c in solr's branch 
refs/heads/main from Jason Gerlowski
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=c21719ee224 ]

SOLR-16615: Reuse Jersey apps for cores with the same configset (#1286)

Prior to this commit our Jersey integration involved creating an 
'ApplicationHandler'
class for each SolrCore. These classes are expensive and their creation can 
have a
noticeable cumulative effect at startup time on nodes hosting many many cores.
 
This PR addresses this problem by allowing ApplicationHandler's to be shared 
across
multiple SolrCores, as long as each of those cores use the same configset. To 
do this
we introduce JerseyAppHandlerCache, which takes over ownership of all core-level
ApplicationHandler's. AH's are ref-counted so that they can be removed from the 
cache
and closed when no longer needed by any SolrCores.

> Colocated cores with the same configset should share resources
> --------------------------------------------------------------
>
>                 Key: SOLR-16615
>                 URL: https://issues.apache.org/jira/browse/SOLR-16615
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Jason Gerlowski
>            Priority: Minor
>              Labels: API, performance
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Currently, each core parses solrconfig.xml and instantiates its own copy of 
> various plugins (v2 'Api' instances, RequestHandlers, etc.) or plugin-related 
> objects (e.g. Jersey "ApplicationHandlers").
> Usually this is fine, but when many cores on a Solr node share the same 
> configset, this duplication can become wasteful and have considerable impacts 
> on node startup and core reload time.
> We should investigate whether some of these solrconfig.xml-driven entities 
> can be shared by cores with the same configset that live in the same JVM. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to