You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Walter Underwood (JIRA)" <ji...@apache.org> on 2018/02/15 16:41:00 UTC

[jira] [Comment Edited] (SOLR-11874) Add ulimit recommendations to the "Taking Solr to Production" section in the ref guide

    [ https://issues.apache.org/jira/browse/SOLR-11874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16365869#comment-16365869 ] 

Walter Underwood edited comment on SOLR-11874 at 2/15/18 4:40 PM:
------------------------------------------------------------------

This is what we do for each new Amazon instance.

 
 {{}}
{code:java}
# Increase number of open files. must be run as root
sudo su -
echo '* hard nofile 500000' >> /etc/security/limits.conf
echo '* soft nofile 500000' >> /etc/security/limits.conf
echo 'root hard nofile 500000' >> /etc/security/limits.conf
echo 'root hard nofile 500000' >> /etc/security/limits.conf
echo 'fs.file-max = 2097152' >> /etc/sysctl.conf
# set the processes/threads limit
sudo vi /etc/security/limits.d/20-nproc.conf
# * soft nproc 122944{code}


was (Author: wunder):
This is what we do for each new Amazon instance.

 
{{# Increase number of open files. must be run as root}}
{{sudo su -}}
{{echo }}{{'* hard nofile 500000'}} {{>> /etc/security/limits.conf}}
{{echo }}{{'* soft nofile 500000'}} {{>> /etc/security/limits.conf}}
{{echo }}{{'root hard nofile 500000'}} {{>> /etc/security/limits.conf}}
{{echo }}{{'root hard nofile 500000'}} {{>> /etc/security/limits.conf}}
{{echo }}{{'fs.file-max = 2097152'}} {{>> /etc/sysctl.conf}}
{{# set the processes/threads limit}}
{{sudo vi /etc/security/limits.d/}}{{20}}{{-nproc.conf}}
{{# * soft nproc }}{{122944}}
 

> Add ulimit recommendations to the "Taking Solr to Production" section in the ref guide
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-11874
>                 URL: https://issues.apache.org/jira/browse/SOLR-11874
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: documentation
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>            Priority: Minor
>
> Just noticed that we never mention appropriate ulimits in the ref guide except for one spot when talking about cfs files.
> Anyone who wants to pick this up feel free. Otherwise I'll get to this probably over the weekend.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org