Skip to content

Slow pod readiness gate adding with many nodes and pods #1960

@julius88

Description

@julius88

Hello!

We are using AWS Load Balancer Controller (2.1.3) in our cluster. We are experiencing very random wait times for the pod readiness gate to be added.

From this state:
2021-04-29_15-29-48

to this state:
2021-04-29_15-22-23

Sometimes it takes 10 seconds and sometimes can be longer than 10 minutes. Our containers in the pod take usually about 30-60 seconds to start.

If there are 2-4 pods things go very smoothly. Problem occurs when there are 100-150 pods (70-100 nodes) running and a rollout restart or deployment update is executed. We are running t4g.medium instances as worker nodes with ALB in front of the service.

Why can it take a very long time to add the pod readiness gate to the pod conditions? I tried to dig in the source code, but couldn't find a reason. When the pod readiness gate has been added, transition to Status=True goes fast. I've tried changing targetgroupbinding-max-concurrent-reconciles to higher values, but it doesn't help.

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