[jboss-jira] [JBoss JIRA] (WFLY-8924) Cache configuration services should start on-demand

Kabir Khan (JIRA) issues at jboss.org
Mon Jun 12 11:46:00 EDT 2017


Kabir Khan created WFLY-8924:
--------------------------------

             Summary: Cache configuration services should start on-demand
                 Key: WFLY-8924
                 URL: https://issues.jboss.org/browse/WFLY-8924
             Project: WildFly
          Issue Type: Bug
          Components: Clustering
    Affects Versions: 11.0.0.Alpha1
            Reporter: Paul Ferraro
            Assignee: Paul Ferraro


Most infinispan services are configured to start passively, for a couple reasons:
1. Infinispan requires its cache container to start when the associated JGroups channel is started.
2. Cache configurations should be installed when the cache container starts, so that calls to EmbeddedCacheManager.getCache(...) use the correct configuration.

There's not much we can do about #1, except maybe to allow non-clustered cache containers (i.e. those without a transport) to start on-demand, instead of passively.  This is a little tricky currently, since the transport is a separate resource from the cache container, and is typically installed afterwards.
#2 isn't needed anymore, since applications can depend on a specific cache configuration via jndi resource references.

Therefore, cache configuration services (and the individual configuration components services) should start as on-demand.  Additionally, many of these services reference a full ConfigurationBuilder object, which is pretty hefty, for the entire lifetime of the service (regardless of state).  These can be optimized to create the requisite builders only when the corresponding service is started.  This should help reduce WF's startup memory footprint, as cache configurations do not need to be installed on startup.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list