Giter VIP home page Giter VIP logo

Comments (8)

misterion avatar misterion commented on June 12, 2024

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.

comjf avatar comjf commented on June 12, 2024

@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.

misterion avatar misterion commented on June 12, 2024

@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.

comjf avatar comjf commented on June 12, 2024

@misterion Perfect! Let me know if you need any help, I can test your updated code when ready.

Thank you!

from redis-memory-analyzer.

misterion avatar misterion commented on June 12, 2024

I think i fix it in 0.1.11. Could you test it please?

from redis-memory-analyzer.

comjf avatar comjf commented on June 12, 2024

@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.

misterion avatar misterion commented on June 12, 2024

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.

misterion avatar misterion commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.