ToxiProxy
create_limiter_toxic
Closes connections when transmitted data after the limit, sets it up as a downstream, 100% toxicity
Limit the bandwidth of a downstream connection with a toxicity of 100%
Below are the details and signature of the activity Python module.
Type | action |
Module | chaostoxi.toxic.actions |
Name | create_bandwith_degradation_toxic |
Return | mapping |
Usage
JSON
{
"name": "create-bandwith-degradation-toxic",
"type": "action",
"provider": {
"type": "python",
"module": "chaostoxi.toxic.actions",
"func": "create_bandwith_degradation_toxic",
"arguments": {
"for_proxy": "",
"toxic_name": "",
"rate": 0
}
}
}
YAML
name: create-bandwith-degradation-toxic
provider:
arguments:
for_proxy: ''
rate: 0
toxic_name: ''
func: create_bandwith_degradation_toxic
module: chaostoxi.toxic.actions
type: python
type: action
Arguments
Name | Type | Default | Required |
---|---|---|---|
for_proxy | string | Yes | |
toxic_name | string | Yes | |
rate | integer | Yes |
Signature
def create_bandwith_degradation_toxic(
for_proxy: str,
toxic_name: str,
rate: int,
configuration: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass