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
Container Placement Strategies not working #8836
Comments
Just want to make sure if CONCOURSE_MAX_ACTIVE_CONTAINERS_PER_WORKER is set |
We are also seeing this behavior with the containers not being spread out, and the |
@xtremerui Any updates on the above? |
So I have a guess as to why people run into issues like this still. I think it's because Line 45 in 86386eb
This function is how each step selects a worker and is the main entry point to container placement. We can see where it's getting called: So if there's no limit on how many get/put/task steps are being run at any given time, I think it's highly likely that you can end up in a situation where there are a bunch of steps trying to find workers at the same time. They all look at the current data available to them and make the same choice which then goes over the limits set by operators and your worker falls over. My current theory is that putting a rate limit on the number of calls to |
Summary
We have set our container replacement strategies to the following:
Expected results
We expect containers to be spread across the workers.
Actual results
We get workers with an disproportionate amount of containers. Often resulting in our builds failing because they've hit the container limit even if there are other workers that have plenty of room.
Additional context
The default max limit is 250.
Triaging info
7.10.0
The text was updated successfully, but these errors were encountered: