mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Cluster: add clean-logs command to create-cluster script.
This commit is contained in:
parent
8f7bf2841a
commit
6878a3fedd
@ -1363,9 +1363,10 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) {
|
|||||||
clusterNodeFailureReportsCount(node) == 0)
|
clusterNodeFailureReportsCount(node) == 0)
|
||||||
{
|
{
|
||||||
uint32_t pongtime = ntohl(g->pong_received);
|
uint32_t pongtime = ntohl(g->pong_received);
|
||||||
if (pongtime > node->pong_received)
|
if (pongtime > node->pong_received) {
|
||||||
node->pong_received = pongtime;
|
node->pong_received = pongtime;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* If we already know this node, but it is not reachable, and
|
/* If we already know this node, but it is not reachable, and
|
||||||
* we see a different address in the gossip section of a node that
|
* we see a different address in the gossip section of a node that
|
||||||
|
@ -86,6 +86,12 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "clean-logs" ]
|
||||||
|
then
|
||||||
|
rm -rf *.log
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Usage: $0 [start|create|stop|watch|tail|clean]"
|
echo "Usage: $0 [start|create|stop|watch|tail|clean]"
|
||||||
echo "start -- Launch Redis Cluster instances."
|
echo "start -- Launch Redis Cluster instances."
|
||||||
echo "create -- Create a cluster using redis-trib create."
|
echo "create -- Create a cluster using redis-trib create."
|
||||||
@ -93,3 +99,4 @@ echo "stop -- Stop Redis Cluster instances."
|
|||||||
echo "watch -- Show CLUSTER NODES output (first 30 lines) of first node."
|
echo "watch -- Show CLUSTER NODES output (first 30 lines) of first node."
|
||||||
echo "tail <id> -- Run tail -f of instance at base port + ID."
|
echo "tail <id> -- Run tail -f of instance at base port + ID."
|
||||||
echo "clean -- Remove all instances data, logs, configs."
|
echo "clean -- Remove all instances data, logs, configs."
|
||||||
|
echo "clean-logs -- Remove just instances logs."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user