Redis - get total dataset size in cluster


pre

When the Redis instance is set up and running, the dataset size (in bytes) can be retrieved from the output of the following command by looking at the used_memory_dataset field.

./redis-cli -h <ip address> -p <port> info

However, when I have multiple instances running in cluster mode, how can I retrieve the dataset size for the entire cluster? Can the redis-cli tool also be used for such cluster-based commands?

Itamar Haber

Starting with Redis v5, the cli includes cluster intelligence. You can invoke the command INFOon all nodes using the form, for example :

redis-cli --cluster call ip:port command

To calculate the total size of the dataset, you have to add up the different responses.

Related


Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Total size of Redis cluster

yesterday I have a quick question about Redis Cluster. I am setting up a Redis cluster on Google Cloud kubernetes engine. I'm using an n1-highmem-2 machine type with 13GB RAM, but I'm a little confused about how to calculate the total available size of the clu

Redis - total key in cluster

RKP I want to check the total number of keys in a Redis cluster. Is there any direct command I can use to get this information or I have to check the INFO command in each instance/node. Itamar Haber There is no direct way. You can use cli to do the following:

Redis - total key in cluster

RKP I want to check the total number of keys in a Redis cluster. Is there any direct command I can use to get this information or I have to check the INFO command in each instance/node. Itamar Haber There is no direct way. You can use cli to do the following:

Redis - total key in cluster

RKP I want to check the total number of keys in a Redis cluster. Is there any direct command I can use to get this information or I have to check the INFO command in each instance/node. Itamar Haber There is no direct way. You can use cli to do the following:

Redis - total key in cluster

RKP I want to check the total number of keys in a Redis cluster. Is there any direct command I can use to get this information or I have to check the INFO command in each instance/node. Itamar Haber There is no direct way. You can use cli to do the following:

Redis - total key in cluster

RKP I want to check the total number of keys in a Redis cluster. Is there any direct command I can use to get this information or I have to check the INFO command in each instance/node. Itamar Haber There is no direct way. You can use cli to do the following:

Redis - total key in cluster

RKP I want to check the total number of keys in a Redis cluster. Is there any direct command I can use to get this information or I have to check the INFO command in each instance/node. Itamar Haber There is no direct way. You can use cli to do the following:

Get all keys in Redis cluster

root traveler I am using Redis cluster version redis-5.0.5. I want to see all keys present in Redis cluster. I know for single machine we KEYS *use to get all keys. What is the way to see all keys in Redis cluster? $ redis-cli -h hostname -p 90001 -c hostname

Get all keys in Redis cluster

root traveler I am using Redis cluster version redis-5.0.5. I want to see all keys present in Redis cluster. I know for single machine we KEYS *use to get all keys. What is the way to see all keys in Redis cluster? $ redis-cli -h hostname -p 90001 -c hostname

How to get the total size of a directory?

Zola: So I'm trying to get the total size of a directory using Go. So far I have this: var dirSize int64 = 0 func readSize(path string, file os.FileInfo, err error) error { if !file.IsDir() { dirSize += file.Size() } return nil } func Di

Quickly get the total size of a folder

User 202459: I want to quickly find the total size of any folder using python. import os from os.path import join, getsize, isfile, isdir, splitext def GetFolderSize(path): TotalSize = 0 for item in os.walk(path): for file in item[2]:

Get the total size of the file in bytes

lle possible duplicate: Java get file size efficiently I have a file named filename located at E://file.txt. FileInputStream fileinputstream = new FileInputStream(filename); What I want to do is calculate the size (in bytes) of this file. what should I do? Sw

How to get the total size of a directory?

Zola: So I'm trying to get the total size of a directory using Go. So far I have this: var dirSize int64 = 0 func readSize(path string, file os.FileInfo, err error) error { if !file.IsDir() { dirSize += file.Size() } return nil } func Di

How to get the total size of a directory?

Zola: So I'm trying to get the total size of a directory using Go. So far I have this: var dirSize int64 = 0 func readSize(path string, file os.FileInfo, err error) error { if !file.IsDir() { dirSize += file.Size() } return nil } func Di

How to get the total size of a directory?

Zola: So I'm trying to get the total size of a directory using Go. So far I have this: var dirSize int64 = 0 func readSize(path string, file os.FileInfo, err error) error { if !file.IsDir() { dirSize += file.Size() } return nil } func Di

Get or calculate the total size of Mnesia

Ipinac I want to find the total size of a mnesia database. I only have one node. Can I get the size of mnesia from some function or can I calculate it somehow? I looked at the documentation http://erlang.org/doc/man/mnesia.html , but I can't find a function to

Get the total size of the table list

Kazakh I have a very large database of items. I need to replicate this database to create a test environment, but I don't have enough disk space. But you don't actually need to copy rows from the tables that contain user data, only those tables that describe t

Python - Get total RAM size

Demirode I need to get the total RAM size in GB (eg 8 GB or 8.0 GB). It is given in bytes, which I converted to GB by dividing by 1024x1024x1024. So it gives numbers less than 8 (eg 7.7). How can I get the size of 8 GB? Note: I used psutil, free, cat /proc/mem

Python - get total RAM size

Demirode I need to get the total RAM size in GB (eg 8 GB or 8.0 GB). It's in bytes, which I converted to GB by dividing by 1024x1024x1024. As a result, it gives numbers less than 8 (eg 7.7). How can I get the size of 8 GB? Note: I have used psutil, free, cat /

Get the total size of the file in bytes

lle possible duplicate: Java get file size efficiently I have a file named filename located at E://file.txt. FileInputStream fileinputstream = new FileInputStream(filename); What I want to do is calculate the size (in bytes) of this file. what should I do? Sw

Get the total size of the file in bytes

lle possible duplicate: Java get file size efficiently I have a file named filename located at E://file.txt. FileInputStream fileinputstream = new FileInputStream(filename); What I want to do is calculate the size (in bytes) of this file. what should I do? Sw

Quickly get the total size of a folder

User 202459: I want to quickly find the total size of any folder using python. import os from os.path import join, getsize, isfile, isdir, splitext def GetFolderSize(path): TotalSize = 0 for item in os.walk(path): for file in item[2]: