Skip to content

Commit d23bedd

Browse files
committed
Enabling keepalives and new experiment results
1 parent 88d928c commit d23bedd

File tree

6 files changed

+20
-17
lines changed

6 files changed

+20
-17
lines changed

experiments/nginx.conf

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,22 @@ http {
2020
#server 192.168.0.2:3000 max_fails=0 fail_timeout=15s;
2121
#server 192.168.0.3:3000 max_fails=0 fail_timeout=15s;
2222
#server 192.168.0.4:3000 max_fails=0 fail_timeout=15s;
23+
keepalive 4;
2324
}
2425

2526

2627
server {
2728
listen 80;
2829

2930
location / {
30-
proxy_pass http://backends;
31-
proxy_next_upstream timeout error http_503;
32-
recursive_error_pages on;
33-
proxy_next_upstream_tries 0;
34-
proxy_read_timeout 5m;
31+
proxy_pass http://backends;
32+
proxy_next_upstream timeout error http_503;
33+
recursive_error_pages on;
34+
proxy_next_upstream_tries 0;
35+
proxy_read_timeout 5m;
36+
# Needed for keepalives.
37+
proxy_http_version 1.1;
38+
proxy_set_header Connection "";
3539
}
3640
}
3741

@@ -42,4 +46,3 @@ http {
4246
access_log /var/log/nginx/access.log exp;
4347
error_log /var/log/nginx/error.log;
4448
}
45-

experiments/stateless.rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ nogci.p999 <- quantile(al.nogci$latency, 0.999)
5959
ggplot(al.cmp, aes(latency, color=Type)) +
6060
stat_ecdf(size=0.8) +
6161
# P999
62-
annotate(geom="text", x=nogci.p999-0.5, y=0.9906, label="99.999th", angle=90, color="red") +
62+
annotate(geom="text", x=nogci.p999+0.5, y=0.9906, label="99.999th", angle=90, color="red") +
6363
geom_vline(xintercept=nogci.p999, linetype="dotted", size=0.8, alpha=0.5, color="red") +
64-
annotate(geom="text", x=gci.p999+0.5, y=0.9906, label="99.999th", angle=90, color="blue") +
64+
annotate(geom="text", x=gci.p999-0.5, y=0.9906, label="99.999th", angle=90, color="blue") +
6565
geom_vline(xintercept=gci.p999, linetype="dotted", size=0.8, alpha=0.5, color="blue") +
6666
6767
6868
# P99
69-
annotate(geom="text", x=nogci.p99-0.5, y=0.9902, label="99th", angle=90, col="red") +
69+
annotate(geom="text", x=nogci.p99+0.5, y=0.9902, label="99th", angle=90, col="red") +
7070
geom_vline(xintercept=nogci.p99, linetype="dotted", size=0.8, alpha=0.5, col="red") +
71-
annotate(geom="text", x=gci.p99+0.5, y=0.9902, label="99th", angle=90, color="blue") +
71+
annotate(geom="text", x=gci.p99-0.5, y=0.9902, label="99th", angle=90, color="blue") +
7272
geom_vline(xintercept=gci.p99, linetype="dotted", size=0.8, alpha=0.5, color="blue") +
7373
7474
scale_x_continuous(breaks=seq(0, max(al.cmp$latency), 2)) +
@@ -78,7 +78,7 @@ ggplot(al.cmp, aes(latency, color=Type)) +
7878
theme_bw() +
7979
xlab("Latency(ms)") +
8080
ylab("ECDF at Tail")
81-
#ggsave("stateless/ecdf_tail.png")
81+
ggsave("stateless/ecdf_tail.png")
8282
```
8383

8484
<!-- # Unavailability -->

experiments/stateless/plot_gci_java_1.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

experiments/stateless/plot_nogci_java_1.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

experiments/stateless/vegeta_gci_java_1.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Requests [total, rate] 9600, 80.01
2-
Duration [total, attack, wait] 1m59.992301565s, 1m59.987482988s, 4.818577ms
3-
Latencies [mean, 50, 95, 99, max] 4.202935ms, 4.043324ms, 5.827673ms, 7.762242ms, 18.676035ms
2+
Duration [total, attack, wait] 1m59.990424736s, 1m59.987513498s, 2.911238ms
3+
Latencies [mean, 50, 95, 99, max] 3.027682ms, 2.874455ms, 4.340408ms, 5.916129ms, 14.748965ms
44
Bytes In [total, mean] 0, 0.00
55
Bytes Out [total, mean] 0, 0.00
66
Success [ratio] 100.00%

experiments/stateless/vegeta_nogci_java_1.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Requests [total, rate] 9600, 80.01
2-
Duration [total, attack, wait] 1m59.990190875s, 1m59.98741926s, 2.771615ms
3-
Latencies [mean, 50, 95, 99, max] 3.360036ms, 3.153866ms, 4.804772ms, 7.52571ms, 32.164747ms
2+
Duration [total, attack, wait] 1m59.989700175s, 1m59.98742456s, 2.275615ms
3+
Latencies [mean, 50, 95, 99, max] 2.603616ms, 2.383129ms, 3.874837ms, 6.32035ms, 21.263766ms
44
Bytes In [total, mean] 0, 0.00
55
Bytes Out [total, mean] 0, 0.00
66
Success [ratio] 100.00%

0 commit comments

Comments
 (0)