samaritan icon indicating copy to clipboard operation
samaritan copied to clipboard

redis: truncate the hotkey name in case of a large memory footprint

Open kirk91 opened this issue 5 years ago • 0 comments

To avoid a large memory footprint, we should truncate the hotkey name. According to experience, 100 bytes should be enough.

More details see:

image

https://github.com/samaritan-proxy/samaritan/blob/master/proc/redis/filter_hotkey.go#L48

kirk91 avatar Jan 13 '20 09:01 kirk91