-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Execute this series of commands to compile MongoDB with RocksDB storage engine: | ||
``` | ||
install compression libraries (zlib, bzip2, snappy): | ||
sudo apt-get install zlib1g-dev; sudo apt-get install libbz2-dev; sudo apt-get install libsnappy-dev | ||
# get rocksdb | ||
git clone https://github.com/wolfkdy/rocksdb.git | ||
git checkout fb5.18_totdb | ||
# compile rocksdb | ||
cd rocksdb; USE_RTTI=1 CFLAGS=-fPIC make static_lib; sudo INSTALL_PATH=/usr make install; cd .. | ||
# get mongo | ||
git clone https://github.com/mongodb/mongo.git | ||
git checkout tags/r4.2.5 -b branch_tags_4.2.5 | ||
# get mongorocks | ||
git clone https://github.com/mongodb-partners/mongo-rocks | ||
git checkout v4.2.5_rc2 | ||
# add rocksdb module to mongo | ||
mkdir -p mongo/src/mongo/db/modules/ | ||
ln -sf ~/mongo-rocks mongo/src/mongo/db/modules/rocks | ||
# compile mongo | ||
cd mongo; scons | ||
``` | ||
Start `mongod` using the `--storageEngine=rocksdb` option. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters