作者:zhanhailiang 日期:2014-12-02
1. INFO
info指令返回服务器相关信息,包括:
server: General information about the Redis server
clients: Client connections section
memory: Memory consumption related inf...
分类:
其他好文 时间:
2014-12-03 00:31:10
阅读次数:
282
public static byte[] LongToBytes(long lo) { byte[] by = new byte[8]; for (int i = 0; i > offset) & 0xff); } return by; } publ...
分类:
编程语言 时间:
2014-12-02 14:44:42
阅读次数:
190
主要的核心类如下:controller:根据相关的上下文,创建KafkaController对象,引入多个监听器监听broker,topic,partition以及副本的状态变化。ZookeeperLeaderElector:主要负责选举当前broker为lead的过程,同时,如果出现异常情况转移lead选举权。ReplicaStateMachine:主要..
分类:
其他好文 时间:
2014-12-02 12:02:38
阅读次数:
225
akka 并发编程框架
kafka 高吞吐量分布式消息系统
akka 是一个用 Scala 编写的库,用于简化编写容错的、高可伸缩性的 Java 和 Scala 的 Actor 模型应用。
Actor模型并非什么新鲜事物,它由Carl Hewitt于上世纪70年代早期提出,目的是为了解决分布式编程中一系列的编程问题。其特点如下:
...
分类:
其他好文 时间:
2014-12-01 17:37:20
阅读次数:
343
SQLServer环形缓冲区(RingBuffer)--RING_BUFFER_SCHEDULER_MONITOR获取SQL进程的CPU利用率环形缓冲区存储了有关CPU利用率的信息。这些信息每分钟更新一次。所以你可以跟踪到4小时15分钟内给定时间点的CPU利用率。下面的输出显示了SQL实例的CPU利用率和其他活动进程的CPU利用..
分类:
数据库 时间:
2014-11-28 18:38:12
阅读次数:
363
1.使用 git add 命令添加文件名含中文字符的文件时乱码类似:\316\304\261\276\316\304\265\265.txt解决方案:编辑C:\Git\etc\inputrc文件中对应的行,查找以下2行,并修改其值,原先:set output-meta offset convert-...
A number of circuits, such as level detectors and AM demodulators, benefit from a rectifier with a low offset voltage. Silicon diodes have an offset o...
分类:
其他好文 时间:
2014-11-28 15:50:42
阅读次数:
200
Figure 1shows a simple, stand-alone overvoltage detector. The intent of the circuit is to monitor a voltage, VMONITOR, and set the output, VOUT, high ...
分类:
其他好文 时间:
2014-11-28 15:40:19
阅读次数:
237
脚本如下: #!/bin/bash
#author?firxiao
#monitor?IP?change
#date:20141128
ip_old=ip_old.txt???
ip_now=ip_now.txt
mail_sender=xxx@xxx.com????#发件人
mail_user=xxx@xxx.com??????#收...
分类:
其他好文 时间:
2014-11-28 12:51:10
阅读次数:
286
对一个给定载波功率的输出频率来说,相位噪声是载波功率相对于给定的频率偏移处(频率合成器通常定义1kHz频率偏移)1-Hz的带宽上的功率,单位为 dBc/Hz@offset frequency。锁相环频率合成器的带内相位噪声主要取决于频率合成器,VCO的贡献很小。相位噪声的测量需要频谱分析仪。注意.....
分类:
其他好文 时间:
2014-11-27 21:56:09
阅读次数:
258