Compare commits

..

No commits in common. "81e9738386bebceeadca70570f60f92d18a2dae5" and "f81495be999642446f289e3ebdeefe0c0c63c654" have entirely different histories.

2 changed files with 13 additions and 14 deletions

View File

@ -145,7 +145,7 @@ curl -X POST -d '{"asn": "5577", "period": 5}' https://bgpranking-ng.circl.lu/js
# Server Installation (if you want to run your own)
**IMPORTANT**: Use [poetry](https://github.com/python-poetry/poetry#installation)
**IMPORTANT**: Use [pipenv](https://pipenv.readthedocs.io/en/latest/)
**NOTE**: Yes, it requires python3.6+. No, it will never support anything older.
@ -159,35 +159,34 @@ make
make test
cd ..
```
**Note**: If it fails, have a look at [the documentation](https://github.com/redis/redis#building-redis).
## Install kvrocks
## Install ardb
```bash
git clone https://github.com/KvrocksLabs/kvrocks.git
cd kvrocks
git checkout 2.5
./x.py build
git clone https://github.com/yinqiwen/ardb.git
cd ardb
DISABLE_WARNING_AS_ERROR=1 make # ardb (more precisely rocksdb) doesn't compile on ubuntu 18.04 unless you disable warning as error
cd ..
```
**Note**: If it fails, have a look at [the documentation](https://github.com/apache/kvrocks#build-and-run-kvrocks).
## Install & run BGP Ranking
```bash
git clone https://github.com/D4-project/BGP-Ranking.git
cd BGP-Ranking
poetry install
pipenv install
echo BGPRANKING_HOME="'`pwd`'" > .env
poetry shell
pipenv shell
# Starts all the backend
start
start.py
# Start the web interface
start_website.py
```
## Shutdown BGP Ranking
```bash
stop
stop.py
```
# Directory structure
@ -281,7 +280,7 @@ And the following keys:
<asn>|v6|ipcount = <Total amount of IP v6 addresses originating this AS>
```
## Long term storage (kvrocks, port 5188)
## Long term storage (ardb, port 16579)
*Usage*: Stores the IPs with the required meta informations required for ranking.

View File

@ -3,4 +3,4 @@
set -e
set -x
../../kvrocks/build/kvrocks -c kvrocks.conf
../../kvrocks/src/kvrocks -c kvrocks.conf