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

GCPBatchTaskRunner making a lot of requests to GetJob endpoint #3701

Closed
japerry911 opened this issue May 10, 2024 · 1 comment
Closed

GCPBatchTaskRunner making a lot of requests to GetJob endpoint #3701

japerry911 opened this issue May 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working quick-win up to 2h
Milestone

Comments

@japerry911
Copy link

Describe the issue

I have 5 concurrent jobs running for about 40-50 minutes, and I am seeing 28k requests to google.cloud.batch.v1.BatchService.GetJob.

Here is requests per second screenshot over last hour:

Screenshot 2024-05-10 at 11 31 42 AM

Here is total requests picture:

Screenshot 2024-05-10 at 11 31 55 AM


My thoughts are that there could be a setting to set 'poll between' time or potentially just lessen the requests overall.

Let me know if you need more context/have any questions.

Thank you Kestra team 🙏 !

Environment

  • Kestra Version: 0.16.6
  • Operating System (OS/Docker/Kubernetes): Docker / GCP VM
  • Java Version (if you don't run kestra in Docker): n/a
@japerry911 japerry911 added the bug Something isn't working label May 10, 2024
@loicmathieu loicmathieu added the quick-win up to 2h label May 13, 2024
@loicmathieu loicmathieu added this to the v0.17.0 milestone May 13, 2024
@loicmathieu
Copy link
Member

Thanks for opening the issue.
We're using a constant polling of 100ms which can be a little too low for cloud task runners like GcpBatch that are anyway long to start.

We will discuss internally what to do to improve this.

@fhussonnois fhussonnois self-assigned this May 14, 2024
fhussonnois added a commit to kestra-io/plugin-gcp that referenced this issue May 15, 2024
fhussonnois added a commit to kestra-io/plugin-gcp that referenced this issue May 15, 2024
fhussonnois added a commit to kestra-io/plugin-gcp that referenced this issue May 15, 2024
fhussonnois added a commit to kestra-io/plugin-gcp that referenced this issue May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working quick-win up to 2h
Projects
None yet
Development

No branches or pull requests

3 participants