Re: [cas-dev] Ticket Cleanup

2009-10-23 Thread Shivani
Updating this thread: The performance testing with Apache Jmeter "VT CAS test for ticket registry cleaner testing" gave us comparable results - to those stated by Marvin. This could be attributed to the differences in the configuration of load testing (Eg: Ramp up time was 60 seconds in jmeter

Re: [cas-dev] Ticket Cleanup

2009-09-29 Thread Marvin Addison
> Can you share with me the hardware configuration ? ( Memory/threads  etc.) CAS is running on a resource-constrained Linux VServer that would correspond to moderate hardware in my opinion. > When you say "instantaneous"  - you mean to say that the response time - > that is time taken to view the

Re: [cas-dev] Ticket Cleanup

2009-09-29 Thread Shivani Chandna
Thanks, would check the indexes as well as run the Jmeter tests. Can you share with me the hardware configuration ? ( Memory/threads etc.) When you say "instantaneous" - you mean to say that the response time - that is time taken to view the "Successful Login page" is less than a second? Regar

Re: [cas-dev] Ticket Cleanup

2009-09-29 Thread Scott Battaglia
One thing to check is whether the appropriate indexes are on the tables or not. That could affect the time. Cheers, Scott On Tue, Sep 29, 2009 at 9:56 AM, Marvin Addison wrote: > > For 50 concurrent users the avg login time is around 2 to 3 seconds for > JPA > > We're seeing nothing like this.

Re: [cas-dev] Ticket Cleanup

2009-09-29 Thread Marvin Addison
> For 50 concurrent users the avg login time is around 2 to 3 seconds for JPA We're seeing nothing like this. Authentication is almost instantaneous from the user's perspective on our setup under moderate load. If you want a reasonable basis for comparison, configure the VT JMeter test attached

Re: [cas-dev] Ticket Cleanup

2009-09-29 Thread Shivani Chandna
Hi, We have used F5 for load balancing and have deployed cas 3.2.1 on jboss 4.2.3 instance. While measuring the login click for concurrent users using the hp load runner tool: we are seeing the following metrics: - For 50 concurrent users the avg login time is around 2 to 3 seconds for JPA a

Re: [cas-dev] Ticket Cleanup

2009-09-07 Thread Marvin Addison
> Could you please guide me as to what factors (pros/cons) are existing for > each of the ticket registry. (Memcache, JbossCache, JPATicketRegistry) . I think Scott outlined the 3 options above clearly and concisely. Use the one that best suits your needs your available infrastructure. We're goin

Re: [cas-dev] Ticket Cleanup

2009-09-06 Thread Scott Battaglia
Shivani, * I believe the JBossCache is one of the more difficult ones to configure and optimize. * JPA-based is best if you plan on storing tickets for the long term OR you already have a DB infrastructure in place for clustered DB. * Memcached requires memcache servers in pairs with the repcache

Re: [cas-dev] Ticket Cleanup

2009-09-05 Thread Shivani Chandna
Hello, We are using CAS 3.2.1 and are exploring the different ticket registry implementations that are available for clustering CAS. Could you please guide me as to what factors (pros/cons) are existing for each of the ticket registry. (Memcache, JbossCache, JPATicketRegistry) . Any performance met

Re: [cas-dev] Ticket Cleanup

2009-05-13 Thread Marvin Addison
David, thanks for taking the time to consider the patch. > If the ticket read, expire check, and delete are not in a single > transaction, couldn't the cleaner delete a ticket that had just been renewed > (if the expire check is based on most recent use)? No, not in a way that would be unexpected

Re: [cas-dev] Ticket Cleanup

2009-05-12 Thread J. David Beutel
Marvin Addison wrote: Regarding the performance issue, what if the transaction were limited to reading a single Ticket and deleting it if it's expired? I started leaning toward this sort of solution, but first I had to be able to reproduce the problem in my environment. I was able to do t

Re: [cas-dev] Ticket Cleanup

2009-05-11 Thread Marvin Addison
> Regarding the performance issue, what if the transaction were limited to > reading a single Ticket and deleting it if it's expired? I started leaning toward this sort of solution, but first I had to be able to reproduce the problem in my environment. I was able to do that and I created http://w

Re: [cas-dev] Ticket Cleanup

2009-04-30 Thread J. David Beutel
I like your CAS4 plan to make registries responsible for cleaning themselves. Regarding the performance issue, what if the transaction were limited to reading a single Ticket and deleting it if it's expired? It's OK to get the list of Ticket IDs outside of the transactions, since IDs that wer

Re: [cas-dev] Ticket Cleanup

2009-04-29 Thread Marvin Addison
> One of the things I've been working on with CAS4 is that Tickets, and the > items they depend on, have implementations specific to the backing store (so > that Authentication isn't lumped into a BLOB, for example). That sounds like a good change, and will be more flexible in the long run as tick

Re: [cas-dev] Ticket Cleanup

2009-04-29 Thread Scott Battaglia
One of the things I've been working on with CAS4 is that Tickets, and the items they depend on, have implementations specific to the backing store (so that Authentication isn't lumped into a BLOB, for example). Its actually a huge pain in the butt, and I'm not sure if its worth the effort (for one

Re: [cas-dev] Ticket Cleanup

2009-04-29 Thread Marvin Addison
> Update is only called when a ticket is acted upon (in a number of ways). I see, so I need the client to do something to trigger the update and mark the ticket expired, which is the problem I'm trying to solve. I missed that consequence in your first response. Time to consider other options. T

Re: [cas-dev] Ticket Cleanup

2009-04-29 Thread Scott Battaglia
Yes, and my point is that your recommendation for a Jpa specific implementation only addresses (as far as I can tell, and maybe I read it wrong) whatever is already covered the automatic cleanup in the CentralAuthenticationServiceImpl. Update is only called when a ticket is acted upon (in a number

Re: [cas-dev] Ticket Cleanup

2009-04-29 Thread Marvin Addison
> CentralAuthenticationServiceImpl [...] does what you want already > If a TGT or Service Ticket is loaded and its found to be > expired, its automatically removed. I understand that CAS cleans up expired tickets in cases where the client presents the expired ticket. The RegistryCleaner component

Re: [cas-dev] Ticket Cleanup

2009-04-29 Thread Scott Battaglia
Marvin, I think for the most part, this would not be necessary. If you look at the code for CentralAuthenticationServiceImpl, it essentially does what you want already (though there is one spot that doesn't, but its in a less used area). If a TGT or Service Ticket is loaded and its found to be e

[cas-dev] Ticket Cleanup

2009-04-28 Thread Marvin Addison
We did some load testing on our clustered dev CAS servers backed by JpaTicketRegistry to investigate the performance problems others have mentioned can be caused by DefaultTicketRegistryCleaner, http://www.nabble.com/DefaultTicketRegistryCleaner---spikes-under-DB-load-td20200644.html and http://ww