摘要: 各节点架构 (说明:生产环境有两个节点可以组成一套完整集群,我是测试环境,因此对于manager以及atlas和binlog server都是单点,如果生产环境,相应的将manager以及atlas和binlog server每个节点都部署即可) 安装步骤 10.80.8.89操作命令 1.#增加m 阅读全文
posted @ 2016-05-18 20:31 高权 阅读(1789) 评论(0) 推荐(0) 编辑
  2016年9月21日
摘要: root@localhost:(none) 06:22:17 pager grep seq PAGER set to 'grep seq' root@localhost:(none) 06:30:33 show engine innodb status\G select sleep(60); sho 阅读全文
posted @ 2016-09-21 18:39 高权 阅读(4417) 评论(1) 推荐(0) 编辑
  2016年9月5日
摘要: [root@iZ25oat874uZ data] time dd if=/dev/zero of=/var/test bs=8k count=1000000 1000000+0 records in 1000000+0 records out 8192000000 bytes (8.2 GB) co 阅读全文
posted @ 2016-09-05 17:23 高权 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 安装 wget http://download.oracle.com/otn pub/java/jdk/7u40 b43/jdk 7u40 linux x64.rpm 注意此处到官网下载后上传,需要验证 wget http://ftp.heanet.ie/mirrors/www.apache.org 阅读全文
posted @ 2016-09-05 16:12 高权 阅读(465) 评论(0) 推荐(0) 编辑
  2016年8月31日
摘要: read_buffer_size 默认大小:128KB 最大:2GB 最小:8KB 增量:必须为4KB的整数倍,如果配置的不是整数倍,会向下取整 用途: 1.MyISAM表顺序扫描提供的缓存 2.所有存储引擎当使用到order by 时缓存索引到该缓存 3.所有存储引擎当批量插入分区时会使用到该缓存 阅读全文
posted @ 2016-08-31 18:08 高权 阅读(3596) 评论(0) 推荐(0) 编辑
  2016年8月30日
摘要: create procedure pFastCreateNums (cnt int unsigned) begin declare s int unsigned default 1; truncate table nums; insert into nums select s; while s 2 阅读全文
posted @ 2016-08-30 19:56 高权 阅读(2359) 评论(0) 推荐(0) 编辑
摘要: create table t1(a int unsigned,b int unsigned); insert into t1 select 1,2; select 1 2 from t1; Error Code: 1690. BIGINT UNSIGNED value is out of range 阅读全文
posted @ 2016-08-30 14:47 高权 阅读(130) 评论(0) 推荐(0) 编辑
  2016年8月17日
摘要: 规划 副本集,其中加了个隐藏节点,用来做备份,所以备份脚本直接在隐藏节点做,目前数据不大,直接本机磁盘存储,后续如果数据集大,那么在本地存最近一天的备份,远程根据需求存储几天的备份 创建备份用户 db.createUser( { user: "backup", pwd: "password", ro 阅读全文
posted @ 2016-08-17 21:29 高权 阅读(519) 评论(0) 推荐(0) 编辑
  2016年8月16日
摘要: 日志输出时区问题 输出日志有这些信息 2016 08 16T02:23:09.831827Z 112241 [Note] Aborted connection 112241 to db: 'test' user: 'admin_logs' host: 'ip' (Got an error readi 阅读全文
posted @ 2016-08-16 10:38 高权 阅读(14766) 评论(1) 推荐(0) 编辑
  2016年8月4日
摘要: 节点分配 10.110.18.89 10.110.18.90 10.110.18.94 配置文件 systemLog: destination: file path: "/data/mongodb/log/system.log" quiet: true logAppend: true logRota 阅读全文
posted @ 2016-08-04 11:34 高权 阅读(320) 评论(0) 推荐(0) 编辑
  2016年8月3日
摘要: 说明:创建索引时,列名:int 中的int数字指的是正序或者倒序,如果是1表明是正序,-1表示倒序 1、查询collection上的索引 db.users.getIndexes() 2、查询当前的db的所有collection所拥有的索引 3、创建索引(background使创建索引的过程在后台完成 阅读全文
posted @ 2016-08-03 17:44 高权 阅读(230) 评论(0) 推荐(0) 编辑