-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsimulator.config.json
More file actions
74 lines (74 loc) · 2.95 KB
/
simulator.config.json
File metadata and controls
74 lines (74 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"simulation": {
"container_fraction": 0.2,
"customer_fraction": 0.3
},
"traffic_commands": {
"curl": {
"description": "HTTP GET requests",
"allow_for_demo_simulation": true,
"commands": [
{ "command": "curl -so /dev/null -w '%{http_code}' --max-time 10 http://google.com", "description": "Fetch google.com" },
{ "command": "curl -so /dev/null -w '%{http_code}' --max-time 10 http://example.com", "description": "Fetch example.com" },
{ "command": "curl -so /dev/null -w '%{http_code}' --max-time 10 http://info.cern.ch", "description": "Fetch info.cern.ch" },
{ "command": "curl -so /dev/null -w '%{http_code}' --max-time 10 http://httpbin.org/get", "description": "Fetch httpbin.org" }
],
"weight": 4,
"sleep_range": [5, 20]
},
"dig": {
"description": "DNS resolution lookups",
"allow_for_demo_simulation": true,
"commands": [
{ "command": "dig +short google.com", "description": "Resolve google.com" },
{ "command": "dig +short cloudflare.com", "description": "Resolve cloudflare.com" },
{ "command": "dig +short example.com", "description": "Resolve example.com" }
],
"weight": 4,
"sleep_range": [30,50]
},
"iperf3": {
"description": "TCP throughput tests",
"note": {
"type": "warning",
"text": "Iperf3 might fail because iperf3-server can only handle one client at a time. If you see errors, please wait for a few seconds and try again."
},
"allow_for_demo_simulation": false,
"commands": [
{ "command": "iperf3 -c 192.0.2.2 -t 3 -P 1", "description": "Upload throughput test" },
{ "command": "iperf3 -c 192.0.2.2 -t 3 -P 1 -R", "description": "Download throughput test" }
],
"weight": 2,
"sleep_range": [60,90]
},
"iperf3_demo": {
"description": "TCP throughput tests (multi-stream)",
"allow_for_demo_simulation": true,
"disable_in_automated_simulation": true,
"note": {
"type": "warning",
"text": "Iperf3 might fail if other demo users are simulating traffic at the same time. Please wait at least 10 seconds."
},
"commands": [
{ "command": "iperf3 -c 192.0.2.2 -p 5202 -t 10 -P 3", "description": "Upload throughput test" },
{ "command": "iperf3 -c 192.0.2.2 -p 5202 -t 10 -P 3 -R", "description": "Download throughput test" }
]
},
"dhclient_init": {
"description": "Acquire DHCP lease",
"disable_in_automated_simulation": true,
"allow_for_demo_simulation": true,
"commands": [
{ "command": "dhclient -v -1 eth1", "description": "Request DHCP lease" }
]
},
"dhclient_release": {
"description": "Release DHCP lease",
"disable_in_automated_simulation": true,
"allow_for_demo_simulation": true,
"commands": [
{ "command": "dhclient -v -r -d eth1", "description": "Release DHCP lease" }
]
}
}
}