摘要: 第一篇:SQL优化 声明:本学习笔记是拜读“深入浅出MySQL数据库开发、优化与维护管理 第2版 唐汉明等著” 推荐大家购买阅读。 任何转转或引用等请注明书籍。 一、优化SQL的一般步骤 1.通过show [session|globa]lstatus命令了解各种SQL的执行频率。 默认session 阅读全文
posted @ 2016-07-13 17:33 nbuntu牛班图 阅读(556) 评论(0) 推荐(1) 编辑
摘要: Centos Install Mysql Cluster Cluster nodes and host computers. Node IP Address Management node (mgmd) 10.1.10.50 SQL node (mysqld) 10.1.10.51 Data nod 阅读全文
posted @ 2016-06-07 17:16 nbuntu牛班图 阅读(849) 评论(0) 推荐(0) 编辑
摘要: #install on centos7.* setup1: yum -y install libleveldb-dev libleveldb1 nodejs-legacy npm setup2: yum groupinstall 'Development Tools' setup3: npm ins 阅读全文
posted @ 2017-04-19 15:32 nbuntu牛班图 阅读(235) 评论(0) 推荐(0) 编辑
摘要: ###this is deploysql.sh### #!/bin/bashLANG="en_US.UTF-8"date=`date +'%Y%m%d_%H%M%S'`user=rootpassword=yourpasswordcd /root/SQLtest/svn upif [ $? = 0 ] 阅读全文
posted @ 2016-08-09 14:43 nbuntu牛班图 阅读(844) 评论(0) 推荐(0) 编辑
摘要: 此时你已经可以写一个更长更复杂的 Python 程序,是时候讨论一下 编码风格 了。大多数语言可以写(或者更明白地说, 格式化 )作几种不同的风格。有些比其它的更好读。让你的代码对别人更易读是个好想法,养成良好的编码风格对此很有帮助。 对于 Python, PEP 8 引入了大多数项目遵循的风格指导 阅读全文
posted @ 2016-08-09 14:38 nbuntu牛班图 阅读(223) 评论(0) 推荐(0) 编辑
摘要: CI持续集成—记一次jenkins安装及ldap配置 在centos上安装jenkins: On RPM-based distributions, such as Red Hat Enterprise Linux (RHEL), CentOS, Fedora or Scientific Linux, 阅读全文
posted @ 2016-07-29 11:16 nbuntu牛班图 阅读(1275) 评论(0) 推荐(0) 编辑
摘要: mysql主从同步失败 slave: #查看同步状态 mysql> show slave status \G; Slave_IO_Running: Yes Slave_SQL_Running: No Last_Errno: 1062 Last_Error: Error 'Duplicate entr 阅读全文
posted @ 2016-07-26 14:40 nbuntu牛班图 阅读(1567) 评论(0) 推荐(0) 编辑
摘要: 一、系统优化 1.禁用linux内核THP透明大页 WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issu 阅读全文
posted @ 2016-07-22 15:07 nbuntu牛班图 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 服务器性能测试 目录 一.磁盘性能... 1 1.Iozone的安装和使用... 1 2. fio的安装与使用... 2 二.CPU稳定性测试... 3 三.基准测试工具sysbench. 3 四.网络性能测试... 10 1. iperf的安装与使用... 10 一.磁盘性能 软件:Iozone 阅读全文
posted @ 2016-06-28 13:02 nbuntu牛班图 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Ubuntu Installation Guide Abstract This document contains installation instructions for the Ubuntu 12.04 system (codename “‘Precise Pangolin’”), for t 阅读全文
posted @ 2016-06-13 11:58 nbuntu牛班图 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 在ndb上可以建立两种类型的表: 1、内存表:所有数据(包括index)都在内存中。同时会在磁盘上保存数据,因此不用担心数据会丢失,datanode会在启动的时候把数据加载到内存。 2、磁盘表:仅主键、索引字段保存在内存中,其他字段保存在磁盘文件里。-- MySQL 5.7 CLUSTER NDB 阅读全文
posted @ 2016-06-13 11:54 nbuntu牛班图 阅读(642) 评论(0) 推荐(0) 编辑