Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8S: Unable to view logs when we have running more than 5 pods of service #1050

Open
kiran1415 opened this issue Apr 24, 2024 · 0 comments
Open
Assignees

Comments

@kiran1415
Copy link

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

  1. Increase the lms pod with below command:
    tutor k8s scale lms 10
  2. 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.

@DawoudSheraz 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
@DawoudSheraz DawoudSheraz moved this from Pending Triage to Backlog in Tutor project management Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants