Skip to content

Traefik keeps opening new sockets when docker swarm loses quorum #3904

@givasthefirst

Description

@givasthefirst

Do you want to request a feature or report a bug?

Bug

What did you do?

I am running traefik on top of docker swarm and when the swarm cluster loses quorum traefik does not respect the timeouts for connections and keeps opening new sockets connections until file descriptors be full and raises too many open files.

What did you expect to see?

Expect traefik to close socket connections when the timeouts and maxIdleConnection limits are reached.

What did you see instead?

Traefik keeps openning new sockets until file descriptors max are reached causing too many open files.

Output of traefik version: (What version of Traefik are you using?)

traefik version
Version:      v1.6.6
Codename:     tetedemoine
Go version:   go1.10.3
Built:        2018-08-20_01:10:06PM
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?

              "--api",
                "--docker",
                "--docker.swarmmode",
                "--docker.watch",
                "--logLevel=DEBUG",
                "--respondingtimeouts.idletimeout=3s",
                "--maxidleconnsperhost=20",
                "--forwardingtimeouts.dialtimeout=3s",
                "--forwardingtimeouts.responseheadertimeout=3s"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions