logstash-plugins/logstash-filter-geoip

Cache has no eviction policy - when it fills up, it never changes

prehor opened this issue · 2 comments

It seems that geoip plugin has inconsistent cache size option:

This seems to have come to pass because the cache is no longer an LRU cache for GeoIP2. So cache_size in lieu of lru_cache_size is probably correct and the documentation is incorrect. But there's also still an underlying problem of how to evict entries.

I've opened an issue with MaxMind to see if it's possible to implement an eviction policy in their default cache.

The question which cache size argument we should use was resolved by @jsvd in #149.

We still have to solve the cache eviction, so I changed the subject of this issue.