-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area/APIAPI objects and controllersAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.Well-understood/specified features, ready for coding.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
In what area(s)?
/area monitoring
Describe the feature
Add logs to indicate that user-container steps into/recovers from bad status.
If a request results in container crash and restart, the request returns 502 but there's no logs/events/ways to know what had happened.
For example, follow the steps below:
- Deploy autoscale-go sample app with 256Mi as memory resources limits.
- Run
watch kubectl get podsto keep pods status refreshed. - Send requests with
?bloat=1000multiple times:
curl -H "Host: autoscale-go.default.example.com" http://<Istio-gateway IP>?bloat=500 - You will get response with 502 and see the pod change status into
OOMKilledfor a few seconds and theuser-containerget restarted.
There is Last State in the output of kubectl get pod -oyaml result:
Last State: Terminated
Reason: OOMKilled
Exit Code: 137
Started: Tue, 25 Jun 2019 17:51:04 -0700
Finished: Tue, 25 Jun 2019 18:08:50 -0700
whose started time is the first OOMKilled event happened and finished time is the last OOMKilled event finished(during that period the container is ready for most of the time).
There are no other logs from K8S or Knative components indicating OOMKilled happened. So unless the pod is kept alive and the operator check the correct pod, no ways to know what resulted in the 502 response.
benoittgt
Metadata
Metadata
Assignees
Labels
area/APIAPI objects and controllersAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.Well-understood/specified features, ready for coding.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.