Daily Archives: November 5, 2018

Kafka tools

List kafka consumer groups: kafka-consumer-groups --bootstrap-server localhost:9092 --list List kafka topics: kafka-topics --zookeeper localhost:2181 --list Add partitions to topics: bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic... Read More | Share it now!

failover redis cluster failover

今天测试了redis cluster  failover 功能,在切换过程中很快,但在failover时有force 与takeover 之分 $r 127.0.0.1:6237> cluster nodes 13b6094babb9c16066a315a828434b3c6525f08b 192.168.1.91:6236 master - 0... Read More | Share it now!

sort Linux

Sort是用于对单个或多个文本文件内容进行排序的Linux程序。Sort命令以空格作为字段分隔符,将一行分割为多个关键字对文件进行排序。需要注意的是除非你将输出重定向到文件中,否则Sort命令并不对文件内容进行实际的排序(即文件内容没有修改),只是将文件内容按有序输出。 本文的目标是通过14个实际的范例让你更深刻的理解如何在Linux中使用sort命令。 1、... Read More | Share it now!