Comments (8)
Yes, CONFIG issue is not supported on most of clous solustion and was fixed as part of #3. Warining in GlobalKeySpace just inform about this issue. DEBUG SDSLEN
was added to Redis 2.8.5 and should be available. Could you check it by hands on your Redis instanse? If not supported on AWS's ElastiCache i`l do a workaround to calculate string size without it.
from redis-memory-analyzer.
@misterion Thank you for the quick reply, nothing I tried worked (Let me know if I'm doing the wrong command)
<instance>:6379> select 5
OK
<instance>:6379[5]> RANDOMKEY
"ww-identity_cache:IDC:5:blob:ZipCodeLookup:3933566624995091082:06036"
(0.75s)
<instance>:6379[5]> DEBUG ww-identity_cache:IDC:5:blob:ZipCodeLookup:3933566624995091082:06036
(error) ERR unknown command 'DEBUG'
(0.90s)
<instance>:6379[5]> DEBUG SDSLEN ww-identity_cache:IDC:5:blob:ZipCodeLookup:3933566624995091082:06036
(error) ERR unknown command 'DEBUG'
<instance>:6379[5]> DEBUG OBJECT ww-identity_cache:IDC:5:blob:ZipCodeLookup:3933566624995091082:06036
(error) ERR unknown command 'DEBUG'
What is the other way to calculate size?
from redis-memory-analyzer.
@comjf it looks like AWS's ElastiCache do not support DEBUG
at all. So i think i`l add some code to check this and rewrite rule to work with modes then this command allowed and disallowed.
from redis-memory-analyzer.
@misterion Perfect! Let me know if you need any help, I can test your updated code when ready.
Thank you!
from redis-memory-analyzer.
I think i fix it in 0.1.11. Could you test it please?
from redis-memory-analyzer.
@misterion Thank you for the quick turn around!!
It appears to be working. I now see a summary of the keys with great information about them. I do think I've spotted another bug, I'm not sure if this is related but if you look at this
rma -s <instance>.use1.cache.amazonaws.com -d 6
| Stat | Value |
|:-------------------------------|:---------------|
| Total keys in db | 9 |
| RedisDB key space overhead | 512 |
| Info `used_memory_rss` | 22178394112 |
| Info `used_memory_human` | 20.20G |
| Info `used_memory_peak_human` | 20.44G |
| Info `used_memory_peak` | 21947082536 |
| Info `mem_fragmentation_ratio` | 1.02 |
| Info `used_memory_lua` | 1548288 |
| Info `mem_allocator` | jemalloc-3.6.0 |
| Info `used_memory` | 21694895216 |
You can see that there are only 9 keys in this database and they are all very small, yet this used_memory is really high. I think this metric is the entire redis memory, not specific to the DB I passed in the -d flag. Should I open this as a separate github issue?
from redis-memory-analyzer.
This part of stat from global rule. Most of it from Redis INFO command. I'l check it in monday is it possible to separate info response per db.
from redis-memory-analyzer.
@comjf http://redis.io/commands/info return information per server basis. So this part of stat is correct but may look like a bit confusing. I think i should write some more about this in readme.
from redis-memory-analyzer.
Related Issues (20)
- ValueString.py", line 103, in analyze "ValueError: min() arg is an empty sequence"
- no such key
- Got error excuting rma HOT 7
- SyntaxError: invalid syntax HOT 1
- "unsupported operand type" on "Processing Set patterns" step
- invalid syntax: self.reporter.print(str_res) HOT 2
- Allow exclude keys by pattern/regexp
- Hitting recursion limit HOT 1
- Ignore Redis namespace
- Doesn't work with Redis on Memorystore GCP HOT 2
- re.error: bad character range y-m at position 167 HOT 1
- SSL support
- AttributeError: module 'time' has no attribute 'clock'
- does not use python3 when both python2 & 3 are installed HOT 2
- Does it works with Redis Cluster? HOT 3
- if msgpack installed : ValueError: Invalid encoding `raw` given
- ValueError: min() arg is an empty sequence
- Consulting parameters
- stat naming policy is not consistent with the snake_case json field naming policy
- this is a very nasty performance bug. there is no need to keep sorting whenever we add a new record
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-memory-analyzer.