10 2014 档案
摘要:Cgroups(abbreviated fromcontrol groups) is aLinux kernelfeature to limit, account, and isolateresource usage(CPU, memory, disk I/O, etc.) ofprocess gr...
阅读全文
摘要:【背景】在看flower的时候看到__main__.py文件,不知道具体做什么用?故先进行测试看看。【测试代码】测试代码目录结构如下:.`-- test |-- __init__.py |-- __main__.py |-- dep.py__init__.py为空,表示test是一...
阅读全文
摘要:1、本地创建一个目录redis[guosong@etch171 mars171 redis]# pwd/data1/guosong/code/redis[guosong@etch171 mars171 redis]# lltotal 12drwxr-xr-x 2 guosong guosong 40...
阅读全文
摘要:(待更新整理)因为最近遇到一些超时的问题,正好就把所有的timeout参数都理一遍,首先数据库里查一下看有哪些超时:root@localhost : test 12:55:50> show global variables like "%timeout%";+--------------------...
阅读全文
摘要:阿里巴巴DBA团队http://www.alidba.net/(不可访问)张瑞(Jacky)http://www.hellodba.net/(不可访问)简朝阳(Sky.Jian)http://www.isky000.com/童家旺(Jame.Tong)http://www.dbthink.com/—...
阅读全文
摘要:开发那边抛出个有意思的问题,下面的现象如何解释呢?mysql> select * from A;+------+------+| t1 | t2 |+------+------+| 1 | 1 | | 2 | 2 | | 3 | 3 | +------+-...
阅读全文
摘要:1、背景查看flower的源码,首先看到flower的主程序如下:#!/usr/local/sinasrv2/bin/python2.7# EASY-INSTALL-ENTRY-SCRIPT: 'flower==0.7.3','console_scripts','flower'__requires_...
阅读全文
摘要:代码覆盖率Coverage1、http://www.cnblogs.com/coderzh/archive/2009/03/29/1424344.html2、http://www.cnblogs.com/coderzh/archive/2009/12/01/pythoncoverage.html3、...
阅读全文
摘要:Git命令补全功能1、下载下面的文件https://github.com/sguo421/code/blob/master/git-completion.bash2、放倒HOME目录下,设置为隐藏文件[root@typhoeus82 git_test]# ls -al ~ |grep git ...
阅读全文
摘要:NAMEnc - arbitrary TCP and UDP connections and listensSYNOPSISnc [-46DdhklnrStUuvz] [-i interval] [-p source_port] [-s source_ip_address] [-T ToS] [-w...
阅读全文
摘要:Querying or Reading DataOpenTSDB offers a number of means to extract data such as CLI tools, an HTTP API and as a GnuPlot graph. Querying with OpenTSD...
阅读全文
摘要:Homebrew作为OS X上强大的包管理器,为系统软件提供了非常方便的安装方式,独特式的解决了包的依赖问题,并不再需要烦人的sudo,一键式编译,无参数困扰,真的,你值得拥有。brew 的安装:$ curl -LsSf http://github.com/mxcl/homebrew/tarball...
阅读全文
摘要:1、以HOME目录为准,进行跳转sys.path.append(os.path.dirname(__file__) + os.sep + '../')from config import swordfishconffrom utils import logfrom utils.mysql_base...
阅读全文
摘要:Writing DataYou may want to jump right in and start throwing data into your TSD, but to really take advantage of OpenTSDB's power and flexibility, you...
阅读全文
摘要:OpenTSDB 2.0, the scalable, distributed time series database可扩展、分布式时间序列数据库1、背景一些老的监控系统,它常常会出现这样的问题:1)中心化数据存储进而导致单点故障。2)有限的存储空间。3)数据会因为时间问题而变得不准确。4)不易于...
阅读全文
摘要:检查当前文件状态[root@typhoeus79 ice_test_m git_test]# git status# On branch masternothing to commit (working directory clean)说明当前git目录很干净,所有已跟踪的文件在上次提交后没有修改过...
阅读全文
摘要:TCollectortcollectoris a client-side process that gathers data from local collectors and pushes the data to OpenTSDB. You run it on all your hosts, an...
阅读全文
摘要:ABLOBis a binary large object that can hold a variable amount of data. The fourBLOBtypes areTINYBLOB,BLOB,MEDIUMBLOB, andLONGBLOB. These differ only i...
阅读全文