mirror of https://github.com/apache/cassandra
Increase FD limit to 100k in packaging.
Patch by Paul Cannon, reviewed by brandonwilliams for CASSANDRA-3206 git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.8@1175027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5927193d39
commit
b277e4f5cc
|
|
@ -4,6 +4,7 @@
|
|||
* Log message when a full repair operation completes (CASSANDRA-3207)
|
||||
* Don't allow any cache loading exceptions to halt startup (CASSANDRA-3218)
|
||||
* Fix sstableloader --ignores option (CASSANDRA-3247)
|
||||
* File descriptor limit increased in packaging (CASSANDRA-3206)
|
||||
|
||||
|
||||
0.8.6
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
# Provided by the cassandra package
|
||||
cassandra - memlock unlimited
|
||||
cassandra - nofile 100000
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ CONFDIR=/etc/cassandra
|
|||
JSVC=/usr/bin/jsvc
|
||||
WAIT_FOR_START=10
|
||||
CASSANDRA_HOME=/usr/share/cassandra
|
||||
FD_LIMIT=100000
|
||||
|
||||
# The first existing directory is used for JAVA_HOME if needed.
|
||||
JVM_SEARCH_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun"
|
||||
|
|
@ -127,6 +128,7 @@ do_start()
|
|||
is_running && return 1
|
||||
|
||||
ulimit -l unlimited
|
||||
ulimit -n "$FD_LIMIT"
|
||||
|
||||
cassandra_home=`getent passwd cassandra | awk -F ':' '{ print $6; }'`
|
||||
cd / # jsvc doesn't chdir() for us
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
cassandra - memlock unlimited
|
||||
cassandra - nofile 100000
|
||||
|
|
|
|||
Loading…
Reference in New Issue