This post will discuss how to get RocksDB from Docker containers to use with Percona Server for MongoDB.
With our Percona Server for MongoDB 3.2 release, we made RocksDB a first class citizen. With this newly-available engine, we want to make it easy for everybody interested to try it. So it is now available in docker images from https://hub.docker.com/r/percona/percona-server-mongodb/.
If you have docker running, starting RocksDB is very easy:
1 docker run -d -p 27017:27017 percona/percona-server-mongodb --storageEngine=rocksdb
Then run:
|
1 |
mongo --eval "printjson(db.serverStatus())" |
You should see this as part of the output:
|
1 |
"storageEngine" : {<br> "name" : "rocksdb",<br> "supportsCommittedReads" : true,<br> "persistent" : true<br> }, |
Give it a try, and let us know how RocksDB works for you!