[ 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:41 PM: ------------------------------------------------------------------ This is what we do for each new Amazon instance. (Sorry, had to edit this three times to get Jira to not corrupt the commands) {code} # 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. {{}} {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} > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org