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

feat: implement basic workload service #88

Merged
merged 13 commits into from
Apr 29, 2024
Merged

feat: implement basic workload service #88

merged 13 commits into from
Apr 29, 2024

Conversation

leovct
Copy link
Member

@leovct leovct commented Apr 25, 2024

Description

The workload service applies load to the whole CDK stack on L2 (L1 load has been removed). At the moment, it only spams L2 with transactions (eth transfers, erc20 transfer, erc721 mints and uniswapv3 swaps) and rpc calls.

Anyone can add their custom scripts and run those in the workload service using the workload_commands parameter in params.yml. For example, here are the different commands that are run by the workload service.

workload_commands: [
    "polycli_loadtest_on_l2.sh t",  # eth transfers
    "polycli_loadtest_on_l2.sh 2",  # erc20 transfers
    "polycli_loadtest_on_l2.sh 7",  # erc721 mints
    "polycli_loadtest_on_l2.sh v3", # uniswapv3 swaps
    "polycli_rpcfuzz_on_l2.sh",     # rpc calls
]
  • polycli_loadtest_on_l2.sh will run polycli loadtest by sending 100 requests with a concurrency of 1.
  • polycli_rpcfuzz_on_l2.sh will run polycli rpcfuzz.

The bridge spammer will be added in a follow up PR.

References (if applicable)

https://polygon.atlassian.net/browse/DVT-1463

@leovct leovct marked this pull request as ready for review April 25, 2024 13:30
@leovct leovct changed the title feat: add workload service feat: add basic workload service Apr 29, 2024
@leovct leovct changed the title feat: add basic workload service feat: implement basic workload service Apr 29, 2024
@leovct leovct enabled auto-merge (squash) April 29, 2024 11:31
@leovct leovct disabled auto-merge April 29, 2024 13:06
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@leovct leovct merged commit 4f9160d into main Apr 29, 2024
5 of 7 checks passed
@leovct leovct deleted the feat/workload-service branch April 29, 2024 13:45
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.

2 participants