Skip to content

updated image #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ From the benchmark/tests directory:
> node loca-extract
> node local-transfer
```

Run all benchamrks:
```bash
> npm run benchmark
Expand All @@ -33,8 +33,20 @@ TODO:

Results will be writen to out directory under /tests

## Setup Grafana and send results to InfluxDB
## Initial Setup Grafana InfluxDB
```bash
> docker-compose -f infrastructure/local/docker-compose.yaml up
```
Open http://localhost:3000/ in a browser. The default username/password combination is admin/admin. You will be asked to change that password after initial login. Setup the datasource with type `influxDB`and use `http://influxdb:8086` as the URL. Next import the dashboard from `infrastructure/grafana/dashboard.json` by hovering over the `+` icon on the left of your screen.

![Grafana import dashboard](./docs/images/import-hover.png)

* All of the Grafana configuration is stored in a folder adjacent to the this project's folder named `/data/grafana`.
* The data for influxDB is stored in a folder adjacent to the this project's folder named `/data/influxdb`.

## Run dashboard locally and send results to InfluxDB

If you're not running it yet:
```bash
> docker-compose -f infrastructure/local/docker-compose.yaml up
```
Expand All @@ -44,10 +56,16 @@ Keep docker running and in another tab run:
> STAGE=local LOG_PRETTY=true node runner/index.js
```

To view the Grafan dashboard: http://localhost:3000/
To view the Grafana dashboard: http://localhost:3000/

Use the default account admin/admin to login

## Production architecture

The diagram below describes the production setup.

![Production diagram](./docs/images/prod-infrastructure.png)

## Test description

Each test uses a small file ( 200 bytes ) and large file ( 1.2 MB ) and actions on empty repo vs populated repo.
Expand Down
Binary file added docs/images/import-hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/prod-infrastructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/performance infrastructure.png
Binary file not shown.
Loading