service-mesh-benchmark
service-mesh-benchmark copied to clipboard
The log of web-svc
When I reproduce the bare version (no istio or linkerd), the log of web-svc is a little strange for me
2019/10/25 07:09:47 Connecting to [voting-svc-2.emojivoto:8080] 2019/10/25 07:09:47 Connecting to [emoji-svc-2.emojivoto:8080] 2019/10/25 07:09:47 Starting web server on WEB_PORT=[8080] 2019/10/25 07:10:08 Error serving request [&{GET /api/list HTTP/1.1 1 1 map[] {}
0 [] false web-svc-2.emojivoto.svc.cluster.local:8080 map[] map[] map[] 172.16.60.3:58724 /api/list 0xc00023ff80}]: rpc error: code = Canceled desc = context canceled 2019/10/25 07:10:08 Error serving request [&{GET /api/list HTTP/1.1 1 1 map[] {} 0 [] false web-svc-2.emojivoto.svc.cluster.local:8080 map[] map[] map[] 172.16.60.3:58742 /api/list 0xc000360040}]: rpc error: code = Canceled desc = context canceled
The similar situation happend in the istio version,
2019/10/25 08:17:19 Connecting to [voting-svc-1.emojivoto:8080] 2019/10/25 08:17:19 Connecting to [emoji-svc-1.emojivoto:8080] 2019/10/25 08:17:19 Starting web server on WEB_PORT=[8080] 2019/10/25 08:17:52 Error serving request [&{GET /api/list HTTP/1.1 1 1 map[Content-Length:[0] X-B3-Traceid:[d1fd22e3054c06d88b6ad62673c45cb0] X-B3-Spanid:[7775dc25fd4a6220] X-B3-Parentspanid:[8b6ad62673c45cb0] X-B3-Sampled:[1] X-Forwarded-Proto:[http] X-Request-Id:[5fac714a-c6a8-9758-b9b1-ce92775c13bc]] {}
0 [] false web-svc-1.emojivoto.svc.cluster.local:8080 map[] map[] map[] 127.0.0.1:42616 /api/list 0xc00002af40}]: rpc error: code = Canceled desc = context canceled 2019/10/25 08:17:52 Error serving request [&{GET /api/list HTTP/1.1 1 1 map[X-B3-Traceid:[0c492d1e58faba5c48196d91f9a291e5] X-B3-Spanid:[5e83e3cab7a89bdd] X-B3-Parentspanid:[48196d91f9a291e5] X-B3-Sampled:[1] X-Forwarded-Proto:[http] X-Request-Id:[d3325d36-2da2-9241-bd9a-9c7688752ec5] Content-Length:[0]] {} 0 [] false web-svc-1.emojivoto.svc.cluster.local:8080 map[] map[] map[] 127.0.0.1:42668 /api/list 0xc0003a6c40}]: rpc error: code = Canceled desc = context canceled
Is this expected?
Does the wrk2 pod report any HTTP error codes or socket errors after the run?
There is no any HTTP error codes or socket errors after the run. I think this is expected. But I still edit the wrk2.yaml.tmpl to avoid using api/list
- "http://web-svc-1.emojivoto.svc.cluster.local:8080"
- "web-svc-1"
- "${INSTANCES}"
# - "api/list
- "api/vote?choice=:flushed:"
- "api/vote?choice=:policeman:"
- "api/leaderboard"