netobserv / flowlogs-pipeline

Transform flow logs into metrics
Apache License 2.0
69 stars 21 forks source link

Add common LRU cache for: conn_track, encode_prom, and extract_aggregate #181

Closed eranra closed 2 years ago

eranra commented 2 years ago

FROM @ronensc ::

https://github.com/netobserv/flowlogs-pipeline/pull/178/files#r848397353

eranra commented 2 years ago

This code should include the handling of periodic expiration of objects in the cache (based on time) and as needed move from UNIX time compare like here https://github.com/netobserv/flowlogs-pipeline/pull/178/files#diff-f4f9bcd851cdd6998e8bb516261e134742bae85f8a70e7f59f8ed9cfcada1612R234 into using Time objects