Merge pull request #308 from silverlogic/systemd-limit-nproc
allow max threads to be configured
This commit is contained in:
commit
23abae8c67
3 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,10 @@ LimitNPROC=2048
|
|||
LimitMEMLOCK=infinity
|
||||
{% endif %}
|
||||
|
||||
# Specifies the maximum number of threads that can be started. Elasticsearch requires a
|
||||
# minimum of 2048.
|
||||
LimitNPROC={{ es_max_threads }}
|
||||
|
||||
# Disable timeout logic and wait until process is stopped
|
||||
TimeoutStopSec=0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue