-
Notifications
You must be signed in to change notification settings - Fork 679
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-benchmark] fill actor and context db fields properly #11663
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,11 @@ def commit_to_db(data: dict) -> None: | |
type=int, | ||
required=True, | ||
help='Number of users') | ||
parser.add_argument('--user', type=str, default='unknown', help='User name') | ||
parser.add_argument('--context', | ||
type=str, | ||
default='unknown', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Perhaps make There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe I agree, but maybe some time we will prefer to see row in db with |
||
help='Context') | ||
args = parser.parse_args() | ||
DURATION = args.duration / 3600 | ||
|
||
|
@@ -153,7 +158,7 @@ def commit_to_db(data: dict) -> None: | |
"size_state_bytes": state_size, | ||
"tps": int(average_tps), | ||
"total_transactions": int(processed_transactions[-1]), | ||
"initiator": "crt cron job", | ||
"context": "continuous benchmark run", | ||
"initiator": args.user, | ||
"context": args.context, | ||
} | ||
commit_to_db(response) |
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.
nit: I think
user
is a bit ambiguous here.initiator
might be clearer and would be in line with the db column name. (In the postgres db naming a columnuser
lead to lint errors, so instead it's namedinitiator
.)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.
Yep, it would be better to do this naming consistent with db scheme, but then I will need rename this across all files so probably will do it in another PR