How to do it...

The operations for administrating Redis Cluster are as follows:

  1. Fetch the state of the Cluster:
redis@192.168.1.57:~> bin/redis-cli -h 192.168.1.57 -p 6381 -c CLUSTER INFOcluster_state:okcluster_slots_assigned:16384cluster_slots_ok:16384...cluster_stats_messages_pong_received:113cluster_stats_messages_fail_received:2cluster_stats_messages_auth-req_received:2cluster_stats_messages_received:233
  1. Check the status of the nodes in the Cluster:
redis@192.168.1.57:~> bin/redis-cli -h 192.168.1.57 -p 6381 -c CLUSTER NODESeeeabcab810d500db1d190c592fecbe89036f24f 192.168.1.58:6381@16381 master - 0 1510818967000 0 connected 11001-16383...58285fa03c19f6e6f633fb5c58c6a314bf25503f 192.168.1.57:6379@16379 slave bc7b4a0c4596759058291f1b8f8de10966b5a1d1 ...

Get Redis 4.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.