Skip to content

Commit

Permalink
added resource limits cases
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Chen <[email protected]>
  • Loading branch information
jijiechen committed May 27, 2024
1 parent 4709ed1 commit 6b159a8
Show file tree
Hide file tree
Showing 5 changed files with 536 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/perf-test-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ jobs:
${{ secrets.KMESH_LICENSE_JSON }}
run: |
KMESH_LICENSE=<(printenv KMESH_LICENSE_JSON) PERF_TEST_MESH_VERSION="${{ env.PERF_TEST_MESH_VERSION }}" make run
- name: Run resource limits tests
env:
# when limit memory to 256Mi, it should support 100 dps without GOMEMLIMIT
# when limit memory to 128Mi, it should support 100 dps with GOMEMLIMIT
PERF_LIMIT_MEGA_MEMORY: 256
# 100 dp = 20x5
PERF_TEST_INSTANCES_PER_SERVICE: 20
PERF_TEST_STABILIZATION_SLEEP: 30s
KMESH_LICENSE_JSON: |
${{ secrets.KMESH_LICENSE_JSON }}
run: |
KMESH_LICENSE=<(printenv KMESH_LICENSE_JSON) PERF_TEST_MESH_VERSION="${{ env.PERF_TEST_MESH_VERSION }}" make run/limits | tee /tmp/limits.out
- uses: actions/upload-artifact@v4
if: always()
with:
Expand All @@ -85,6 +97,11 @@ jobs:
with:
name: test-reports
path: /tmp/perf-test-reports
- uses: actions/upload-artifact@v4
if: always()
with:
name: limits-output
path: /tmp/limits.out
- name: submit logs to Datadog
if: always()
env:
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package mesh_perf
8 changes: 7 additions & 1 deletion mk/run.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ E2E_ENV_VARS += TEST_ROOT="$(TOP)"
E2E_ENV_VARS += E2E_CONFIG_FILE="$(TOP)/test/cfg.yaml"
E2E_ENV_VARS += KUMACTLBIN="$(KUMACTLBIN)"
E2E_ENV_VARS += PERF_TEST_MESH_VERSION=$(PERF_TEST_MESH_VERSION)
E2E_ENV_VARS += PERF_LIMIT_MEGA_MEMORY=$${PERF_LIMIT_MEGA_MEMORY:=512}
E2E_ENV_VARS += PERF_LIMIT_MILLI_CPU=$${PERF_LIMIT_MILLI_CPU:=1000}
E2E_ENV_VARS += PERF_TEST_NUM_SERVICES=$${PERF_TEST_NUM_SERVICES:=5}
E2E_ENV_VARS += PERF_TEST_INSTANCES_PER_SERVICE=$${PERF_TEST_INSTANCES_PER_SERVICE:=1}
E2E_ENV_VARS += PERF_TEST_STABILIZATION_SLEEP=$${PERF_TEST_STABILIZATION_SLEEP:=10s}
Expand All @@ -18,4 +20,8 @@ fetch-mesh:

.PHONY: run
run: fetch-mesh
$(E2E_ENV_VARS) $(GINKGO) -v --timeout=4h --json-report=raw-report.json ./test/...
$(E2E_ENV_VARS) $(GINKGO) -v --timeout=4h --label-filter="!limits" --json-report=raw-report.json ./test/...

.PHONY: run/limits
run/limits: fetch-mesh
$(E2E_ENV_VARS) $(GINKGO) -v --timeout=4h --label-filter="limits" --json-report=raw-report.json ./test/...
Loading

0 comments on commit 6b159a8

Please sign in to comment.