mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
redis-trib: added some more output for check.
This commit is contained in:
parent
77bba91b48
commit
1baa153028
@ -258,7 +258,7 @@ class RedisTrib
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_cluster
|
def check_cluster
|
||||||
puts "Performing Cluster Check (using node #{@nodes[0]})"
|
puts ">>> Performing Cluster Check (using node #{@nodes[0]})"
|
||||||
show_nodes
|
show_nodes
|
||||||
check_config_consistency
|
check_config_consistency
|
||||||
check_open_slots
|
check_open_slots
|
||||||
@ -276,6 +276,7 @@ class RedisTrib
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_slots_coverage
|
def check_slots_coverage
|
||||||
|
puts ">>> Check slots coverage..."
|
||||||
slots = covered_slots
|
slots = covered_slots
|
||||||
if slots.length == ClusterHashSlots
|
if slots.length == ClusterHashSlots
|
||||||
puts "[OK] All #{ClusterHashSlots} slots covered."
|
puts "[OK] All #{ClusterHashSlots} slots covered."
|
||||||
@ -288,6 +289,7 @@ class RedisTrib
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_open_slots
|
def check_open_slots
|
||||||
|
puts ">>> Check for open slots..."
|
||||||
open_slots = []
|
open_slots = []
|
||||||
@nodes.each{|n|
|
@nodes.each{|n|
|
||||||
if n.info[:migrating].size > 0
|
if n.info[:migrating].size > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user