actionk6

stress_endpoint

Stress a single endpoint with a configurable amount of VUs

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosk6.actions
Namestress_endpoint
ReturnNone

Usage

JSON

{
  "name": "stress-endpoint",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk6.actions",
    "func": "stress_endpoint"
  }
}

YAML

name: stress-endpoint
provider:
  func: stress_endpoint
  module: chaosk6.actions
  type: python
type: action

Arguments

NameTypeDefaultRequired
endpointstringnullNo
vusinteger1No
durationstring“1s”No

Depending on the specs of the attacking machine, possible VU amount may vary. For a non-customized 2019 Macbook Pro, it will cap around 250 +/- 50.

Signature

def stress_endpoint(endpoint: str = None, vus: int = 1, duration: str = '1s'):
    pass