小贝壳爸爸

天桥扛把子


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

TPCC测试cockroachdb方法

发表于 2017-10-12 | 分类于 cockroachdb

目前cockroachdb没有专门的TPC-C测试工具,开发人员正在开发过程中:

@louishust there’s a work-in-progress program here: http://github.com/cockroachdb/loadgen - however there are several strong caveats that you should know about. it doesn’t implement think-time or wait-time yet, nor does it cap the number of workers per warehouse, so it’s not really quite tpc-c. you can think of it as “tpcc at maximum concurrency”, or a benchmark that stresses contention more than scalability.
If you’re really looking to check how CockroachDB performs on tpc-c as the world understands it, you’ll need to wait a little bit until we finish up the work of making the benchmark accurate
we’re actively working on improving the benchmark so it shouldn’t be too long - maybe a week or two

阅读全文 »

centos7安装pg10

发表于 2017-10-12 | 分类于 postgresql

安装

1
2
3
4
5
6
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm
yum install postgresql10
yum install postgresql10-server
/usr/pgsql-10/bin/postgresql10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10
阅读全文 »

cockroachdb配置ntp服务

发表于 2017-10-11 | 分类于 cockroachdb

在不同机器上部署cockroachdb时,必须同步时间,最好用统一的ntp server定期同步时间,如果节点之间时间差过大,节点很容易被踢出集群。

阅读全文 »

psql连接cockroachdb

发表于 2017-10-11 | 分类于 cockroachdb
1
psql -p26257 -hlocalhost -Uroot
阅读全文 »

cockroachdb备份功能使用

发表于 2017-10-10 | 分类于 cockroachdb

备份

1
BACKUP DATABASE test TO 'nodelocal:/tmp/back';
阅读全文 »

Cockroachdb开启企业功能

发表于 2017-10-10 | 分类于 cockroachdb
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/pkg/ccl/utilccl/license_check.go b/pkg/ccl/utilccl/license_check.go
index ce56977..ba0ac6f 100644
--- a/pkg/ccl/utilccl/license_check.go
+++ b/pkg/ccl/utilccl/license_check.go
@@ -33,7 +33,7 @@ func init() {
enterpriseLicense.Hide()
}
-var testingEnterpriseEnabled = false
+var testingEnterpriseEnabled = true
// TestingEnableEnterprise allows overriding the license check in tests.
func TestingEnableEnterprise() func() {
阅读全文 »

tmux使用

发表于 2017-10-06 | 分类于 linux

会话操作

  • tmux new -s dev: 新建一个名为dev的会话
  • ctrl+a+d: detach当前会话
  • tmux ls: 查看会话列表
  • tmux attach -t dev: 返回到dev会话
  • ctrl+a+$: 重命名当前会话
阅读全文 »

gdb使用

发表于 2017-09-27 | 分类于 linux

attach进程生成core

1
2
3
4
gdb
(gdb) attach pid
(gdb) gcore
(gdb) detach
阅读全文 »

MySQL源码学习002--MySQL复制原理

发表于 2017-09-27 | 分类于 mysql , mysql源码学习

Replication作为MySQL最重要的组件,绝对的高可用的大腿,运维中最容易出现问题的也是复制,复制延迟,主从切换丢失数据,了解replication的原理, 才能更大胆的做好运维。

阅读全文 »

MySQL无索引行级复制延迟巨大

发表于 2017-09-26 | 分类于 mysql , mysql运维

现场问题

rowslow

阅读全文 »
1…5678
Louis

Louis

记录工作和生活点滴

75 日志
22 分类
108 标签
GitHub
© 2018 true
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.3