mirror of https://github.com/status-im/consul.git
be1c5c4b48
I spent some time today on my local Mac to figure out why Consul 1.6.3+ was not accepting limits.http_max_conns_per_client. This adds an explicit check on number of file descriptors to be sure it might work (this is no guarantee as if many clients are reaching the agent, it might consume even more file descriptors) Anyway, many users are fighting with RLIMIT_NOFILE, having a clear message would allow them to figure out what to fix. Example of message (reload or start): ``` 2020-03-11T16:38:37.062+0100 [ERROR] agent: Error starting agent: error="system allows a max of 512 file descriptors, but limits.http_max_conns_per_client: 8192 needs at least 8212" ``` |
||
---|---|---|
.. | ||
agent_limits.go | ||
agent_limits_test.go | ||
builder.go | ||
builder_oss.go | ||
config.go | ||
config_oss.go | ||
default.go | ||
default_oss.go | ||
doc.go | ||
flags.go | ||
flags_test.go | ||
flagset.go | ||
limits.go | ||
limits_windows.go | ||
merge.go | ||
merge_test.go | ||
runtime.go | ||
runtime_oss.go | ||
runtime_oss_test.go | ||
runtime_test.go | ||
segment_oss.go | ||
segment_oss_test.go |