influxdata / influxdata/kapacitor

Kapacitor flooding alarms and too many open files

Open
#2,134 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Hi there.
We had a strange behavior with Kapacitor last night and this morning.
All servers were incorrectly recognized as offline by the deadman node and to the 300 alarms in various forms (CPU, disk memory, etc.).

TICK Stack = latest version
OS = Centos 7.6
Hardware = PowerEdge 710 // 16Core // 76 GB RAM

What is striking is the following:
During this period, a tcp_close_wait of 15K is reached !
![tcp_wait](https://user-images.githubusercontent.com/6105075/49868555-162f5c80-fe0e-11e8-98e0-f0866cb7867c.png)

and an increase in RAM consumption from 8% to 22%
![ram](https://user-images.githubusercontent.com/6105075/49868655-54c51700-fe0e-11e8-917f-0db6ce8ae25c.png)

In addition one finds several error message in the kapacitor log:
`ts=2018-12-12T08:25:51.043+01:00 lvl=error msg="2018/12/12 08:25:51 http: Accept error: accept tcp [::]:9092: accept4: too many open files; retrying i
n 20ms\n" service=http service=httpd_server_errors`

and in influxdb.log a lot of this:
`influxd: ts=2018-12-12T02:18:30.619828Z lvl=info msg="Post http://localhost:9092/write?consistency=&db=telegraf&precision=n
s&rp=autogen: net/http: request canceled (Client.Timeout exceeded while awaiting headers)" log_id=0CH~4qg0000 service=subscriber`

Any idea what was going on here?

Contributor guide

Open the contributing guide

Research direction

Start with the Kapacitor and InfluxDB log excerpts and the reported CLOSE_WAIT, file-descriptor, memory, and alarm metrics; correlate the alarm burst with HTTP listener and subscriber timeouts. Done means identifying a supported root cause and documenting a verified mitigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
centos, go
Domain
backend, networking, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.