Dqlite高可用的 SQLite 数据库

联合创作 · 2023-10-01 02:26

Dqlite 是一个快速、嵌入式、持久化的 SQL 数据库,具有Raft共识,非常适合容错的IoT和Edge设备。

Dqlite(“分布式SQLite”)将SQLite扩展到一组计算机上,具有自动故障转移和高可用性,以保持应用程序的运行。 它使用C-Raft(C语言中优化的Raft实现)来获得高性能事务共识和容错,同时保留了SQlite出色的效率和极小的占用空间。

Dqlite 同时也提供 Go 语言的版本,请看 https://gitee.com/mirrors/go-dqlite

安装:

sudo add-apt-repository ppa:dqlite/v1
sudo apt-get update
sudo apt-get install libdqlite-dev

构建准备:

git clone --depth 100 https://gitee.com/mirrors/dqlite.git
cd sqlite
./configure --enable-replication
make
sudo make install
cd ..
git clone https://gitee.com/mirrors/libco.git
cd libco
make
sudo make install
cd ..
git clone https://gitee.com/mirrors/raft.git
cd raft
autoreconf -i
./configure
make
sudo make install
cd ..

 构建:

autoreconf -i
./configure
make
sudo make install
浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报