Skip to content

Instantly share code, notes, and snippets.

View zaharidichev's full-sized avatar

Zahari Dichev zaharidichev

View GitHub Profile
apiVersion: v1
kind: Service
metadata:
name: mysql
namespace: memtest
spec:
ports:
- port: 15800
selector:
app: mysql
apiVersion: v1
kind: Service
metadata:
name: mysql
namespace: memtest
spec:
ports:
- port: 3306
selector:
app: mysql
diff --git a/cli/cmd/upgrade.go b/cli/cmd/upgrade.go
index 1ae754be..19470eb2 100644
--- a/cli/cmd/upgrade.go
+++ b/cli/cmd/upgrade.go
@@ -7,6 +7,7 @@ import (
"io/ioutil"
"os"
"strings"
+ "time"
#
# POD web-6fd47cf6d4-7wxnv (1 of 1)
#
# HELP request_total Total count of HTTP requests.
# TYPE request_total counter
request_total{authority="web-svc.emojivoto.svc.cluster.local",direction="inbound",tls="no_identity",no_tls_reason="not_provided_by_remote"} 14566
request_total{authority="emoji-svc.emojivoto.svc.cluster.local:8080",direction="outbound",dst_deployment="emoji",dst_namespace="emojivoto",dst_pod="emoji-5ff4496df8-jp84v",dst_pod_template_hash="5ff4496df8",dst_service="emoji-svc",dst_serviceaccount="emoji",tls="no_identity",no_tls_reason="not_provided_by_service_discovery"} 14566
request_total{authority="voting-svc.emojivoto.svc.cluster.local:8080",direction="outbound",dst_deployment="voting",dst_namespace="emojivoto",dst_pod="voting-68bdbc5d99-ns6zf",dst_pod_template_hash="68bdbc5d99",dst_service="voting-svc",dst_serviceaccount="voting",tls="no_identity",no_tls_reason="not_provided_by_service_discovery"} 7243
# HELP response_latency_ms Elapsed times between a request's headers being received and
Creating summariser <summary>
Started linkerd with:
LOCAL_JVM_OPTIONS="-Xmx128M \
-Xms64M \
-XX:MetaspaceSize=512M \
-XX:MaxDirectMemorySize=64M \
-Dio.netty.leakDetection.level=paranoid" ./conf.yaml
Frame 13476: 289 bytes on wire (2312 bits), 289 bytes captured (2312 bits) on interface 0
Interface id: 0 (en0)
Interface name: en0
Interface description: Wi-Fi
Encapsulation type: Ethernet (1)
Arrival Time: Jul 22, 2019 17:44:23.327968000 EEST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1563806663.327968000 seconds
[Time delta from previous captured frame: 0.008329000 seconds]
[Time delta from previous displayed frame: 106.774281000 seconds]
Frame 12726: 204 bytes on wire (1632 bits), 204 bytes captured (1632 bits) on interface 0
Interface id: 0 (en0)
Interface name: en0
Interface description: Wi-Fi
Encapsulation type: Ethernet (1)
Arrival Time: Jul 22, 2019 17:42:36.553687000 EEST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1563806556.553687000 seconds
[Time delta from previous captured frame: 0.001019000 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
BEFORE
--------------------------------------
time="2019-03-12T19:31:59Z" level=info msg="### Iteration 0 ###"
Stats report:
Protocol: h1:
baseline-h1
Success rate: 100.00%
Request rate: 992
p50 latency (us): 827
@zaharidichev
zaharidichev / request-response-benchmark.txt
Last active July 21, 2017 04:53
Results of running AffinityPoolRequestResponseBenchmark
> jmh:run -i 7 -wi 5 -f1 -t1 akka.actor.AffinityPoolRequestResponseBenchmark
///////////////////////
//////FIRST RUN////////
///////////////////////
[info] Benchmark (dispatcher) (mailbox) (throughPut) Mode Cnt Score Error Units
[info] AffinityPoolRequestResponseBenchmark.queryUserServiceActor affinity-dispatcher SingleConsumerOnlyUnboundedMailbox 1 thrpt 7 4652382.488 ± 796750.230 ops/s
[info] AffinityPoolRequestResponseBenchmark.queryUserServiceActor affinity-dispatcher SingleConsumerOnlyUnboundedMailbox 5 thrpt 7 4833844.790 ± 1182309.731 ops/s
[info] AffinityPoolRequestResponseBenchmark.queryUserServiceActor affinity-dispatcher SingleConsumerOnlyUnboundedMailbox 50 thrpt 7 5432140.247 ± 574668.680 ops/s
[info] Benchmark (dispatcher) (throughput) Mode Cnt Score Error Units
[info] ThreadpoolBenchmark.pingPong default-fork-join-dispatcher 1 thrpt 5 6097275.910 ± 1248149.192 ops/s
[info] ThreadpoolBenchmark.pingPong default-fork-join-dispatcher 2 thrpt 5 9070178.790 ± 711526.993 ops/s
[info] ThreadpoolBenchmark.pingPong default-fork-join-dispatcher 8 thrpt 5 12852178.473 ± 742689.364 ops/s
[info] ThreadpoolBenchmark.pingPong default-fork-join-dispatcher 16 thrpt 5 14109371.573 ± 1631717.831 ops/s
[info] ThreadpoolBenchmark.pingPong default-fork-join-dispatcher 128 thrpt 5 16567587.352 ± 470220.141 ops/s
[info] ThreadpoolBenchmark.pingPong default-fork-join-dispatcher 1024 thrpt 5 17837330.628 ± 1792452.723 ops/s
[info] ThreadpoolBenchmark.pingPong affinity-threadpool-dispatcher 1 thrpt 5 5180984.762 ± 1285348.734