CAS 4.2.7 throttling

86 views
Skip to first unread message

Armando Martins

unread,
Feb 10, 2017, 8:10:04 AM2/10/17
to cas-...@apereo.org
Hi,

I'm trying to configure Throttling on my cas server but it seems that doesn't work.

Here is my configuration :
cas.properties :
cas.throttle.failure.threshold=1
cas.throttle.failure.range.seconds=3

deployerConfigContext.xml
<alias name="inMemoryIpAddressThrottle" alias="authenticationThrottle" />

In my cas.log (debug mode) i see some strange things :
2017-02-10 13:56:47,633 DEBUG [org.jasig.cas.util.CasSpringBeanJobFactory] - Created job org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter@33897e39[failureThreshold=1,failureRangeInSeconds=3,usernameParameter=username,thresholdRate=0.0] for bundle org.quartz.spi.TriggerFiredBundle@6b45e54d
2017-02-10 13:56:52,633 DEBUG [org.jasig.cas.util.CasSpringBeanJobFactory] - Created job org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapter@5dd3cc15[failureThreshold=100,failureRangeInSeconds=60,usernameParameter=username,thresholdRate=0.0] for bundle org.quartz.spi.TriggerFiredBundle@8f812fc

I don't understand why my values for failureThreshold and failureRangeInSeconds are changed 100 and 60

Thanks for your help.

--
Armando Martins

Ray Bon

unread,
Feb 10, 2017, 12:49:30 PM2/10/17
to cas-...@apereo.org
Armando,

It looks like there are two different jobs being created. Is it possible that two beans are being defined (search in the deployed files)?

Ray
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAPs8K2p8fyT323du2gNm3ZGKL8M0%2BttvS3%3DJCRkVJmLVeBqwiQ%40mail.gmail.com.

-- 
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE C023 | rb...@uvic.ca

Armando Martins

unread,
Feb 13, 2017, 2:07:43 AM2/13/17
to cas-...@apereo.org
Hi Ray,

Thanks for your answer.

That's what i tough too, but i've made some greps in the deployed files, searching for the values "failure.threshold" or "failureThreshold", and i found nothing.

I've see in the Class AbstractThrottledSubmissionHandlerInterceptorAdapter (https://apereo.github.io/cas/4.2.x/javadocs/org/jasig/cas/web/support/AbstractThrottledSubmissionHandlerInterceptorAdapter.html) that 100 and 60 are the default values if the config is not set. So i tough this is a configuration problem or a bug somewhere.

I don't really understand because i strictly followed the Throttling documentation.

I keep looking...


To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

-- 
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE C023 | rb...@uvic.ca

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/f9fa1dd1-e1c7-8397-3af9-7516a6c7509f%40uvic.ca.



--
Armando Martins
Reply all
Reply to author
Forward
0 new messages