Skip to content

Instantly share code, notes, and snippets.

@defp
Created April 19, 2017 06:18
Show Gist options
  • Save defp/d513f48602d99dfc83e87c66ea86b266 to your computer and use it in GitHub Desktop.
Save defp/d513f48602d99dfc83e87c66ea86b266 to your computer and use it in GitHub Desktop.
14:14:44 lidashuang@3pj code redis-cli -n 1 --bigkeys
# Scanning the entire keyspace to find biggest keys as well as
# average sizes per key type. You can use -i 0.1 to sleep 0.1 sec
# per 100 SCAN commands (not usually needed).
[00.00%] Biggest hash found so far 'WarLocation:387206263099' with 2 fields
[00.00%] Biggest hash found so far 'Battle:386842949107_101' with 5 fields
[00.00%] Biggest hash found so far 'Building:391058870427' with 16 fields
[00.00%] Biggest hash found so far 'WarReport:104' with 42 fields
[00.01%] Biggest string found so far 'WarEvent:391056369043_id' with 1 bytes
[00.03%] Biggest string found so far 'Hero:384258653014_id' with 2 bytes
[00.06%] Biggest list found so far 'rq:388666211779:inbox' with 25 items
[00.09%] Biggest hash found so far 'Task:389237484339' with 542 fields
[00.11%] Biggest string found so far 'WarEvent:384025611222_id' with 3 bytes
[00.26%] Biggest set found so far 'DailyActiveSet:2' with 1040 members
[00.59%] Biggest list found so far 'rq:385272214227:inbox' with 29 items
[00.83%] Biggest list found so far 'rq:384297086907:inbox' with 31 items
[00.94%] Biggest list found so far 'rq:386462398939:inbox' with 35 items
[01.14%] Biggest list found so far 'rq:388064210722:inbox' with 39 items
[01.72%] Biggest zset found so far 'WarKillScore:75' with 13 members
[05.56%] Biggest zset found so far 'WarKillScore:88' with 18 members
[06.49%] Biggest string found so far 'WarThiefTime' with 10 bytes
[06.64%] Biggest zset found so far 'WarKillScore:102' with 20 members
[06.74%] Biggest zset found so far 'WarKillScore:110' with 22 members
[10.38%] Biggest hash found so far 'mails:599' with 2563 fields
[10.92%] Biggest list found so far 'WarDefense:95:dispatch' with 58 items
[12.18%] Biggest hash found so far 'contacts' with 3719 fields
[15.98%] Biggest zset found so far 'WarKillScore:93' with 41 members
[22.38%] Biggest list found so far 'WarDefense:30:dispatch' with 1319 items
[23.18%] Biggest zset found so far 'WarKillScore:105' with 65 members
[24.94%] Biggest zset found so far 'WarKillScore:99' with 67 members
[25.90%] Biggest zset found so far 'pvp:rank:yesterday' with 338 members
[37.53%] Biggest set found so far 'User:all:name_set_rand' with 34948 members
[67.34%] Biggest zset found so far 'pvp:rank' with 2339 members
[84.44%] Biggest string found so far 'server:started_at' with 13 bytes
-------- summary -------
Sampled 126044 keys in the keyspace!
Total key length in bytes is 2669949 (avg len 21.18)
Biggest string found 'server:started_at' has 13 bytes
Biggest list found 'WarDefense:30:dispatch' has 1319 items
Biggest set found 'User:all:name_set_rand' has 34948 members
Biggest hash found 'contacts' has 3719 fields
Biggest zset found 'pvp:rank' has 2339 members
17116 strings with 23405 bytes (13.58% of keys, avg size 1.37)
3679 lists with 53779 items (02.92% of keys, avg size 14.62)
5 sets with 42000 members (00.00% of keys, avg size 8400.00)
105021 hashs with 2468795 fields (83.32% of keys, avg size 23.51)
223 zsets with 7004 members (00.18% of keys, avg size 31.41)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment