05 2014 档案

摘要:http://www.orczhou.com/index.php/2010/02/innodb-double-write/http://www.mysqlperformanceblog.com/2006/08/04/innodb-double-write/http://dev.mysql.com/d... 阅读全文
posted @ 2014-05-27 10:44 小郭学路 阅读(119) 评论(0) 推荐(0) 编辑
摘要:1、如何定义和生成GTIDs唯一性:在所有主从库都是唯一的,由二元组构成每个事务和GTIDs之间都有1:1映射GTID = source_id:transaction_idsource_id标记主库的server_uuidtransaction_id是一个递增序列,从1开始,包含5个事务的GTID3... 阅读全文
posted @ 2014-05-20 15:18 小郭学路 阅读(1594) 评论(0) 推荐(0) 编辑
摘要:1、背景MySQL插件安装语法如下:13.7.3.3 INSTALL PLUGIN SyntaxINSTALL PLUGIN plugin_name SONAME 'shared_library_name'http://dev.mysql.com/doc/refman/5.5/en/install-... 阅读全文
posted @ 2014-05-19 21:01 小郭学路 阅读(779) 评论(0) 推荐(0) 编辑
摘要:1、概述主从复制存在三种类型:异步复制、同步复制以及半同步复制,下面根据手册上解释逐一说明一下。异步复制:主库将更新的事件写入binlog,准备好的从库获取这些binlong进行回放。这无法保证所有从库都接到这些事件。With asynchronous replication, the master... 阅读全文
posted @ 2014-05-19 11:16 小郭学路 阅读(775) 评论(0) 推荐(0) 编辑
摘要:1、安装2、配置结合前面的supervisior和tornado,给出一个nginx的配置供参考user nginx;worker_processes 5;error_log logs/error.log;error_log logs/error.log notice;error_log ... 阅读全文
posted @ 2014-05-16 17:23 小郭学路 阅读(297) 评论(0) 推荐(0) 编辑
摘要:http://pan.baidu.com/s/1dD1Ra7J其他语言的编程风格:http://zh-google-styleguide.readthedocs.org/en/latest/ 阅读全文
posted @ 2014-05-16 10:51 小郭学路 阅读(310) 评论(0) 推荐(0) 编辑
摘要:http://xlambda.com/gevent-tutorial/ 阅读全文
posted @ 2014-05-15 16:55 小郭学路 阅读(148) 评论(0) 推荐(0) 编辑
摘要:1、需求现在有一个进程需要每时每刻不断的跑,但是这个进程又有可能由于各种原因有可能中断。当进程中断的时候我希望能自动重新启动它,此时,就需要使用到了Supervisor。Supervisor起到守护进程的作用。2、安装https://pypi.python.org/pypi/supervisorta... 阅读全文
posted @ 2014-05-15 16:27 小郭学路 阅读(10118) 评论(1) 推荐(1) 编辑
摘要:逐个过一遍明确具体含义常见错误 #1: 滥用表达式作为函数参数的默认值Python允许为函数的参数提供默认的可选值。尽管这是语言的一大特色,但是它可能会导致一些易变默认值的混乱。例如,看一下这个Python函数的定义:>>> def foo(bar=[]): # bar is opti... 阅读全文
posted @ 2014-05-14 20:11 小郭学路 阅读(435) 评论(0) 推荐(0) 编辑
摘要:http://dreamfire.blog.51cto.com/418026/1133159/http://blog.chinaunix.net/uid-24648486-id-3052511.html 阅读全文
posted @ 2014-05-14 15:14 小郭学路 阅读(112) 评论(0) 推荐(0) 编辑
摘要:先标记一下,后续手动验证http://blog.csdn.net/king_sundi/article/details/7457475安装GitoriousGit是一个分布式的版本控制系统,用于Linux内核的管理。在推出后,Git也逐渐被用于其他项目,同样也取得了很大的成功。GitHub则是基于G... 阅读全文
posted @ 2014-05-13 20:48 小郭学路 阅读(359) 评论(0) 推荐(0) 编辑
摘要:只知道这么使用,加上双引号,原因不太清楚原因在于加上双引号可以防止转义,在linux中使用&会使进程后台运行,必须对&进行转义,加反斜杠的方式比较麻烦,故使用双引号模式最方便。http://hi.baidu.com/yxj1141/item/cef41633b0bda1ffde222123 阅读全文
posted @ 2014-05-13 16:45 小郭学路 阅读(1749) 评论(0) 推荐(0) 编辑
摘要:Linux环境下使用python调用C的printf例子:#!/usr/bin/env python2.7#-*- coding:utf-8 -*-from ctypes import *def test(): #libc = cdll.LoadLibrary("libc.so.6") ... 阅读全文
posted @ 2014-05-09 15:20 小郭学路 阅读(1021) 评论(0) 推荐(0) 编辑