alibaba/sentinel-golang

Hotspot: enhance the LRU cache victim mechanism in hotspot module

Open

#254 opened on Sep 27, 2020

 (3 comments) (2 reactions) (0 assignees)Go (453 forks)github user discovery
area/flow-controlgood first issuekind/discussionkind/enhancement

Repository metrics

Stars
 (2,957 stars)
PR merge metrics
 (PR metrics pending)

Description

Issue Description

Currently, hotspot module use LRU cache to store and victim the frequency parameters. The LRU victim mechanism is okay but in some extreme scenario might work not well, such as: iteration, cold data can push out hot data

We might optimize the cache mechanism, such as java cache framework: caffeine: Type: feature request

Describe what feature you want

Additional context

Add any other context or screenshots about the feature request here.

Contributor guide