Open Zhongqi0402 opened 1 year ago
Hi, thanks for posting the issues. I am not able to reproduce the error you reported. Would you mind uploading more details about it, such as the error log of the frontend service with docker logs hotel_reserv_frontend
? I am suspecting the following and you can probably check them up:
5000
was forwarded to the host OS. Thank you so much for your response and sorry for this late response from me. Yes, I will check the points you mentioned.
I had a look at the frontend logs with command sudo docker logs hotel_reserv_frontend
, and below is partial output:
2023-11-09T02:24:14Z INF cmd/frontend/main.go:23 > Reading config...
2023-11-09T02:24:14Z INF cmd/frontend/main.go:39 > Read target port: 5000
2023-11-09T02:24:14Z INF cmd/frontend/main.go:40 > Read consul address: consul:8500
2023-11-09T02:24:14Z INF cmd/frontend/main.go:41 > Read jaeger address: jaeger:6831
2023-11-09T02:24:14Z INF cmd/frontend/main.go:48 > Initializing jaeger agent [service name: frontend | host: jaeger:6831]...
2023-11-09T02:24:14Z INF tracing/tracer.go:26 > Jaeger client: adjusted sample ratio 0.010000
2023-11-09T02:24:14Z PNC cmd/frontend/main.go:51 > Got error while initializing jaeger agent: lookup jaeger: Temporary failure in name resolution
panic: Got error while initializing jaeger agent: lookup jaeger: Temporary failure in name resolution
It seems that it's a DNS resolution error. So I also checked logs for the jaeger container, and below is the output:
{"level":"warn","ts":1699496743.1466587,"caller":"grpc@v1.58.3/clientconn.go:1515","msg":"[core][Channel #12 SubChannel #13] grpc: addrConn.createTransport failed to connect to {Addr: \"localhost:16685\", ServerName: \"localhost:16685\", }. Err: connection error: desc = \"transport: Error while dialing: dial tcp 127.0.0.1:16685: connect: connection refused\"","system":"grpc","grpc_log":true}
I'm not familiar with docker networking in general, but based on what I found online, it should be dialled up at port 16686, not 16685 right?
I tried to use sudo docker exec -it hotel_reserv_frontend curl http://jaeger:16686
to check connectivity, and it works fine. But if I ping 16685, there is a problem. I'm very confused with what's happening now. Can someone please point some pointers?
thank you
Hello all, I've been following the steps listed in README and I'm getting the below problem. When I run
../wrk2/wrk -D exp -t2 -c100 -d30s -L -s ./wrk2/scripts/hotel-reservation/mixed-workload_type_1.lua http://0.0.0.0:5000/tcp -R2000
inhotelReservation
and any other microservices, I keep gettingreconnect_socket
output to stdout. I added some debug printf statements, and they are fromsocket_writeable
andsocket_readable
function inwrk.c
file. Since the socket is not connected properly, the final output isBelow is a summary of the system I'm running on
Does anyone know how to resolve this?
thanks