You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a service has more than five pods, we will not be able to fetch its logs.
For example, if LMS has 10 pods, then the following command will not work tutor k8s logs lms -f --tail=100
You will receive the following error message: error: you are attempting to follow 10 log streams, but maximum allowed concurrency is 5, use --max-log-requests to increase the limit
Error: Command failed with status 1: kubectl logs --namespace openedx --selector=app.kubernetes.io/instance=openedx-XFOT7PSwulrnmRk8WqJ08Jvi,app.kubernetes.io/name=lms --follow --tail 100
How to reproduce
Increase the lms pod with below command: tutor k8s scale lms 10
Try to get logs of lms tutor k8s logs lms -f --tail=100
Environment
Ubuntu 20.04
Tutor 15.x.x(I tried)
Additional context
we can get the logs by running native command of kubernates which suggested in error message itself. kubectl logs --namespace openedx --selector=app.kubernetes.io/instance=openedx-XFOT7PSwulrnmRk8WqJ08Jvi,app.kubernetes.io/name=lms --follow --tail 100 --max-log-request=10
Can we improve this in tutor command itself.
The text was updated successfully, but these errors were encountered:
DawoudSheraz
changed the title
K8S: Unable to view logs when we have runnig more than 5 pods of service
K8S: Unable to view logs when we have running more than 5 pods of service
Apr 29, 2024
Bug description
If a service has more than five pods, we will not be able to fetch its logs.
For example, if LMS has 10 pods, then the following command will not work
tutor k8s logs lms -f --tail=100
You will receive the following error message:
error: you are attempting to follow 10 log streams, but maximum allowed concurrency is 5, use --max-log-requests to increase the limit
Error: Command failed with status 1: kubectl logs --namespace openedx --selector=app.kubernetes.io/instance=openedx-XFOT7PSwulrnmRk8WqJ08Jvi,app.kubernetes.io/name=lms --follow --tail 100
How to reproduce
tutor k8s scale lms 10
tutor k8s logs lms -f --tail=100
Environment
Ubuntu 20.04
Tutor 15.x.x(I tried)
Additional context
we can get the logs by running native command of kubernates which suggested in error message itself.
kubectl logs --namespace openedx --selector=app.kubernetes.io/instance=openedx-XFOT7PSwulrnmRk8WqJ08Jvi,app.kubernetes.io/name=lms --follow --tail 100 --max-log-request=10
Can we improve this in tutor command itself.
The text was updated successfully, but these errors were encountered: