Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MCJOHN974
Copy link
Contributor

No description provided.

@MCJOHN974 MCJOHN974 requested a review from a team as a code owner June 21, 2024 11:36
@MCJOHN974 MCJOHN974 requested review from wacban and mooori June 21, 2024 11:36
Copy link
Contributor

@wacban wacban left a 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 :)

Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.63%. Comparing base (e95c123) to head (a8055ff).
Report is 1 commits behind head on master.

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     
Flag Coverage Δ
backward-compatibility 0.23% <ø> (ø)
db-migration 0.23% <ø> (ø)
genesis-check 1.36% <ø> (ø)
integration-tests 37.77% <ø> (-0.01%) ⬇️
linux 69.03% <ø> (+<0.01%) ⬆️
linux-nightly 71.13% <ø> (+<0.01%) ⬆️
macos 52.61% <ø> (-0.14%) ⬇️
pytests 1.59% <ø> (ø)
sanity-checks 1.39% <ø> (ø)
unittests 66.21% <ø> (-0.02%) ⬇️
upgradability 0.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@mooori mooori left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# FT bencmark scripts
# FT benchmark scripts

Comment on lines +3 to +5
## Quick start

### Prerequirements
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants