You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
With more than ~150 containers, workers become unresponsive due to volume size checking #682
Over the past few days, buildpacks team have observed that our c4.2xl worker instances became highly unresponsive. These machines have 8 VCPUs and 16GiB of RAM, and are backed by 15k provisioned-IOP EBS volumes.
So we were a bit surprised when we saw load averages spiking regularly into the 30s when our pipelines were idle.
We verified that we hadn't gone past the 250 container limit, but our workers were all operating at or under the 200 mark. Most of these are check containers.
Further investigation showed that iowait is low or zero. Instead, the CPU is totally consumed by dozens of copies of /var/vcap/packages/btrfs_tools/sbin/btrfs qgroup show -F --raw /var/vcap/data/baggageclaim/volumes/live/{uuid}/volume.
In the meantime, our intention is to ameliorate the condition by switching from few large, powerful, fast-disk (and very expensive) workers down to a larger fleet of small, modest workers. By bringing down our volumes per-worker, we think we will avoid the very high load spikes we observed.
Buildpacks team's workaround was to replace 3 large instances with 6 smaller ones. The number of CPUs and amount of RAM was held about constant, but we noticed a big improvement.
We have also upgraded our BOSH stemcell to the latest. Some of the degradation seems to come from Linux kernel version 3.19. Kernel 4.4, shipped in the latest stemcells, has a much later version of btrfs and apparently this improves the performance. We haven't noticed a difference, though we'd already made the switch to 6 workers when we upgraded.
Activity
concourse-bot commentedon Oct 5, 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.
make target to restart concourse and clear volumes
make target to restart concourse and clear volumes
make target to restart concourse and clear volumes
make target to restart concourse and clear volumes
powerman commentedon Nov 20, 2016
Is there any temporary workaround for this issue? We've just a couple of concurrent builds but it takes up to 20 minutes before actual work begins. 😞
jchesterpivotal commentedon Nov 21, 2016
Hi @powerman,
Buildpacks team's workaround was to replace 3 large instances with 6 smaller ones. The number of CPUs and amount of RAM was held about constant, but we noticed a big improvement.
We have also upgraded our BOSH stemcell to the latest. Some of the degradation seems to come from Linux kernel version 3.19. Kernel 4.4, shipped in the latest stemcells, has a much later version of btrfs and apparently this improves the performance. We haven't noticed a difference, though we'd already made the switch to 6 workers when we upgraded.
concourse-bot commentedon Feb 15, 2017
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!