|
| 1 | +############################################################ |
| 2 | +# Copyright (c) 2015-now, TigerGraph Inc. |
| 3 | +# All rights reserved |
| 4 | +# It is provided as it is for benchmark reproducible purpose. |
| 5 | +# anyone can use it for benchmark purpose with the |
| 6 | +# acknowledgement to TigerGraph. |
| 7 | +# Author: Mingxi Wu mingxi.wu@tigergraph.com |
| 8 | +############################################################ |
| 9 | + |
| 10 | +This article documents the details on how to reproduce the graph database benchmark result on Neo4j. |
| 11 | + |
| 12 | +Data Sets |
| 13 | +=========== |
| 14 | +- graph500 edge file: http://service.tigergraph.com/download/benchmark/dataset/graph500-22/graph500-22 |
| 15 | +- graph500 vertex file: http://service.tigergraph.com/download/benchmark/dataset/graph500-22/graph500-22_unique_node |
| 16 | + |
| 17 | +- twitter edge file: http://service.tigergraph.com/download/benchmark/dataset/twitter/twitter_rv.tar.gz |
| 18 | +- twitter vertex file: http://service.tigergraph.com/download/benchmark/dataset/twitter/twitter_rv.net_unique_node |
| 19 | + |
| 20 | +Hardware & Major enviroment |
| 21 | +================================ |
| 22 | +- Amazon EC2 machine r4.8xlarge |
| 23 | +- OS Ubuntu 18.04.1 LTS |
| 24 | +- Install the required Python modules with the following commands |
| 25 | +$ sudo apt-get update |
| 26 | +$ sudo apt-get install build-essential cmake python-pip python-dev |
| 27 | +$ sudo pip install --upgrade pip |
| 28 | +$ sudo pip install redis click requests config |
| 29 | + |
| 30 | + |
| 31 | +- 32 vCPUs |
| 32 | +- 244 GiB memory |
| 33 | +- attached a 250G EBS-optimized Provisioned IOPS SSD (IO1), IOPS we set is 50 IOPS/GiB |
| 34 | + |
| 35 | +RedisGraph Version |
| 36 | +============== |
| 37 | +Redis version 5.0.3 |
| 38 | +RedisGraph module v1.0.0 |
| 39 | + |
| 40 | +Install Redis and RedisGraph |
| 41 | +=============== |
| 42 | +git clone https://github.com/antirez/redis.git |
| 43 | +cd redis |
| 44 | +make |
| 45 | +sudo apt-get install tcl |
| 46 | +make test |
| 47 | +git clone https://github.com/RedisLabsModules/RedisGraph.git |
| 48 | +cd RedisGraph |
| 49 | +git checkout v1.0.0 |
| 50 | +make |
| 51 | + |
| 52 | +Copy benchmark files: |
| 53 | +====================== |
| 54 | +git clone https://github.com/RedisGraph/graph-database-benchmark.git |
| 55 | + |
| 56 | +Launching Redis |
| 57 | +=============== |
| 58 | +# start server. |
| 59 | +~/redis/src/redis-server --loadmodule ~/RedisGraph/src/redisgraph.so & |
| 60 | + |
| 61 | +# to stop server |
| 62 | +#redis-cli shutdown |
| 63 | + |
| 64 | +Loading data |
| 65 | +============== |
| 66 | +nohup ./redisgraph_load_graph500.sh path/to/redisgraph path/to/graph500/data |
| 67 | +nohup ./redisgraph_load_twitter.sh path/to/redisgraph path/to/twitter/data |
| 68 | + |
| 69 | +Example: ./redisgraph_load_graph500.sh ~/RedisGraph/ . |
| 70 | + |
| 71 | +Run K-hop neighborhood count benchmark |
| 72 | +================ |
| 73 | +# Change graph500-22-seed and twitter_rv.net-seed path to your seed file path. |
| 74 | +# Results will be stored in "result_redisgraph" output directory. |
| 75 | + |
| 76 | +Graph500 |
| 77 | +----------------- |
| 78 | +# 300 seeds, depth 1 |
| 79 | +nohup python kn.py -g graph500 -s graph500-22-seed -c 300 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 1 |
| 80 | +# 300 seeds, depth 2 |
| 81 | +nohup python kn.py -g graph500 -s graph500-22-seed -c 300 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 2 |
| 82 | +# 10 seeds, depth 3 |
| 83 | +nohup python kn.py -g graph500 -s graph500-22-seed -c 10 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 3 |
| 84 | +# 10 seeds, depth 6 |
| 85 | +nohup python kn.py -g graph500 -s graph500-22-seed -c 10 -d 6 -p redisgraph -l graph500-22_unique_node -t 22 -i 6 |
| 86 | + |
| 87 | +Twitter |
| 88 | +------------- |
| 89 | +# 300 seeds, depth 1 |
| 90 | +nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 300 -d 6 -p redisgraph -l twitter_rv_net_unique_node -t 22 -i 1 |
| 91 | +# 300 seeds, depth 2 |
| 92 | +nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 300 -d 6 -p redisgraph -l twitter_rv_net_unique_node -t 22 -i 2 |
| 93 | +# 10 seeds, depth 3 |
| 94 | +nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 10 -d 6 -p redisgraph -l twitter_rv_net_unique_node -t 22 -i 3 |
| 95 | +# 10 seeds, depth 6 |
| 96 | +nohup python kn.py -g twitter_rv -s twitter_rv_net-seed -c 10 -d 6 -p redisgraph -l twitter_rv_net_unique_node -t 22 -i 6 |
0 commit comments