[jboss-jira] [JBoss JIRA] (WFLY-9344) Let Infinispan manage eviction for distributed web sessions and @Stateful EJBs

Paul Ferraro (JIRA) issues at jboss.org
Thu Sep 14 07:56:01 EDT 2017


Paul Ferraro created WFLY-9344:
----------------------------------

             Summary: Let Infinispan manage eviction for distributed web sessions and @Stateful EJBs
                 Key: WFLY-9344
                 URL: https://issues.jboss.org/browse/WFLY-9344
             Project: WildFly
          Issue Type: Enhancement
          Components: Clustering
    Affects Versions: 11.0.0.CR1
            Reporter: Paul Ferraro
            Assignee: Paul Ferraro
             Fix For: 12.0.0.Alpha1


With Infinispan's transition to Caffeine to implement its data container, WF should finally be able to offload eviction to Infinispan, by configuring caffeine to use a specific Weigher that returns 0 for non-primary session entries, where max-active-sessions is configured as the maximumWeight.  From an Infinispan configuration perspective, this corresponds to a custom EntrySizeCalculator that returns 0 for non-primary session entries, and a maxSize equal to the max-active-sessions. The remaining entries would rely on cascading eviction (i.e. manually evicting from a via passivation callback).

As of Infinispan 9.1, the requisite DataContainer configuration attributes are deprecated - thus we need to lobby to expose the mechanisms for overriding the entry size calculator to be able to ensure this solution will be supported in the future.



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


More information about the jboss-jira mailing list