Repository navigation
Closed
Labels
area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.lifecycle/rottenDenotes 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.
Reacted by Benoit Tigeot
Metadata
Metadata
Assignees
Labels
area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.
Activity
yanweiguo commentedon Jun 26, 2019
There's also a similar feature request in k8s: kubernetes/kubernetes#69676
knative-housekeeping-robot commentedon Dec 24, 2019
Issues go stale after 90 days of inactivity.
Mark the issue as fresh by adding the comment
/remove-lifecycle stale.Stale issues rot after an additional 30 days of inactivity and eventually close.
If this issue is safe to close now please do so by adding the comment
/close.Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.
/lifecycle stale
knative-housekeeping-robot commentedon Jan 23, 2020
Stale issues rot after 30 days of inactivity.
Mark the issue as fresh by adding the comment
/remove-lifecycle rotten.Rotten issues close after an additional 30 days of inactivity.
If this issue is safe to close now please do so by adding the comment
/close.Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.
/lifecycle rotten
knative-housekeeping-robot commentedon Feb 23, 2020
Rotten issues close after 30 days of inactivity.
Reopen the issue with
/reopen.Mark the issue as fresh by adding the comment
/remove-lifecycle rotten.Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.
/close
knative-prow-robot commentedon Feb 23, 2020
@knative-housekeeping-robot: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.