Skip to content

gmplazma: excessive caching of failed login attempts leads to system …#7824

Closed
mksahakyan wants to merge 3 commits into11.0from
fix/11.0/fixTicket10723/memOverload
Closed

gmplazma: excessive caching of failed login attempts leads to system …#7824
mksahakyan wants to merge 3 commits into11.0from
fix/11.0/fixTicket10723/memOverload

Conversation

@mksahakyan
Copy link
Contributor

…overload.

In the ticket 10723 was discovered that dCache caching a response for
a rejected authentication attempt, based on the identity.
(in case of chained certificates) might create 100k "cached" failed login entries in dCache.

This can lead to overeading to an overload and triggering java garbage collectors
running at 100 % CPU and large memory consumption.

Motivation
dCache Overload from Failed Logins via Chained Proxies.

Modification

Replace CopyOnWriteArraySet with Guava cache.

Result

FailedLogins will now be keeping only the last specfied number of logs by gplazma.authz.max-cache-size= 10000 property.

Acked-by: Tigra Mkrtchyan
Target: master. 11.0, 10.2, 10.1, 10.0, 9.2
Require-book: no
Require-notes: yes
Patch: https://rb.dcache.org/r/14444/

…overload.

In the  ticket 10723 was discovered that  dCache caching a response for
    a rejected authentication attempt, based on the identity.
   (in case of chained certificates) might create 100k "cached" failed login entries in dCache.

This can  lead to overeading to an overload and triggering java garbage collectors
    running at 100 % CPU and large memory consumption.

Motivation
dCache Overload from Failed Logins via Chained Proxies.

Modification

Replace CopyOnWriteArraySet with Guava cache.

Result

FailedLogins will now be  keeping only the last specfied number of logs by  `gplazma.authz.max-cache-size= 10000` property.

Acked-by: Tigra Mkrtchyan
Target: master. 11.0, 10.2, 10.1, 10.0, 9.2
Require-book: no
Require-notes: yes
Patch: https://rb.dcache.org/r/14444/
Motivation

stic field for the KnownFailedLogins
(cherry picked from commit f5f9278)
Signed-off-by: sahakya <marina.sahakyan@desy.de>
@kofemann kofemann closed this Jun 27, 2025
@kofemann kofemann deleted the fix/11.0/fixTicket10723/memOverload branch June 27, 2025 13:35
@mksahakyan mksahakyan restored the fix/11.0/fixTicket10723/memOverload branch June 27, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants