Skip to content

Docker Cloud - sleep necessary #12

@revett

Description

@revett

Context

  • Just switched to running our Go apps as a static binary in a container based off sillelien/base-alpine.
  • Apps are running in containers on Docker Cloud (Ubuntu 14.04 nodes).

Problem

  • When one of our services starts, it attempts to connect to a RDS instance.
  • This was timing out.

Solution

  • Add a 20 second wait before trying to connect.

Logs

...

DNS : Starting monitoring loop
dial tcp xx.xx.xx.x:xxxx: getsockopt: connection timed out
/data-api exited 1

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