client/cli/src/config: Warn on low file descriptor limit (#6956)

* client/cli/src/config: Warn on low file descriptor limit

Substrate sets the soft file descriptor limit to the hard limit at
startup. In the case of the latter being low already (< 10_000) a
Substrate node under high demand might run into issues e.g. when opening
up new TCP connections or persisting data to the database.

With this commit a warn message is printed to stderr.

* client/cli/Cargo.toml: Update to fdlimit 0.2.0
This commit is contained in:
Max Inden
2020-08-31 14:37:06 +02:00
committed by GitHub
parent e9d446a4ce
commit 875daa31bf
4 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ ansi_term = "0.12.1"
lazy_static = "1.4.0"
tokio = { version = "0.2.21", features = [ "signal", "rt-core", "rt-threaded", "blocking" ] }
futures = "0.3.4"
fdlimit = "0.1.4"
fdlimit = "0.2.0"
libp2p = "0.24.0"
parity-scale-codec = "1.3.0"
hex = "0.4.2"