微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Dqlite 高可用的 SQLite 数据库

程序名称:Dqlite

授权协议: Apache

操作系统: Linux

开发语言: C/C++

Dqlite 介绍

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

Dqlite 官网

https://dqlite.io/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐