Closed
Description
We noticed that one of our concourse workers is being overloaded with containers, even though there are other workers which have a lot of capacity. Here is the status of the workers
01e85f7c-638f-43e5-9119-854826ba960a 84 linux none
27e89480-4006-4ea5-9771-518a44076113 256 linux none
2e96519b-81fb-446e-bca4-edd7bb29fb78 97 linux none
5e6fd75a-185b-4cb1-8bbb-1299f87df6e1 0 linux vsphere, cork
b4f1522d-3fc3-4ccd-a7c0-d75437aa5418 1 linux aws
c6305523-3110-46ac-996c-4f2788670d97 1 linux aws
f188c382-3540-434a-b651-c36ad1bc2bf0 0 linux vsphere, cork
f4c82e25-ae6c-4435-a6ac-815abe329f68 84 linux none
This results in jobs failing with the error insufficient subnets remaining in the pool.
We are on version concourse/0.68.0 and garden-linux/0.328.0.
Reacted by Zach Gershman
Metadata
Metadata
Assignees
Labels
No labels
Activity
concourse-bot commentedon Feb 16, 2016
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
spikymonkey commentedon Feb 18, 2016
Hey,
We think we know what’s going on here. The struggling worker was loaded with containers for resource checking. For context - the team has scaled up the pool of available workers from 1 to 4 nodes (the
linux, noneones you can see in @chewymeister’s post) at some point in the past. So we think that, pre-scaling, the single worker was already pretty loaded with containers for both resource interactions and tasks. Following the scale-up, the task containers, being transient things that only survive for the lifetime of the task, have been scheduled across the pool more or less evenly as expected. However, we think that the pre-existing resource check containers have persisted on the original worker. That’s left it with a disproportionately large share of the workload, and keeps its container count close to its maximum of 256.Poking around with
fly containersseems to back this up… We can see that the check containers for resources that were created pre- worker pool scaling are all on the original worker. Check containers for resources created after the scaling are distributed reasonably fairly across the whole pool, which fits with the random scheduling approach we expect.We worked around our issue of having a single worker permanently close to its maximum container count by shooting it via the AWS console and then
bosh cck’ing it back to life. This forced concourse to reschedule the stuck containers across the remaining workers. The new distribution isn’t ideal since concourse rescheduled before the replacement worker came back online, but having those resource checks spread across 3 nodes rather than 1 leaves us in a better situation than we had before.So, this is all guesswork :) But if it’s correct, we think that to prevent this from happening in the general case, concourse would need to redistribute resource check containers across all available workers whenever the worker pool size increases.
supertopher commentedon Apr 20, 2016
just reiterating that this problem still exists for us. If it matters for the purposes of debugging, we have workers deployed across several different environments
zachgersh commentedon Apr 21, 2016
wanted to add - this is constantly a problem for release-engineering. We also have four nodes and instead of ending up with containers evenly balanced across them we get one node that is flooded causing us to roll all the workers. This is no fun :/
concourse-bot commentedon May 5, 2016
Hello again!
All stories related to this issue have been accepted, so I'm going to automatically close this issue.
At the time of writing, the following stories have been accepted:
If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!
bump a *bunch* of dependencies
bump ginkgo
bump ginkgo
bump atc fly skymarshal