Dqlite高可用的 SQLite 數(shù)據(jù)庫
Dqlite 是一個快速、嵌入式、持久化的 SQL 數(shù)據(jù)庫,具有Raft共識,非常適合容錯的IoT和Edge設(shè)備。
Dqlite(“分布式SQLite”)將SQLite擴(kuò)展到一組計算機(jī)上,具有自動故障轉(zhuǎn)移和高可用性,以保持應(yīng)用程序的運(yùn)行。 它使用C-Raft(C語言中優(yōu)化的Raft實現(xiàn))來獲得高性能事務(wù)共識和容錯,同時保留了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
構(gòu)建準(zhǔn)備:
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 ..
構(gòu)建:
autoreconf -i
./configure
make
sudo make install評論
圖片
表情
