私信发送成功
检测到您已登录技术前沿网,是否 一键登录码云 ?
Watch Star Fork

码云极速下载 / PaxosStore

此项目是为了提升国内下载速度的镜像仓库,每日同步一次,原项目仓库地址为 https://github.com/Tencent/paxosstore。
PaxosStore 是一个在跨园区数据中心间同步复制,提供灵活的数据模式和访问接口,并支持单表亿行,具备快速伸缩能力,低延迟低成本,强一致性和高可用的分布式存储系统
克隆/下载
dengos 最后提交于 2017-09-18 11:19 . Merge pull request 12 from zjyjer/master
2017-08-25 17:53
2017-09-07 19:51
Loading...
README.md 941 Bytes

certain

Certain is an asynchronous implementation of paxos log.

build simple_srv and simple_cli

1) sh third/autobuild.sh;

2) make -j 4 example;

play

For server:

Use '-i' and 'e' to override LocalAcceptorID and ExtEndpoint in the configure.
If AcceptorNum is 3 in certain.conf, each server(process) run as:

./simple_srv -c example/example.conf -i 0 -e 127.0.0.1:38240 &

./simple_srv -c example/example.conf -i 1 -e 127.0.0.1:38241 &

./simple_srv -c example/example.conf -i 2 -e 127.0.0.1:38242 &

For client:

~>./simple_cli 127.0.0.1 38240

Get xxx
cmd: cmd 3 uuid 409927680 E(560266, 1) scmd 1 key xxx val.size 0 val  ret -7000 // Not Found

Set xxx yyy
cmd: cmd 3 uuid 409927682 E(560266, 1) scmd 2 key xxx val.size 3 val yyy ret 0 // OK

Get xxx
cmd: cmd 3 uuid 409927683 E(560266, 2) scmd 1 key xxx val.size 3 val yyy ret 0 // OK

To have fun, you may kill some of them, and then restart.

Float_left Icon_close