Skip to content

With more than ~150 containers, workers become unresponsive due to volume size checking #682

Closed

Description

@jchesterpivotal

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 turn we tracked this back to the GetVolumeSizeInBytes function used in the baggageclaim btrfs volume driver.

We understand that the upcoming rearchitecture of container lifecycles should resolve this issue.

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.

Activity

  1. concourse-bot commented on Oct 5, 2016

    @concourse-bot

    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:

    • #131752441 With more than ~150 containers, workers become unresponsive due to volume size checking
    • #129725921 Containers should have indefinite TTLs
    • #135570549 Volumes should have indefinite TTLs

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. powerman commented on Nov 20, 2016

    @powerman

    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. 😞

  3. jchesterpivotal commented on Nov 21, 2016

    @jchesterpivotal
    ContributorAuthor

    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.

  4. concourse-bot commented on Feb 15, 2017

    @concourse-bot

    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:

    • #131752441 With more than ~150 containers, workers become unresponsive due to volume size checking
    • #129725921 Containers should have indefinite TTLs
    • #135570549 Volumes should have indefinite TTLs

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions