摘要: 下面内容摘自:https://stackoverflow.com/questions/1821811/how-to-read-write-from-to-file-using-golang Start with the basics Here I used os.Open and os.Create 阅读全文
posted @ 2017-05-23 11:51 bonelee 阅读(9804) 评论(0) 推荐(0) 编辑
摘要: Kafka架构 如上图所示,一个典型的kafka集群中包含若干producer(可以是web前端产生的page view,或者是服务器日志,系统CPU、memory等),若干broker(Kafka支持水平扩展,一般broker数量越多,集群吞吐率越高),若干consumer group,以及一个Z 阅读全文
posted @ 2017-05-23 11:32 bonelee 阅读(6959) 评论(0) 推荐(0) 编辑
摘要: splunk的bucket组织目录:db_1481515116_1480695302_0db_1481537316_1481532688_1db_1481547598_1481539988_2db_1481617470_1481613403_3db_1481623046_1481619179_4db 阅读全文
posted @ 2017-05-23 10:14 bonelee 阅读(652) 评论(0) 推荐(0) 编辑
摘要: Topic在逻辑上可以被认为是一个在的queue,每条消费都必须指定它的topic,可以简单理解为必须指明把这条消息放进哪个queue里。 为了使得Kafka的吞吐率可以水平扩展,物理上把topic分成一个或多个partition,每个partition在物理上对应一个文件夹,该文件 夹下存储这个p 阅读全文
posted @ 2017-05-23 10:10 bonelee 阅读(4058) 评论(0) 推荐(0) 编辑