Skip to content

Instantly share code, notes, and snippets.

View ldemailly's full-sized avatar

Laurent Demailly ldemailly

View GitHub Profile
I0904 01:29:57.664] === RUN TestGlobalCheckAndReport
W0904 01:29:57.809] I0904 01:29:57.807874 4404 mixer_test.go:427] Get from page: 503
W0904 01:29:57.809] E0904 01:29:57.807911 4404 mixer_test.go:438] Couldn't get to the bookinfo product page, trying again in 5 second
W0904 01:30:02.948] I0904 01:30:02.946754 4404 mixer_test.go:427] Get from page: 503
W0904 01:30:02.948] E0904 01:30:02.946781 4404 mixer_test.go:438] Couldn't get to the bookinfo product page, trying again in 10 second
W0904 01:30:13.093] I0904 01:30:13.092262 4404 mixer_test.go:427] Get from page: 503
W0904 01:30:13.093] E0904 01:30:13.092288 4404 mixer_test.go:438] Couldn't get to the bookinfo product page, trying again in 15 second
W0904 01:30:28.235] I0904 01:30:28.233932 4404 mixer_test.go:427] Get from page: 503
W0904 01:30:28.235] E0904 01:30:28.233960 4404 mixer_test.go:438] Couldn't get to the bookinfo product page, trying again in 20 second
W0904 01:30:48.379] I0904 01:30:48.377627 4404 mixer_test.go:42
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: simple-ingress
annotations:
kubernetes.io/ingress.class: istio
spec:
rules:
- http:
paths:
I1017 04:44:06.335310 1 grpcServer.go:139] Dispatching Preprocess Check
I1017 04:44:06.335333 1 runtime.go:113] unconditionally resolving for kinds: [attributes]
I1017 04:44:06.335386 1 runtime.go:121] unconditionally resolved configs (err=<nil>): [kubernetes]
I1017 04:44:06.335411 1 manager.go:190] Resolved 1 configs: [builder: name:"default" kind:"attributes" impl:"kubernetes" params:&Params{KubeconfigPath:,CacheRefreshDuration:5m0s,SourceUidInputName:sourceUID,DestinationUidInputName:destinationUID,OriginUidInputName:originUID,PodLabelForService:app,SourcePrefix:source,DestinationPrefix:destination,OriginPrefix:origin,LabelsValueName:Labels,PodNameValueName:PodName,PodIpValueName:PodIP,HostIpValueName:HostIP,NamespaceValueName:Namespace,ServiceAccountValueName:ServiceAccountName,ServiceValueName:Service,ClusterDomainName:svc.cluster.local,PodLabelForIstioComponentService:istio,SourceIpInputName:sourceIP,DestinationIpInputName:destinationIP,OriginIpInputName:originIP,LookupIngressSou
$ mysql -u root -h instance-1 --port 3307 --password=password test -e "select * from ratings"
16:59:10.634739 IP demo-vm-1.c.istio-demo-0-2.internal.33810 > instance-1.c.istio-demo-0-2.internal.3307: Flags [S], seq 435526409, win 28400, options [mss 1420,sackOK,TS val 1223743714 ecr 0,nop,wscale 7], length 0
0x0000: 4500 003c d190 4000 4006 53f0 0a96 0005 E..<..@.@.S.....
0x0010: 0a96 000b 8412 0ceb 19f5 9b09 0000 0000 ................
0x0020: a002 6ef0 156a 0000 0204 058c 0402 080a ..n..j..........
0x0030: 48f0 d8e2 0000 0000 0103 0307 H...........
16:59:10.637087 IP instance-1.c.istio-demo-0-2.internal.3307 > demo-vm-1.c.istio-demo-0-2.internal.33810: Flags [S.], seq 2408509392, ack 435526410, win 28160, options [mss 1420,sackOK,TS val 3430598142 ecr 1223743714,nop,wscale 7], length 0
0x0000: 4500 003c 0000 4000 4006 2581 0a96 000b E..<..@.@.%.....
0x0010: 0a96 0005 0ceb 8412 8f8e efd0 19f5 9b0a ................
0x0020: a012 6e00 4b33 0000 0204 058c 0402 080a ..n.K3..........
ldemailly@demo-vm-2:~$ curl "http://istio-pilot:8080/v1/listeners/x/sidecar~10.150.0.12~~"
{
"listeners": [
{
"address": "tcp://0.0.0.0:15001",
"name": "virtual",
"filters": [],
"bind_to_port": true,
"use_original_dst": true
},
@ldemailly
ldemailly / 2017-12-04-184337_Fortio.json
Created December 5, 2017 02:44
sample JSON result
{
"Labels": "Fortio",
"StartTime": "2017-12-04T18:43:37.69727175-08:00",
"RequestedQPS": "1000",
"RequestedDuration": "3s",
"ActualQPS": 999.4486025402308,
"ActualDuration": 3001655105,
"NumThreads": 8,
"Version": "0.4.2",
"DurationHistogram": {
$ PROJECT=istio-perf2 tools/setup_perf_cluster.sh
tools/setup_perf_cluster.sh is Executed, (Tools in tools) (can also be sourced interactively)...
In case of errors, retry at the failed step (readyness checks missing)
Obtaining latest ubuntu xenial image name... (takes a few seconds)...
Creating VM_NAME=fortio-vm using VM_IMAGE=https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-1604-xenial-v20171212
### Running: gcloud compute instances create fortio-vm --project istio-perf2 --zone us-east4-b --machine-type n1-highcpu-2 --image https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-1604-xenial-v20171212
Created [https://www.googleapis.com/compute/v1/projects/istio-perf2/zones/us-east4-b/instances/fortio-vm].
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
fortio-vm us-east4-b n1-highcpu-2 10.150.0.2 35.194.72.246 RUNNING
grpc_server_handled_total{grpc_code="OK",grpc_method="Check",grpc_service="istio.mixer.v1.Mixer",grpc_type="unary"} 230839
grpc_server_handled_total{grpc_code="OK",grpc_method="Report",grpc_service="istio.mixer.v1.Mixer",grpc_type="unary"} 1708
1000 ing->f2->f1 calls
grpc_server_handled_total{grpc_code="OK",grpc_method="Check",grpc_service="istio.mixer.v1.Mixer",grpc_type="unary"} 232862
grpc_server_handled_total{grpc_code="OK",grpc_method="Report",grpc_service="istio.mixer.v1.Mixer",grpc_type="unary"} 1768
60 reports
2023 checks (?)
function newTable(t)
if not t then
t = {}
end
setmetatable(t, {__index = table})
return t
end
t = newTable({k1="v1", k2="v2", k3="v3",})
@ldemailly
ldemailly / fortio.yaml
Last active September 17, 2021 16:23
fortio 3 layer with fan out of 2 both tcp and http
apiVersion: v1
kind: Namespace
metadata:
name: fortio
labels:
istio-injection: enabled
---
# Service "A" definition
apiVersion: v1
kind: Service