From 5530e417428c7d5a3165db65ae4dc9f6086b3eb2 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Thu, 18 Oct 2018 04:23:21 -0400 Subject: Increase NOFILE limit for tox-bootstrapd tox-bootstrapd can use around 600 TCP sockets during TCP server's normal functioning. Many systems default to having a soft limit of 1024 open file descriptors, which we are close to reaching, so it was suggested we bump that limit to a higher number. iphy suggested increasing it to 32768. --- other/bootstrap_daemon/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other/bootstrap_daemon/README.md') diff --git a/other/bootstrap_daemon/README.md b/other/bootstrap_daemon/README.md index 848f9fa1..541305b1 100644 --- a/other/bootstrap_daemon/README.md +++ b/other/bootstrap_daemon/README.md @@ -219,7 +219,7 @@ sudo docker build -t tox-bootstrapd docker/ sudo useradd --home-dir /var/lib/tox-bootstrapd --create-home --system --shell /sbin/nologin --comment "Account to run Tox's DHT bootstrap daemon" --user-group tox-bootstrapd sudo chmod 700 /var/lib/tox-bootstrapd -sudo docker run -d --name tox-bootstrapd --restart always -v /var/lib/tox-bootstrapd/:/var/lib/tox-bootstrapd/ -p 443:443 -p 3389:3389 -p 33445:33445 -p 33445:33445/udp tox-bootstrapd +sudo docker run -d --name tox-bootstrapd --restart always -v /var/lib/tox-bootstrapd/:/var/lib/tox-bootstrapd/ --ulimit nofile=32768:32768 -p 443:443 -p 3389:3389 -p 33445:33445 -p 33445:33445/udp tox-bootstrapd ``` We create a new user and protect its home directory in order to mount it in the Docker image, so that the kyepair the daemon uses would be stored on the host system, which makes it less likely that you would loose the keypair while playing with or updating the Docker container. -- cgit v1.2.3