Kafka依赖于ZooKeeper,所以在安装Kafka之前请确保ZooKeeper集群已安装正确并能正常运行。虽然Kafka自身内置了ZooKeeper,但是还是建议大家单独部署ZooKeeper集群,因为可能其他框架也需要使用ZooKeeper。安装完毕后,可通过创建topic,控制台模拟producer和consumer来验证Kafka是否已正确安装并能正确运行。...
分类:
其他好文 时间:
2016-04-01 10:18:39
阅读次数:
143
最近在使用ELKStack对系统日志进行分析,在网上也有看到有使用logstash的案例,但是发现不能正常解析出来,于是重新花时间去进行正则计算,主要代码如下:input{
file{
type=>"mysql-slow"
path=>"/var/lib/mysql/slow.log"
start_position=>beginning
sincedb_write_i..
分类:
数据库 时间:
2016-03-31 18:58:35
阅读次数:
248
recv()failed(104:connectresetbypeer)whilereadingresponseheaderfromupstream的原因和解决方案原因是php-fpm进程数耗尽了,两个方案:(1).调整php-fpm.conf里面的pm.max_children,增大,不建议超过300(2).php-fpm.conf里面打开每个对应池的slow日志,根据慢执行日志来优化ph..
分类:
Web程序 时间:
2016-03-30 16:43:22
阅读次数:
186
1、结构图 Introduction Feature extraction, deformation handling, occlusion handling, and classification are four important components in pedestrian detect ...
分类:
其他好文 时间:
2016-03-30 16:22:21
阅读次数:
186
Callback 函数在当前动画 100% 完成之后执行。 jQuery 动画的问题 许多 jQuery 函数涉及动画。这些函数也许会将 speed 或 duration 作为可选参数。 例子:$("p").hide("slow") speed 或 duration 参数可以设置许多不同的值,比如 ...
分类:
Web程序 时间:
2016-03-30 14:43:58
阅读次数:
183
类别:栈溢出,fileformat类别漏洞 描述: This module exploits a stack-based buffer overflow in the handling of the 'pFragments' shape property within the Microsoft W ...
分类:
其他好文 时间:
2016-03-30 01:34:37
阅读次数:
224
概述 基于Spring支持的客户端编程,包括发送方客户端、接收方客户端。 发送方客户端代码:jms-producer 接收方客户端代码:jms-consumer 本文有pdf版本:基于Spring支持的通信.pdf 发送方客户端 这里基于demo进行说明。这个demo将往example.queue和 ...
分类:
编程语言 时间:
2016-03-28 21:29:01
阅读次数:
242
ActiveMQ是一款功能强大的消息服务器,它支持许多种开发语言,例如Java, C, C++, C#等等。企业级消息服务器无论对服务器稳定性还是速度,要求都很高,而ActiveMQ的分布式集群则能很好的满足这一需求,下面说说ActiveMQ的几种集群配置。 Queue consumer clust ...
分类:
其他好文 时间:
2016-03-27 17:54:06
阅读次数:
231
python多线程生产者消费者模型:一个生产者多个消费者TheQueuemoduleimplementsmulti-producer,multi-consumerqueues.Itisespeciallyusefulinthreadedprogrammingwheninformationmustbeexchangedsafelybetweenmultiplethreads.TheQueueclassinthismoduleimplementsalltherequir..
分类:
编程语言 时间:
2016-03-26 20:33:18
阅读次数:
253
mysql有以下几种日志: 错误日志: -log-err 查询日志: -log 慢查询日志: -log-slow-queries 更新日志: -log-update 二进制日志: -log-bin 是否启用了日志 mysql>show variables like 'log_%'; 怎样知道当前的日
分类:
数据库 时间:
2016-03-22 10:19:46
阅读次数:
227