Connections *sometimes* take far too long

January 23, 2018 675 views
Nginx Docker Networking Ubuntu

I run a Droplet with Ubuntu 17.10.

My Droplet is a server using Nginx. Independently of this, it also hosts a Docker registry on another port.

The website exposed by Nginx works fine most of the time and loads quickly. However, sometimes, and I haven't noticed a pattern when, the website will refuse to load for almost a minute or so. Retrying the connection doesn't help. Once the website has finally loaded, it becomes much faster again.

The Docker registry works, since I can successfully upload test programs to it. However, when I try to upload larger things, it becomes extremely slow to the point where it is effectively unusable.

I don't know if these two problems are related.

1 Answer

I just noticed: sometimes when I try to access the Docker registry, it won't even connect at all:
'request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)'

Have another answer? Share your knowledge.