I have an other application to write base64 and gzip string into redis, the number of redis data about 6000 keys, i use lua script to read these data From Redis Into ShardDict, when this refresh, one or more nginx process the CPU usage to 100%, the time about 1minute. i use lua-resty-redis last version.
Here is some FlameGraph: