-
Notifications
You must be signed in to change notification settings - Fork 629
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
[ft-bencmark] move ft-benchmark scripts to separate directory #11644
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no context so I'll let @mooori do the proper review. In the meantime you have my codeowner stamp :)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11644 +/- ##
==========================================
- Coverage 71.64% 71.63% -0.02%
==========================================
Files 787 787
Lines 160969 160969
Branches 160969 160969
==========================================
- Hits 115333 115310 -23
- Misses 40602 40615 +13
- Partials 5034 5044 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the spelling/grammar errors, otherwise LGTM. Would be good if you could run this through a spell checker before merging.
@@ -0,0 +1,22 @@ | |||
# FT bencmark scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# FT bencmark scripts | |
# FT benchmark scripts |
## Quick start | ||
|
||
### Prerequirements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Quick start | |
### Prerequirements | |
## Requirements |
If there's no other section under ## Quick start
then I'd just lift "Requirements" one level up.
|
||
### Prerequirements | ||
|
||
First, make sure that you setted up your db access. About it you can read [here](https://github.com/near/nearcore/blob/master/benchmarks/continous/db/tool/README.md#requirements). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First, make sure that you setted up your db access. About it you can read [here](https://github.com/near/nearcore/blob/master/benchmarks/continous/db/tool/README.md#requirements). | |
First, make sure that you set up your db access. About it you can read [here](https://github.com/near/nearcore/blob/master/benchmarks/continous/db/tool/README.md#requirements). |
For running a benchmark you can just use (from `nearcore/`) `python3 benchmarks/continous/scripts/run-ft-benchmark.py`. This command will launch neard, locust traffic generator, collect data and send it to our db connected to grafana. Using this script you also can change parameters of your run: | ||
|
||
```bash | ||
python3 benchmarks/continous/scripts/run-ft-benchmark.py --time <BENCHMARK_DURATION> --users <AMOUNT_OF_USERS> --shards <SHARDS> --nodes <NODES> --rump-up <RUMP_UP_RATE> --user <ACTOR_NAME> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python3 benchmarks/continous/scripts/run-ft-benchmark.py --time <BENCHMARK_DURATION> --users <AMOUNT_OF_USERS> --shards <SHARDS> --nodes <NODES> --rump-up <RUMP_UP_RATE> --user <ACTOR_NAME> | |
python3 benchmarks/continous/scripts/run-ft-benchmark.py \ | |
--time <BENCHMARK_DURATION> \ | |
--users <AMOUNT_OF_USERS> \ | |
--shards <SHARDS> \ | |
--nodes <NODES> \ | |
--rump-up <RUMP_UP_RATE> \ | |
--user <ACTOR_NAME> |
Makes parsing the command easier IMO.
python3 benchmarks/continous/scripts/run-ft-benchmark.py --time <BENCHMARK_DURATION> --users <AMOUNT_OF_USERS> --shards <SHARDS> --nodes <NODES> --rump-up <RUMP_UP_RATE> --user <ACTOR_NAME> | ||
``` | ||
|
||
Where `BENCHMARK_DURATION` is duration of experiment (setup time not included) in format `\d+[smh]` (for example `30s`, `15m`, `2h`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where `BENCHMARK_DURATION` is duration of experiment (setup time not included) in format `\d+[smh]` (for example `30s`, `15m`, `2h`). | |
Where `BENCHMARK_DURATION` is the duration of the experiment (setup time not included) in format `\d+[smh]` (for example `30s`, `15m`, `2h`). |
Where `BENCHMARK_DURATION` is duration of experiment (setup time not included) in format `\d+[smh]` (for example `30s`, `15m`, `2h`). | ||
<RUMP_UP_RATE> is integer which means "how many users should be added every second". | ||
|
||
Currently everything (nodes and locust) is running on same machine you run this command, so be careful increasing `NODES`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently everything (nodes and locust) is running on same machine you run this command, so be careful increasing `NODES`. | |
Currently everything (nodes and locust) is running on same machine you run this command on, so be careful with increasing `NODES`. |
No description provided.