Skip to content

Questions about the usage of the Simulator to get best size #1763

Answered by ben-manes
adriacabeza asked this question in Q&A
Discussion options

You must be logged in to vote

The simulator includes caching products as well, as you probably noticed, so you can generate a chart like below. Since the hit rate is so high and the maximum size is small, I'd guess that in production you have expiration causing it to evict more aggressively? Unfortunately that is not currently supported by the simulator. It might be faster to just run your own script to calculate with, using FakeTicker to adjust the logical time based on the event's timestamp.

To add expiration to the simulator wouldn't be hard, just time consuming:

  1. Make it the responsibility of the PolicyActor to track and delete, rather than each algorithm.
  2. Add a removal method to Policy, a timestamp to the AccessE…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ben-manes
Comment options

@ben-manes
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants