samaritan
samaritan copied to clipboard
redis: truncate the hotkey name in case of a large memory footprint
To avoid a large memory footprint, we should truncate the hotkey name. According to experience, 100 bytes should be enough.
More details see:
https://github.com/samaritan-proxy/samaritan/blob/master/proc/redis/filter_hotkey.go#L48