[WIP] RedisRaft 测试相关信息汇总 #273
Replies: 5 comments 1 reply
-
关于使用从官方仓库看测试可以分为两大类:
一、功能测试基于docker运行测试case 先运行一个容器
进入容器后安装一些工具
拉取redis、redisraft代码并编译
运行测试case
测试结果
二、正确性测试2.1说明基于Jepsen构建
2.2 在docker中运行
执行完前四个命令行后会发现启动了如下容器: 查看Dockerfile脚本发现,在 control 容器中你实际是部署了 https://github.com/redislabs/jepsen-redisraft ,这个仓库是使用Clojure编写的、基于jepsen的、用来测试redisraft的工具。 运行起来后可以通过网页 http://127.0.0.1:8080/ 查看
2.3 参考 |
Beta Was this translation helpful? Give feedback.
-
关于协议Redisraft LICENSE (SSPLv1.txt、RSALv2.txt)是否会影响我们的选择?
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
关于 jepsen-redisraft 的测试说明
关于 jepsen-redisraft 仓库的说明![]() 0、程序入口
1、【编译】如何编译 redis、redis-raft
2、【启动集群】如何启动 raft cluster 集群
3、【验证数据】如何生成数据、如何写数据、如何验证数据
4、【注入故障】如何注入故障
5、【测试框架】put it together https://blog.csdn.net/FL63Zv9Zou86950w/article/details/117457782 以分布式数据库集群为例,Jepsen的工作大致包含以下几步:
语法、框架学习
数据验证相关elle 数据验证工具:https://github.com/jepsen-io/elle
elle-cli 支持更多业务模型:https://github.com/ligurio/elle-cli
history 文件格式(jepsen使用): https://github.com/jepsen-io/history
EDN 文件格式(elle使用): https://github.com/edn-format/edn
JSON -> EDN 文件格式转换:https://github.com/borkdude/jet
其他启动交互式命令行
调用 list-append/gen 接口
将 gen 结果格式化展示
|
Beta Was this translation helpful? Give feedback.
-
关于单元测试的说明代码目录 ![]() 主要测试了:
![]() |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
目标
参考地址:https://github.com/RedisLabs/redisraft
当前进展&未来规划
其他
Beta Was this translation helpful? Give feedback.
All reactions