Skip to content

Concourse seems to have a limit of 256 containers per worker #235

Closed

Description

@ljfranklin

Hi gang,

We're seeing the following error in our CI:

insufficient subnets remaining in the pool

And when we run fly workers, we see that one worker has 256 containers:

$ fly -t concourse workers
name                                  containers  platform  tags
6077fe29-fd93-4eaf-8a34-cb09fd0cb3dc  256         linux     none
bcb69d65-ccf7-4a34-ac7e-b31aae4af20b  0           linux     aws
c4014445-7173-4eb8-8686-a25c102668a2  109         linux     none
d45d970c-a817-487a-8efd-711b53881995  0           linux     vsphere
e550fbac-063c-422d-b58f-300214992521  134         linux     none

Is this 256 container limit artificially imposed / is there some workaround to increase this limit?

Activity

  1. concourse-bot commented on Dec 17, 2015

    @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:

    • #110354250 Concourse seems to have a limit of 256 containers per worker

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

  2. xoebus commented on Dec 17, 2015

    @xoebus
    Contributor

    Thanks for the bug report.

    This error comes from Garden we just bubble it up. @julz @goonzoid - Is there a way to increase this limit? If so, is it documented anywhere? Is it a good idea to increase it?

  3. julz commented on Dec 17, 2015

    @julz

    You can increase max_containers here, if you do this you also likely want to increase the subnet pool size to make sure it has enough IPs (the default /22 CIDR only gives you enough for 256 containers).

  4. xoebus commented on Dec 17, 2015

    @xoebus
    Contributor

    👍 Thanks Julz.

  5. added a commit that references this issue on Aug 4, 2016
  6. zachgersh commented on Dec 16, 2016

    @zachgersh
    Contributor

    just for history - I am going to add to this issue and note that at present garden-runc doesn't respect the max_containers setting for anyone that may stumble into this issue when searching. The true way to raise the number of containers is to bump the subnet pool size that @julz mentioned but going much above 300 seems to make the network throughput on the worker slow for every other container.

  7. added a commit that references this issue on Dec 12, 2017
  8. added a commit that references this issue on Jun 19, 2018
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