Scott, Thanks for the help, but we actually gave up on ehcache last week. We'd been fighting with it for over a month with no joy. We wound up going with memcached/Couchbase and we had it up and running in about two hours.
---------------------------------- Mark St. Laurent Web Systems Administrator Yavapai College (928) 717-7654 http://www.yc.edu<http://www.yc.edu/> From: Scott Massari [mailto:scott_3...@hotmail.com] Sent: Tuesday, September 17, 2013 1:34 PM To: cas-user@lists.jasig.org Subject: RE: [cas-user] EhCache High Availability Mark, Try the following values in your ticketRegistry.xml ... <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> <property name="configLocation" value="classpath:ehcache.xml" /> <property name="shared" value="true" /> <property name="cacheManagerName" value="ticketRegistryCacheManager" /> </bean> <bean id="ticketRegistryValue" class="org.jasig.cas.ticket.registry.EhCacheTicketRegistry" p:serviceTicketsCache-ref="serviceTicketsCache" p:ticketGrantingTicketsCache-ref="ticketGrantingTicketsCache" /> <bean id="abstractTicketCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean" abstract="true"> <property name="cacheManager" ref="cacheManager" /> <property name="diskExpiryThreadIntervalSeconds" value="0" /> <property name="diskPersistent" value="false" /> <property name="eternal" value="false" /> <property name="maxElementsInMemory" value="10000" /> <property name="maxElementsOnDisk" value="0" /> <property name="memoryStoreEvictionPolicy" value="LRU" /> <property name="overflowToDisk" value="false" /> <property name="bootstrapCacheLoader"> <ref local="ticketCacheBootstrapCacheLoader" /> </property> </bean> <bean id="serviceTicketsCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean" parent="abstractTicketCache"> <property name="cacheName" value="org.jasig.cas.ticket.ServiceTicket" /> <property name="cacheEventListeners"> <ref local="ticketRMISynchronousCacheReplicator" /> </property> <property name="timeToIdle" value="0" /> <property name="timeToLive" value="300" /> </bean> <bean id="ticketGrantingTicketsCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean"> <property name="cacheName" value="org.jasig.cas.ticket.TicketGrantingTicket" /> <property name="cacheEventListeners"> <ref local="ticketRMIAsynchronousCacheReplicator" /> </property> <property name="timeToIdle" value="7201" /> <property name="timeToLive" value="0" /> </bean> <bean id="ticketRMISynchronousCacheReplicator" class="net.sf.ehcache.distribution.RMISynchronousCacheReplicator"> <constructor-arg name="replicatePuts" value="true" /> <constructor-arg name="replicatePutsViaCopy" value="true" /> <constructor-arg name="replicateUpdates" value="true" /> <constructor-arg name="replicateUpdatesViaCopy" value="true" /> <constructor-arg name="replicateRemovals" value="true" /> </bean> <bean id="ticketRMIAsynchronousCacheReplicator" class="net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator" parent="ticketRMISynchronousCacheReplicator"> <constructor-arg name="replicationInterval" value="50" /> <constructor-arg name="maximumBatchSize" value="100" /> </bean> <bean id="ticketCacheBootstrapCacheLoader" class="net.sf.ehcache.distribution.RMIBootstrapCacheLoader"> <constructor-arg name="asynchronous" value="true" /> <constructor-arg name="maximumChunkSize" value="5000000" /> </bean> Also, what does your corresponding ehcahce(replicated).xml look like? > From: mark.stlaur...@yc.edu<mailto:mark.stlaur...@yc.edu> > To: cas-user@lists.jasig.org<mailto:cas-user@lists.jasig.org> > Subject: RE: [cas-user] EhCache High Availability > Date: Wed, 11 Sep 2013 21:29:17 +0000 > > If both nodes are up, it works fine, I can see in the CAS logs where they are > validating each other's tickets. I actually have the firewalls turned > completely off just to make sure they're not interfering. > > ---------------------------------- > Mark St. Laurent > Web Systems Administrator > Yavapai College > (928) 717-7654 > http://www.yc.edu > > > -----Original Message----- > From: Tom Poage [mailto:tfpo...@ucdavis.edu] > Sent: Wednesday, September 11, 2013 2:06 PM > To: cas-user@lists.jasig.org<mailto:cas-user@lists.jasig.org> > Subject: Re: [cas-user] EhCache High Availability > > On 09/11/2013 01:36 PM, St Laurent, Mark wrote: > > It still is not working. In fact, I've discovered that if I shut down one > > of the nodes I can't even log in to a CASified app under a completely new > > session. If one node is down, the entire CAS cluster is down. It is > > apparently expiring the service tickets within milliseconds after they are > > granted, and I don't know why. Here is a log entry: > > This sounds like a fundamental problem. Firewall disallowing replication > from/to peers? Fire up Wireshark to look for replication traffic between > nodes? > > Tom. > > > -- > You are currently subscribed to > cas-user@lists.jasig.org<mailto:cas-user@lists.jasig.org> as: > mark.stlaur...@yc.edu<mailto:mark.stlaur...@yc.edu> To unsubscribe, change > settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- > You are currently subscribed to > cas-user@lists.jasig.org<mailto:cas-user@lists.jasig.org> as: > scott_3...@hotmail.com<mailto:scott_3...@hotmail.com> > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > -- You are currently subscribed to cas-user@lists.jasig.org<mailto:cas-user@lists.jasig.org> as: mark.stlaur...@yc.edu<mailto:mark.stlaur...@yc.edu> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user