Skip to content

Commit

Permalink
Increase resource usage in nighly build devnet to properly load-test (#…
Browse files Browse the repository at this point in the history
…1975)

Increase resource usage in nighly build devnet to properly load-test
  • Loading branch information
vcastellm committed Oct 11, 2023
1 parent e34c65e commit 697e658
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.nightly.devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ jobs:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
LOADTEST_MNEMONIC: ${{ secrets.LOADTEST_MNEMONIC }}
with:
runner: devnet
runner: loadtester
environment: ${{ inputs.environment }}
scenario: multiple_EOA
duration: ${{ inputs.duration }}
Expand All @@ -249,7 +249,7 @@ jobs:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
LOADTEST_MNEMONIC: ${{ secrets.LOADTEST_MNEMONIC }}
with:
runner: devnet
runner: loadtester
environment: ${{ inputs.environment }}
scenario: multiple_ERC20
duration: ${{ inputs.duration }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/loadtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on: # yamllint disable-line rule:truthy
type: choice
options:
- ubuntu-latest
- devnet
- testnet
- loadtester
environment:
description: The environment to run against
required: false
Expand Down Expand Up @@ -60,7 +59,7 @@ on: # yamllint disable-line rule:truthy
jobs:
run_k6:
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
runs-on: "${{ inputs.runner }}"
outputs:
loadtest_output_success: ${{ steps.run_k6_success.outputs.test_output }}
steps:
Expand All @@ -71,10 +70,15 @@ jobs:

- name: Checkout code
uses: actions/checkout@v3

- id: random-number-generator
run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
shell: bash

- uses: datadog/agent-github-action@v1.3
with:
api_key: ${{ secrets.DD_API_KEY }}
container_name: "datadog-agent-${{ steps.random-number-generator.outputs.random-number }}"

- name: Install xk6
run: |
Expand Down
6 changes: 3 additions & 3 deletions loadtest/scenarios/multiple_EOA.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const options = {
scenarios: {
constant_request_rate: {
executor: 'constant-arrival-rate',
rate: 1000,
rate: 3000,
timeUnit: '1s',
duration: duration,
preAllocatedVUs: 20,
maxVUs: 20,
preAllocatedVUs: 60,
maxVUs: 60,
},
},
};
Expand Down
6 changes: 3 additions & 3 deletions loadtest/scenarios/multiple_ERC20.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const options = {
scenarios: {
constant_request_rate: {
executor: 'constant-arrival-rate',
rate: 1000,
rate: 1500,
timeUnit: '1s',
duration: duration,
preAllocatedVUs: 20,
maxVUs: 20,
preAllocatedVUs: 60,
maxVUs: 60,
},
},
};
Expand Down

0 comments on commit 697e658

Please sign in to comment.