Hi, Thanks for raising the point.
It's always hard to find a good balance between a generic design and performance. It seems to me that performing scans to get a ticket is not the best thing to do in terms of performance. The Redis ticket registry is commonly used and we should try to avoid any performance degradation. I have a few ideas in mind, but I'm not a Redis specialist: what do you propose? Thanks. Best regards, Jérôme Le jeu. 27 oct. 2022 à 19:59, Pascal Rigaux <[email protected]> a écrit : > Hi, > > In 6.6.x Redis ticket registry key is suffixed with userid (since > 6.6.0-RC4) > > This is great to know who owns a TGT or a ST. > > Alas, this means getting a TGT from Redis now requires a "SCAN"... which > is much more costly. > Example: full "SCAN" is ~100 times slower then "GET" on our production > Redis (dbsize ~100k, because we have 1 month rememberMe TGT) > > > For the record, getting a ST triggers > - on 5.3 : 8 redis "GET" on the TGT > - on 6.5 : 17 redis "GET" on the TGT > - on 6.6 : 15 redis "SCAN" + "GET" on the TGT on a small redis db > > > > PS: "cas.ticket.registry.core.enable-locking=false" fails on redis ticket > registry with error > > Could not find a destroy method named 'destroy' on bean with name > 'casTicketRegistryRedisLockRegistry' > > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/ca6a06e7-88cd-8f5f-1f26-232238eb6d5b%40univ-paris1.fr > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAP279LyO9iRxfsesjEpxO%2BwWY9A7rCz9bW%2BMnpNAWZhCuMnPPA%40mail.gmail.com.
