This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
Running linkbench with rocksdb
jiangxw edited this page Jan 17, 2014
·
10 revisions
STARTING THE ROCKSDB SERVER
You can start the rocksDB server for nodes&links by running the following 2 commands separately. You always have to start both the servers even if you plan to test only one of nodes or links.
* _bin/rocks/server/rocks_server_thrift2 --standalone --create_if_missing --no_shard_mode --data_dir /tmp --db linkdb --service_name linkdb --threads 100 --port 9090
The sst and Log files will be written in /tmp/linkdb.
LOADING DATA FROM A JAVA CLIENT WITH LINKBENCH
export ANT_OPTS="-Dhttp.proxyHost=172.31.255.99 -Dhttp.proxyPort=8080"
~/linkbench/ant dist
~/linkbench/bin/linkbench -c config/LinkConfigRocksDb.properties -l
You can change the
- 'loaders' field in the config file mentioned above to use more/less loader threads for the load phase,
- host/port/dbid information in the config file for connecting to the server
- maxid1 field in FBWorkload.properties to specify the number of nodes to be laoded
- nlinks_func in FBWorkload.p... to change the number of links loaded per node
PLAYING WITH THE LOADED DATA IN ROCKSDB
Use the "ldb" tool which can be run like:
* /home/engshare/third-party/gcc-4.8.1-glibc-2.17/rocksdb/rocksdb-2.6/072d9dc/tools/ldb dump --db=/var/facebook/rocks/linkdb --output_hex
(using "query" instead of "dump" above and omitting the "output-hex" will let you issue queries to rocksdb)