jeffkbkim commented on PR #17700:
URL: https://github.com/apache/kafka/pull/17700#issuecomment-2590586011

   > Yes, when eviction is performed, it's a one-for-one swap with the incoming 
consumer. However, eviction is occurring at a much frequency due to the 
volatility of the partition counts in the cache. If the partition counts for 
all consumers remained constant, the eviction logic would resemble something 
more like LRU.
   
   that is correct, and followers have higher privilege. Stale sessions are 
defined to be session that have stayed in the cache for at least 2 minutes. We 
will still try to evict the LRU non-stale session if incoming request has 
higher privilege and/or partition count.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to