hashicorp / hashicorp/consul

Reopen #6998 - Consul agent not responding for a few mintes

Open
#7,536 2 comments 0 reactions 0 assignees View on GitHub
theme/kubernetes
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Overview of the Issue
In our Kubernetes cluster, each node is running a consul agent, registrator container and some pods running production services. On some node at the beginning of each hour, theres a spike in disk utilisation for about 5-10 minutes due to files being zipped and sent to other nodes.

In some use cases, the disk utilisation reaches 100% and during that time consul is not responding at localhost:8500. We monitor consul agent at this endpoint every 5 secs: /v1/agent/services. During the utilisation spike the curl command returns 128 due to the connect timeout we had set (3 secs).
This resolves by itself once disk utilisation is reduced.

Operating system and Environment details
Servers and clients in this case are running Ubuntu16.04. Consul version is 1.2.1.
Disk 0 and Disk 1 logically set as 1 disk (mirror). Consul's data dir is located within this logical disk. disk #1 is getting to 100% utilisation

Do you know why this effects the agent?

**Additional data**
We do still experience this issue.
the issue starts at 11:04 New Jersey time (it correlates to 17:04 in the graphs that are in Israel time)

Here are logs fro the agent: (logs are in new jersey time zone)
These are stdout logs, stderr logfile is empty
2020/03/23 10:17:08 [ERR] memberlist: Failed fallback ping: write tcp :38523->:8301: i/o timeout
2020/03/23 10:17:54 [ERR] memberlist: Failed fallback ping: write tcp :48699->:8301: i/o timeout
2020/03/23 10:24:42 [WARN] agent: Check "service:-5864fcfc99-lsbwz" HTTP request failed: Get http://:8080//selftest?format=text: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
2020/03/23 10:24:44 [WARN] agent: Check "service:-5864fcfc99-lsbwz" HTTP request failed: Get http://:8080//selftest?format=text: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
2020/03/23 11:01:27 [WARN] agent: Check "service:-869b755585-t96s5" HTTP request failed: Get http://:8080//selftest?format=text: dial tcp :8080: connect: connection refused
2020/03/23 11:01:32 [WARN] agent: Check "service:-869b755585-t96s5" HTTP request failed: Get http://:8080//selftest?format=text: dial tcp :8080: connect: connection refused
2020/03/23 11:01:37 [WARN] agent: Check "service:-869b755585-t96s5" HTTP request failed: Get http://:8080//selftest?format=text: dial tcp :8080: connect: connection refused
2020/03/23 11:01:43 [WARN] agent: Check "service:-869b755585-t96s5" is now critical

and metrics:
Screen Shot 2020-03-23 at 17 25 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.