GBase8s_MPP_benchmark测试_第1页
GBase8s_MPP_benchmark测试_第2页
GBase8s_MPP_benchmark测试_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Benchmark测试1,运行条件 1,benchmark可以运行在集群节点上,也可以运行在集群节点外,但要注意如果运行在集群节点中,可能会影响测试性能。 2,运行benchmark的节点要求java必须1.7版本以上。2,准备过程 1,集群安装并初始化完毕。 2,在集群中创建测试库: create database benchmarksql; 3,在benchmark文件夹下的run文件夹下配置连接配置文件: vim props.8smppdriver=com.gbase.jdbc.Driver conn=jdbc:gbase:/192.168.155.203:5258/benchmarks

2、ql user=gbase password=gbase20110531 warehouses=400 terminals=1 /To run specified transactions per terminal- runMins must equal zero runTxnsPerTerminal=0 /To run for specified minutes- runTxnsPerTerminal must equal zero runMins=1 /Number of total transactions per minute limitTxnsPerMin=0 /The follow

3、ing five values must add up to 100 /The default percentages of 45, 43, 4, 4 & 4 match the TPC-C spec newOrderWeight=45 paymentWeight=43 orderStatusWeight=4 deliveryWeight=4 stockLevelWeight=4 4,在benchmark下的run文件夹中编写建表语句文件sqlTableCreate.8smpp,可参考样例根据实际分片情况进行编写(样例见附件)。5,使用benchmark工具进行建表: ./runSQL

4、.sh props.8smpp sqlTableCreate.8smpp6,加载数据 加载数据有两种方式: 1)集群层加载:(加载速度较慢) ./runLoader.sh props.8smpp numwarehouses 100 2)生成数据文件后在gbase8s加载:(加载速度快,步骤较多)· 生成数据文件: ./runLoader.sh props.8smpp numWarehouses 100 fileLocation /tmp/csv/· 数据切分: 数据生成完成后使用数据切分脚本(见附件sp.sh),按照建表数据分布情况进行切分,然后拷贝到各个节点使用 。

5、83; 修改日志模式: 加载前将数据库改成无日志模式,否则会报错:ontape -s -N benchmarksql· 因为生成数据文件中datetime类型与集群下发gbase8s创建的datetime类型有差异,加载数据文件前需要修改列属性: alter table customer modify c_since datetime year to fraction(3) default current year to fraction(3) not null; alter table history modify h_date datetime year to fraction(

6、3) default current year to fraction(3) not null; alter table oorder modify o_entry_d datetime year to fraction(3) default current year to fraction(3) not null; alter table order_line modify ol_delivery_d datetime year to fraction(3) default current year to fraction(3) not null;· 各个节点进行加载: gbase

7、8s load命令进行加载:dbaccess benchmarksql load.sql(load.sql详见附件)。· 修改日志模式: 加载完成后再将数据库改回日志模式:ontape -s -U benchmarksql 7,在gbase8s上创建存储过程,防止性能测试过程中的锁冲突 dbaccess benchmarksql - > create procedure public.sysdbopen() set lock mode to wait 5; end procedure;8,在各gbase8s上创建索引 dbaccess benchmarksql idx.sql

8、(idx.sql见附件)9,关于gbase8s性能优化的一些建议参数 以下参数都在$GBASEDBTDIR/etc/onconfig.instanceName中: 1,MULTIPROCESSOR 1 (1表示gbase8t使用多核性能,0表示关闭,建议置1) 2,VPCLASS cpu,num=2,noage (num表示gbase8t VP数量,建议服务器cpu核数-1) 3,BUFFERPOOL size=8k,buffers=50000,lrus=8,lru_min_dirty=50,lru_max_dirty=60 (buffer pool的大小建议根据服务器内存大小调整)3,benchmark性能测试修改benchmarksql/run/文件夹下的连接配置文件:· 修改连接串: conn=jdbc:gbase:/192.168.155.203:5258/benchmarksql 如果使用负载均衡需要修改gcluster IP列表: conn=jdbc:gbase:/192.168.155.203:5258/benchmarksql?failoverEnable=true&hostList=192.168.155.204,192.168.155.205,192.168.155.206&gclusterId=gc11&#

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论