Project

General

Profile

Feature #668

Change number of open files in init script

Added by Wido den Hollander over 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

On a busy system with multiple OSD's your OSD's can reach the max number of open files.

It should be useful IMHO if the init script changed this limit, for example:

ulimit -n $(($num_osd_on_this_machine * 16384))

We might also choose to use a default value of 131072 for example and hard code it in the init-script.

/etc/default/ceph

NUM_OPEN_FILES=131072

/etc/init.d/ceph

NUM_OPEN_FILES=131072
if [ -f /etc/default/ceph ]; then
  . /etc/default/ceph
fi

ulimit -n $NUM_OPEN_FILES

Although it is a trivial task to do this, it would make deploying Ceph a bit easier.

History

#1 Updated by Sage Weil about 13 years ago

  • Target version set to v0.25

#2 Updated by Colin McCabe about 13 years ago

  • Status changed from New to Resolved

Implemented by commit:4018fb2f3bb5ee546134f93904ea8608617a8f2a

Also available in: Atom PDF