工具箱
提供了数据迁移,性能测试等各种工具。
进入工具箱页面,在工具列表内运行,运行结果在下方历史记录处显示。
运行结束后,在响应结果中查看执行详细信息。

服务器基础测试

按照提示在被测试服务器上安装。
命令行运行
参考提示
BenchmarkSQL性能测试
测试数据库 OLTP 事务并发执行能力
在工具箱页面中,运行BenchmarkSQL性能测试,根据页面提示输入目标账号信息,执行 即可。

刷新页面,等待任务执行完成,点击查看详情可显示执行结果。

命令行运行
下载 https://sourceforge.net/projects/benchmarksql/yum install ant java -y #安装java 和 anttar zxf benchmarksql.tar.gz && cd benchmarksql && ant #解压并编译cd run/ && cp sample.postgresql.properties pg #准备配置文件
cat pg
db=postgres
driver=org.postgresql.Driver
conn=jdbc:postgresql://localhost:5412/postgres?prepareThreshold=1&batchMode=on&fetchsize=10&loggerLevel=off
//被测数据库连接串
user=root
//被测数据库账号
password=root
//被测数据库密码
warehouses=500
//装入数据大小,实际环境建议500或1000仓
loadWorkers=32
//装载数据进程数
terminals=30
// 并发数
runTxnsPerTerminal=0
// 不限制,使用runmins用时间控制
runMins=30
// 运行分钟数,实际环境建议30分钟以上,多做几轮测试
limitTxnsPerMin=0
//不限制,使用runmins用时间控制
// Set to true to run in 4.x compatible mode. Set to false to use the
// entire configured database evenly.
terminalWarehouseFixed=true
// The following five values must add up to 100
// The internal default percentages mathc the probabilities of a
// 23 Card Deck implementation, as described in the TPC-C Specs.
// The values below match the pre-5.1 defaults.
newOrderWeight=45
paymentWeight=43
orderStatusWeight=4
deliveryWeight=4
stockLevelWeight=4
// 收集服务器信息
resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS
osCollectorScript=./misc/os_collector_linux.py
osCollectorInterval=1
//osCollectorSSHAddr=root@localhost
//osCollectorDevices=net_eth0 blk_sda
./runDatabaseBuild.sh pg #装入数据./runBenchmark.sh pg #开始压测,会生成 my_result_xxx/ 目录
#重点关注指标 tpmC (NewOrders),每分钟事务数(tpmC)。
#生成html报告
yum install R -y
./generateGraphs.sh my_result_xxx
./generateReport.sh my_result_xxx
数据同步迁移
Oracle 零停机实时同步到udb;
Mysql 部署从实例,源端使用从实例,利用 stop slave;start salve; 间接零停机实时同步到udb;
Pg 零停机实时同步到udb;

填写源端和目标端信息
参考注意事项登录管理平台服务器执行 docker logs -f --tail 100 ora2udb 参照提示信息开启数据同步
数据校验
用于oracle,pg,mysql数据库表级数据一致性校验.
添加实例

连接实例

选择校验表

校验结果页面查看详情

命令行运行
无