ToxiProxy
create_timeout_toxic
Generate as downstream delayed TCP close with a toxicity of 100%
Limit the bandwith 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_slow_connection_close_toxic |
Return | mapping |
Usage
JSON
{
"name": "create-slow-connection-close-toxic",
"type": "action",
"provider": {
"type": "python",
"module": "chaostoxi.toxic.actions",
"func": "create_slow_connection_close_toxic",
"arguments": {
"for_proxy": "",
"toxic_name": "",
"delay": 0
}
}
}
YAML
name: create-slow-connection-close-toxic
provider:
arguments:
delay: 0
for_proxy: ''
toxic_name: ''
func: create_slow_connection_close_toxic
module: chaostoxi.toxic.actions
type: python
type: action
Arguments
Name | Type | Default | Required |
---|---|---|---|
for_proxy | string | Yes | |
toxic_name | string | Yes | |
delay | integer | Yes |
Signature
def create_slow_connection_close_toxic(
for_proxy: str,
toxic_name: str,
delay: int,
configuration: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass