[
https://issues.apache.org/jira/browse/SOLR-13579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17046564#comment-17046564
]
Andrzej Bialecki commented on SOLR-13579:
-----------------------------------------
[~dsmiley] this is a bit unusual case because this is just a single instance of
the component to control - normally the framework manages multiple components
that compete for a limited pool of resources. Still, it should be possible to
use it, just to benefit from soft optimization implemented in
{{CacheManagerPool}}. This cache would then use its own pre-defined pool,
similarly to those that are defined for searcher caches (in
{{DefaultResourceManager}}).
Not sure if it's worth the trouble for a single instance, though -
{{TransientSolrCoreCache}} would have to implement {{ManagedComponent}} and
either use the "cache" type interface (but then it would have to implement
{{SolrCache}} in order to be managed by {{CacheManagerPlugin}}) or it would
have to define its own special type and then implement a specialized subclass
of {{ResourceManagerPool}}. So it's probably not worth it just to manage a
single instance.
In principle it doesn't really matter at what level a particular component is,
which you want to control - as long as there's a mechanism to control it, and
if it makes sense to control the total resource usage globally ie. at a
{{CoreContainer}} level.
> Create resource management API
> ------------------------------
>
> Key: SOLR-13579
> URL: https://issues.apache.org/jira/browse/SOLR-13579
> Project: Solr
> Issue Type: New Feature
> Reporter: Andrzej Bialecki
> Assignee: Andrzej Bialecki
> Priority: Major
> Attachments: SOLR-13579.patch, SOLR-13579.patch, SOLR-13579.patch,
> SOLR-13579.patch, SOLR-13579.patch, SOLR-13579.patch, SOLR-13579.patch,
> SOLR-13579.patch, SOLR-13579.patch, SOLR-13579.patch
>
> Time Spent: 3h 10m
> Remaining Estimate: 0h
>
> Resource management framework API supporting the goals outlined in SOLR-13578.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]