Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis number of keys in cluster mode #1165

Closed
gauravn00b opened this issue Feb 13, 2024 · 23 comments
Closed

Redis number of keys in cluster mode #1165

gauravn00b opened this issue Feb 13, 2024 · 23 comments
Labels
bug Something isn't working

Comments

@gauravn00b
Copy link

OS

Windows

VERSION

1.6.1

ISSUE DESCRIPTION

If we connect in cluster mode, the number of keys are shown for that particular node only. Ideally, in cluster mode, total keys should be shown.

@qishibo
Copy link
Owner

qishibo commented Feb 13, 2024

now the keys count is scanned by info cmd in a single node, so if you want to display real number in all nodes, the app should exec in every node then sum them. this execution is time-consuming, but only this can get real count.

I'll considerate it!

@qishibo qishibo added the bug Something isn't working label Feb 13, 2024
@gauravn00b
Copy link
Author

gauravn00b commented Feb 14, 2024

Thank you for considering it. As a suggestion, instead of executing on all nodes and then sum, we can execute only on Master nodes and display number of keys for each master. Atleast this way, no need to sum.

Actually i am not seeing all the keys being displayed on the left side. Like i have approx 2200 keys in DB, but ARDS is only showing me approx 1500 keys on the left side (after load all). That is the reason i want to know how many keys ARDS is actually fetching? Thus this requirement came.

@qishibo
Copy link
Owner

qishibo commented Feb 17, 2024

done in 1b0fe9b

image

@gauravn00b
Copy link
Author

Thanks. Now count is coming for each Master. However, Node is not coming correct. Pls note i have cluster over IPv6
image

Also as per this snapshot, total keys are 2278, but on the left pane, only 1498 are shown (After Load ALL).

@qishibo
Copy link
Owner

qishibo commented Feb 26, 2024

I'll try to reproduct it

@qishibo
Copy link
Owner

qishibo commented Feb 26, 2024

I got the correct keys in left panel, can you show your keys? I think there may be some format errorr while counting keys

@gauravn00b
Copy link
Author

image

One more observation, if i change the Host and Port of same cluster on ARDS, then it shows some different key count.

Below is with some different Host and Port of same cluster:
image

@gauravn00b
Copy link
Author

@qishibo Pl update if we have some findings.

@qishibo
Copy link
Owner

qishibo commented Mar 5, 2024

I tried to reproduct in my env but didn't got your error.

the following keys are suffixed with □, is this the correct key name? or they are unvisible chacracters?

image

@gauravn00b
Copy link
Author

These are correct ones. All this was working in previous versions. I started facing key mismatch issue from last 2 months or so.

@qishibo
Copy link
Owner

qishibo commented Mar 6, 2024

which is the latest version that you saw the correct result? I'll try to find the difference

@gauravn00b
Copy link
Author

i think, 1.6.0 it was working fine.

@qishibo
Copy link
Owner

qishibo commented Mar 7, 2024

was your cluster connection connected by SSH+cluster?
I found that i've updated my tunnel-ssh package from v160

@gauravn00b
Copy link
Author

Yes. Its SSH+Cluster

@gauravn00b
Copy link
Author

Have we checked this? I checked it on 1.5.9, this issue doesn't exist. I am able to see all keys.

@qishibo
Copy link
Owner

qishibo commented Mar 19, 2024

I am trying to fix the difference and fix them

@qishibo
Copy link
Owner

qishibo commented Mar 24, 2024

https://cowtransfer.com/s/78d6ae152a0940

try to install this dev version

@gauravn00b
Copy link
Author

I tried this; issue still persist.

@qishibo
Copy link
Owner

qishibo commented Mar 26, 2024

after loading all?

@gauravn00b
Copy link
Author

Yes.

@qishibo
Copy link
Owner

qishibo commented Mar 28, 2024

I modified the page_size in dev version but you still got the error after "loading all",which makes me confused.
try the following ways again:

  1. modify the "Load Number" to 10000, then try click 'load more' until it becomes disabled.
  2. try "load all" (you failed in this way, I am quit confusing about this.)

@gauravn00b
Copy link
Author

gauravn00b commented Mar 28, 2024

So, i set "Load Number" to 1000 (since my total keys are around 2200) and when i click on "load more", in 1st click itself, it got disabled and i encountered the same issue, all keys are not loaded.

@qishibo
Copy link
Owner

qishibo commented Mar 29, 2024

I've no idea about your issue.
If your data is not sensitive, you can export all your keys by other app, then I can reproduct your environment and find the keypoint

@qishibo qishibo closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants