Skip to content

Commit

Permalink
systemd: set nofile limit in unit files
Browse files Browse the repository at this point in the history
Make it big so hopefully nobody has to change it.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Sep 14, 2015
1 parent 8678a8a commit 8453a89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Wants=network-online.target local-fs.target
PartOf=ceph.target

[Service]
LimitNOFILE=1048576
EnvironmentFile=-/etc/sysconfig/ceph
Environment=CLUSTER=ceph
ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
Expand Down
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Wants=network-online.target local-fs.target ceph-create-keys@%i.service
PartOf=ceph.target

[Service]
LimitNOFILE=1048576
EnvironmentFile=-/etc/sysconfig/ceph
Environment=CLUSTER=ceph
ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
Expand Down
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Wants=network-online.target local-fs.target
PartOf=ceph.target

[Service]
LimitNOFILE=1048576
EnvironmentFile=-/etc/sysconfig/ceph
Environment=CLUSTER=ceph
ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
Expand Down
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Wants=network-online.target local-fs.target
PartOf=ceph.target

[Service]
LimitNOFILE=1048576
EnvironmentFile=-/etc/sysconfig/ceph
Environment=CLUSTER=ceph
ExecStart=/usr/bin/radosgw -f --cluster ${CLUSTER} --name client.%i --setuser ceph --setgroup ceph
Expand Down

0 comments on commit 8453a89

Please sign in to comment.