Kong / mesh-perf

Performance tests of Kong Mesh
Apache License 2.0
0 stars 1 forks source link

feat(resource): add resource limits cases #187

Open jijiechen opened 1 month ago

jijiechen commented 1 month ago
  1. Run the control plane and connect specified numbers of DPs onto it and assert it should not fail.
  2. Compare the runnings between settings of GOMEMLIMIT.
# set the amount of memory limit onto the CP workload in MiB
export LIMIT_MEGA_MEMORY=256
# set the amount of CPU limit onto the CP workload in millicores
export LIMIT_MILLI_CPU=1000

# set the numbers of services
export PERF_TEST_NUM_SERVICES=5
# set the numbers of instances per service
export PERF_TEST_INSTANCES_PER_SERVICE=20

make run

Cases included:

  1. should deploy all services and instances
  2. should crash when deploy all services and instances with half CP resource
  3. should not crash when control plane has GOMEMLIMIT set when all services and instances with half CP resource

A lot of metrics are periodically fetched and printed to output, so I'm trying to save it to a file, otherwise it'll be troublesome to open the view for the GHA runs.

Icarus9913 commented 1 month ago

Almost LGTM