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

tune forge indexer #15393

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
6 changes: 6 additions & 0 deletions .github/workflows/forge-unstable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ jobs:
COMMENT_HEADER: forge-indexer
FORGE_TEST_SUITE: indexer_test
FORGE_ENABLE_INDEXER: true
# FORGE_RUNNER_DURATION_SECS: <num_workloads> * <duration_secs_per_workload>
# e.g. 9 workloads, each taking 5 mins, would be 9 * 5 * 60 = 2700
FORGE_RUNNER_DURATION_SECS: 2700
forge-indexer-sdk:
if: ${{ github.event_name != 'pull_request' }}
needs: determine-test-metadata
Expand All @@ -145,3 +148,6 @@ jobs:
FORGE_TEST_SUITE: indexer_test
FORGE_DEPLOYER_PROFILE: forge_indexer_sdk
FORGE_ENABLE_INDEXER: true
# FORGE_RUNNER_DURATION_SECS: <num_workloads> * <duration_secs_per_workload>
# e.g. 9 workloads, each taking 5 mins, would be 9 * 5 * 60 = 2700
FORGE_RUNNER_DURATION_SECS: 2700
8 changes: 4 additions & 4 deletions testsuite/forge-cli/src/suites/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn indexer_test() -> ForgeConfig {
// * The indexer latencies are inter-component within the indexer stack, but not that of the e2e wall-clock time vs the blockchain
let workloads_and_criteria = vec![
(
TransactionWorkload::new(TransactionTypeArg::CoinTransfer, 20000),
TransactionWorkload::new(TransactionTypeArg::CoinTransfer, 10000),
(7000, 0.5, 1.0, 0.1),
),
(
Expand All @@ -46,10 +46,10 @@ fn indexer_test() -> ForgeConfig {
(
TransactionWorkload::new(TransactionTypeArg::ModifyGlobalResource, 6000)
.with_transactions_per_account(1),
(2000, 0.5, 0.5, 0.1),
(1750, 0.5, 0.5, 0.1),
),
(
TransactionWorkload::new(TransactionTypeArg::TokenV2AmbassadorMint, 20000)
TransactionWorkload::new(TransactionTypeArg::TokenV2AmbassadorMint, 4500)
.with_unique_senders(),
(2000, 1.0, 1.0, 0.5),
),
Expand All @@ -60,7 +60,7 @@ fn indexer_test() -> ForgeConfig {
),
(
TransactionWorkload::new(TransactionTypeArg::VectorPicture30k, 100),
(100, 0.5, 1.0, 0.1),
(60, 0.5, 1.0, 0.1),
),
(
TransactionWorkload::new(TransactionTypeArg::SmartTablePicture30KWith200Change, 100),
Expand Down
Loading