----------------------------------------Logs of Frontend Service with locust Load checked multiple times getting different logs---------------------------------------- ubuntu@ip-172-31-34-130:~/microservices-demo$ kubectl logs --selector app=frontend {"message":"Tracing disabled.","severity":"info","timestamp":"2023-07-05T05:33:33.278617975Z"} {"message":"Profiling disabled.","severity":"info","timestamp":"2023-07-05T05:33:33.278694725Z"} {"message":"starting server on :8080","severity":"info","timestamp":"2023-07-05T05:33:33.279355583Z"} {"message":"Failed to fetch the name of the cluster in which the pod is runningmetadata: GCE metadata \"instance/attributes/cluster-name\" not defined","severity":"error","timestamp":"2023-07-05T05:33:33.279787589Z"} {"message":"Failed to fetch the Zone of the node where the pod is scheduledmetadata: GCE metadata \"instance/zone\" not defined","severity":"error","timestamp":"2023-07-05T05:33:33.302299389Z"} {"cluster":"","hostname":"frontend-76c7d7ccb7-fnnnk","message":"Loaded deployment details","severity":"debug","timestamp":"2023-07-05T05:33:33.302325794Z","zone":""} ubuntu@ip-172-31-34-130:~/microservices-demo$ kubectl logs --selector app=frontend {"http.req.id":"c26f2735-65a9-40c4-9d39-c0ae0e3b8f3d","http.req.method":"GET","http.req.path":"/product/66VCHSJNUP","http.resp.bytes":7758,"http.resp.status":200,"http.resp.took_ms":5,"message":"request complete","session":"6d30b7b5-4636-407f-bbcf-b3cb77c5ee3f","severity":"debug","timestamp":"2023-07-05T05:33:50.273039041Z"} {"http.req.id":"7afbb30c-9f96-469b-9507-116604de2c1b","http.req.method":"GET","http.req.path":"/product/2ZYFJ3GM2N","message":"request started","session":"580d418a-2ca1-477a-9868-02973fc8d87c","severity":"debug","timestamp":"2023-07-05T05:33:50.377303326Z"} {"currency":"CAD","http.req.id":"7afbb30c-9f96-469b-9507-116604de2c1b","http.req.method":"GET","http.req.path":"/product/2ZYFJ3GM2N","id":"2ZYFJ3GM2N","message":"serving product page","session":"580d418a-2ca1-477a-9868-02973fc8d87c","severity":"debug","timestamp":"2023-07-05T05:33:50.377362246Z"} {"http.req.id":"cffc2aee-17dd-41da-a62c-970fef130a4a","http.req.method":"GET","http.req.path":"/product/0PUK6V6EV0","message":"request started","session":"681a2e43-efa3-4ad1-ae6a-e570e02bd5ed","severity":"debug","timestamp":"2023-07-05T05:33:50.377424528Z"} {"currency":"CAD","http.req.id":"cffc2aee-17dd-41da-a62c-970fef130a4a","http.req.method":"GET","http.req.path":"/product/0PUK6V6EV0","id":"0PUK6V6EV0","message":"serving product page","session":"681a2e43-efa3-4ad1-ae6a-e570e02bd5ed","severity":"debug","timestamp":"2023-07-05T05:33:50.377464129Z"} {"http.req.id":"cffc2aee-17dd-41da-a62c-970fef130a4a","http.req.method":"GET","http.req.path":"/product/0PUK6V6EV0","http.resp.bytes":7747,"http.resp.status":200,"http.resp.took_ms":6,"message":"request complete","session":"681a2e43-efa3-4ad1-ae6a-e570e02bd5ed","severity":"debug","timestamp":"2023-07-05T05:33:50.383825828Z"} {"http.req.id":"7afbb30c-9f96-469b-9507-116604de2c1b","http.req.method":"GET","http.req.path":"/product/2ZYFJ3GM2N","http.resp.bytes":7655,"http.resp.status":200,"http.resp.took_ms":6,"message":"request complete","session":"580d418a-2ca1-477a-9868-02973fc8d87c","severity":"debug","timestamp":"2023-07-05T05:33:50.383831306Z"} {"http.req.id":"22aa8c08-d8db-4ebd-b288-1790eb33ee3a","http.req.method":"GET","http.req.path":"/product/1YMWWN1N4O","message":"request started","session":"6a0eea72-64c3-457d-8932-afa38f214f3f","severity":"debug","timestamp":"2023-07-05T05:33:50.530278028Z"} {"currency":"EUR","http.req.id":"22aa8c08-d8db-4ebd-b288-1790eb33ee3a","http.req.method":"GET","http.req.path":"/product/1YMWWN1N4O","id":"1YMWWN1N4O","message":"serving product page","session":"6a0eea72-64c3-457d-8932-afa38f214f3f","severity":"debug","timestamp":"2023-07-05T05:33:50.5303507Z"} {"http.req.id":"22aa8c08-d8db-4ebd-b288-1790eb33ee3a","http.req.method":"GET","http.req.path":"/product/1YMWWN1N4O","http.resp.bytes":7704,"http.resp.status":200,"http.resp.took_ms":5,"message":"request complete","session":"6a0eea72-64c3-457d-8932-afa38f214f3f","severity":"debug","timestamp":"2023-07-05T05:33:50.536043836Z"} ubuntu@ip-172-31-34-130:~/microservices-demo$ kubectl logs --selector app=frontend {"currency":"USD","http.req.id":"c7edf8ae-9178-4696-9c59-1e29e3258f00","http.req.method":"GET","http.req.path":"/","message":"home","session":"6a35aa12-5288-4e57-90f4-98ecaa2a1f76","severity":"info","timestamp":"2023-07-05T05:35:40.61348778Z"} {"error":"failed to get ads: rpc error: code = DeadlineExceeded desc = context deadline exceeded","http.req.id":"97194a13-c226-4002-b931-5ae780232e78","http.req.method":"GET","http.req.path":"/product/0PUK6V6EV0","message":"failed to retrieve ads","session":"03875a21-62f7-457f-a6c5-0f992113899c","severity":"warning","timestamp":"2023-07-05T05:35:40.301148223Z"} {"http.req.id":"97194a13-c226-4002-b931-5ae780232e78","http.req.method":"GET","http.req.path":"/product/0PUK6V6EV0","http.resp.bytes":7414,"http.resp.status":200,"http.resp.took_ms":3011,"message":"request complete","session":"03875a21-62f7-457f-a6c5-0f992113899c","severity":"debug","timestamp":"2023-07-05T05:35:40.613720742Z"} {"http.req.id":"10dd7029-3936-4600-b1fb-da7c9d9eb880","http.req.method":"POST","http.req.path":"/setCurrency","message":"request started","session":"89f65a00-316b-404b-90d4-3b275e14f82e","severity":"debug","timestamp":"2023-07-05T05:35:40.301165583Z"} {"curr.new":"CAD","curr.old":"USD","http.req.id":"10dd7029-3936-4600-b1fb-da7c9d9eb880","http.req.method":"POST","http.req.path":"/setCurrency","message":"setting currency","session":"89f65a00-316b-404b-90d4-3b275e14f82e","severity":"debug","timestamp":"2023-07-05T05:35:40.613880399Z"} {"http.req.id":"10dd7029-3936-4600-b1fb-da7c9d9eb880","http.req.method":"POST","http.req.path":"/setCurrency","http.resp.bytes":0,"http.resp.status":302,"http.resp.took_ms":312,"message":"request complete","session":"89f65a00-316b-404b-90d4-3b275e14f82e","severity":"debug","timestamp":"2023-07-05T05:35:40.613930319Z"} {"http.req.id":"dd5ac211-82b7-4987-8380-bcc2b98e4c49","http.req.method":"GET","http.req.path":"/product/L9ECAV7KIM","http.resp.bytes":7649,"http.resp.status":200,"http.resp.took_ms":2000,"message":"request complete","session":"4a88eb98-76d2-4362-b9fb-7af035e59d2e","severity":"debug","timestamp":"2023-07-05T05:35:40.301365254Z"} {"http.req.id":"aee742a3-3ea6-4255-90a1-fee11dcefb96","http.req.method":"GET","http.req.path":"/product/OLJCESPC7Z","http.resp.bytes":7696,"http.resp.status":200,"http.resp.took_ms":2000,"message":"request complete","session":"999a03b1-3697-4c35-ac50-6417e070eb9d","severity":"debug","timestamp":"2023-07-05T05:35:40.301709217Z"} {"error":"failed to get ads: rpc error: code = DeadlineExceeded desc = context deadline exceeded","http.req.id":"3960ab42-10f8-4b05-ab14-7ba253da0cdd","http.req.method":"GET","http.req.path":"/","message":"failed to retrieve ads","session":"4a2ea2ef-d16f-4864-9a9b-2756614f6286","severity":"warning","timestamp":"2023-07-05T05:35:40.302747449Z"} {"http.req.id":"3960ab42-10f8-4b05-ab14-7ba253da0cdd","http.req.method":"GET","http.req.path":"/","http.resp.bytes":10216,"http.resp.status":200,"http.resp.took_ms":5409,"message":"request complete","session":"4a2ea2ef-d16f-4864-9a9b-2756614f6286","severity":"debug","timestamp":"2023-07-05T05:35:40.614364136Z"}