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

worker: unable to accept workloads due to log streaming timeout #890

Open
wass3rw3rk opened this issue Dec 14, 2023 · 1 comment
Open

worker: unable to accept workloads due to log streaming timeout #890

wass3rw3rk opened this issue Dec 14, 2023 · 1 comment
Assignees
Labels
area/worker Indicates a change to the worker bug Indicates a bug

Comments

@wass3rw3rk
Copy link
Member

wass3rw3rk commented Dec 14, 2023

Description

the worker has a log streaming timeout setting (defaults to 5 mins) - https://github.com/go-vela/worker/blob/b45d0ce710ef208ca1330fc6904c15a38e6d08c7/executor/flags.go#L33-L38. this setting is intended to allow containers some padded time (after the build has finished) to wrap up streaming logs.

the intention is for this timeout to be used only if there is actual log activity, ie. it should exit if there isn't any. however, in the current implementation, the worker is not able to pick up new workloads for the given log streaming timeout even when all containers are done producing logs.

this issue is limited to pipelines utilizing services and for a reproducible example you can use https://go-vela.github.io/docs/usage/examples/postgres/ . the pipeline will execute the 15s sleep and do an action and be done. the build will be marked completed appropriately, but the service will continue running and waiting for the log stream timeout to finish before the worker is able to accept a new workload.

this can result in unnecessary queue build up (or unnecessary worker pool scaling) since workers would be able to alleviate the pressure if they exited log streaming appropriately.

Value

more efficient workers

Useful Information

  1. What is the output of vela --version?

0.22.0

  1. What operating system is being used?
  1. Any other important details?

example pipeline to test: https://go-vela.github.io/docs/usage/examples/postgres/

@wass3rw3rk wass3rw3rk added bug Indicates a bug area/worker Indicates a change to the worker labels Dec 14, 2023
@wass3rw3rk
Copy link
Member Author

possibly related: #744

@timhuynh94 timhuynh94 self-assigned this Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/worker Indicates a change to the worker bug Indicates a bug
Projects
None yet
Development

No branches or pull requests

2 participants