@cryptotaxi247 / netdata-1 / commits / 1d2458a5f

[docs]: Revert #14178 that documents how to set nofile limit for Netdata containers (#14635)

Revert #14178

Dim-P committed Mar 1, 2023 at 14:24 UTC 1d2458a5f54913c2c3fca7a58b64643ac73636f5
1 file changed -29
packaging/docker/README.md
-29
@@ -31,24 +31,6 @@ and unfortunately not something we can realistically work around.
31
32 ## Create a new Netdata Agent container
33
34 -> :bookmark_tabs: Note
35 ->
36 -> All `docker run` commands and `docker-compose` configurations explicitly set the `nofile` limit.
37 -> This is required on some distros until [14177](https://github.com/netdata/netdata/issues/14177) is resolved.
38 -> Failure to do so may cause a task running in a container to hang and consume 100% of the CPU core.
39 ->
40 -> <details>
41 -> <summary>What are these "some distros"?</summary>
42 ->
43 -> If `LimitNOFILE=infinity` results in an open file limit of 1073741816:
44 ->
45 -> ```bash
46 -> [fedora37 ~]$ docker run --rm busybox grep open /proc/self/limits
47 -> Max open files 1073741816 1073741816 files
48 -> ```
49 ->
50 -> </details>
51 -
34 You can create a new Agent container using either `docker run` or `docker-compose`. After using either method, you can
35 visit the Agent dashboard `http://NODE:19999`.
36
@@ -78,7 +60,6 @@ docker run -d --name=netdata \
60 --restart unless-stopped \
61 --cap-add SYS_PTRACE \
62 --security-opt apparmor=unconfined \
81 - --ulimit nofile=4096 \
63 netdata/netdata
64 ```
65
@@ -109,9 +90,6 @@ docker run -d --name=netdata \
90 - SYS_PTRACE
91 security_opt:
92 - apparmor:unconfined
112 - ulimits:
113 - nofile:
114 - soft: 4096
93 volumes:
94 - netdataconfig:/etc/netdata
95 - netdatalib:/var/lib/netdata
@@ -243,7 +221,6 @@ docker run -d --name=netdata \
221 --restart unless-stopped \
222 --cap-add SYS_PTRACE \
223 --security-opt apparmor=unconfined \
246 - --ulimit nofile=4096 \
224 netdata/netdata
225 ```
226
@@ -265,9 +242,6 @@ services:
242 - SYS_PTRACE
243 security_opt:
244 - apparmor:unconfined
268 - ulimits:
269 - nofile:
270 - soft: 4096
245 volumes:
246 - ./netdataconfig/netdata:/etc/netdata:ro
247 - netdatalib:/var/lib/netdata
@@ -534,9 +508,6 @@ services:
508 - SYS_PTRACE
509 security_opt:
510 - apparmor:unconfined
537 - ulimits:
538 - nofile:
539 - soft: 4096
511 volumes:
512 - netdatalib:/var/lib/netdata
513 - netdatacache:/var/cache/netdata