Excessive calls to '/events' api if docker daemon is not fully initialized
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing dockergen's behavior while the Docker daemon is still initializing, then trace the code that requests the Docker /events API. Done means the request rate no longer spikes during initialization and memory usage remains near the expected level.
Written by the indexing model from the issue text.
Description
We have observed that dockergen calls '/events' huge number of times when the docker daemon is not fully initialized. As a result of this docker 1.9.1 consumes a lot of memory more than 4GB (when it should only be consuming 40MB).
Sample logs:
Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.527161876+11:00" level=info msg="GET /events"
Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.527770917+11:00" level=info msg="GET /events"
Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.529030241+11:00" level=info msg="GET /events"
Jan 03 22:17:56 host docker[966]: time="2018-01-03T22:17:56.529666130+11:00" level=info msg="GET /events"
Number of times called per second:
Table shows columns timestamp and number of times '/events' called'.
22:17:56 571
22:17:57 1072
22:17:58 571
22:18:10 813
22:18:11 880
22:18:12 534
22:18:40 587
22:18:41 711
22:18:42 938
22:19:12 200
22:19:13 1586
22:19:14 463
- Dominant language
- Go
- Stars
- 4.6k
- Forks
- 609
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nginx-proxy/docker-gen
-
Add image label info Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
nginx-proxy/docker-gen#330 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
nginx-proxy/docker-gen#267 · 4 comments · 13 reactions ·
-
Verbose logging Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
nginx-proxy/docker-gen#246 · 2 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
nginx-proxy/docker-gen#240 · 4 comments · 16 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
nginx-proxy/docker-gen#207 · 12 comments · 9 reactions ·
All issues in nginx-proxy/docker-gen
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100