Joined 25 January 2010
(Redirected from User:Ori Livneh)
Get one minute of Redis activityEdit
#!/usr/bin/env PASS=$(mwscript eval.php enwiki <<<'echo "$wmgRedisPassword";' | head -1) bash redis-cli -a $PASS monitor & sleep 60 kill $!
Memory usage of redis suspiciously exceeds size of dumpEdit
- What types of keys do you have? How big are they? What are they storing?
INFOoutput: memory fragmentation ratio,
- Debug memory use with
DEBUG OBJECT <key>
- It's not documented, but you can use ZINTERSTORE and ZUNIONSTORE with SETs in Redis, they act as though their members all have a score of 1.
BLPOPwill block the connection until a new item is available to pop from a list