lordcheng10 opened a new pull request #14985:
URL: https://github.com/apache/pulsar/pull/14985


   ### Motivation
   We found a problem: even if we adjusted the cache eviction size and time a 
lot, there would still be some misscaches when the client restarted.
   
   The current cache eviction strategy is to evict according to the read 
position, so there may be a miss cache when the data is pushed again.
   
   In our scenario, there are tens of thousands of clients, and they are 
deployed on k8s. In order to save resources, they may dynamically expand or 
shrink, so that data re-pushing will happen from time to time.
   
   
   
   
   ### Modifications
   Therefore, to improve the cache hit rate , I think a new cache eviction 
strategy should be added: evict data according to the markdelete position.
   
   ### Documentation
   
   Check the box below or label this PR directly (if you have committer 
privilege).
   
   Need to update docs? 
   
   - [ ] `doc-required` 
     
     (If you need help on updating docs, create a doc issue)
     
   - [x] `no-need-doc` 
     
     (Please explain why)
     
   - [ ] `doc` 
     
     (If this PR contains doc changes)
   
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to